{!! html()->form('PUT', route('mto-score-threshold.update', base64_encode($item->id)))->id('getMtoScoreThresholdForm')->open() !!}
{!! html()->label('Threshold Min Value *', 'min_threshold_value')->toHtml() !!}
{!! html()->number('min_threshold_value')->class('form-control')->attribute('step', '1')->attribute('min', '0')->value( (int) $item['min_threshold_value'] == $item['min_threshold_value'] ? (int) $item['min_threshold_value'] : $item['min_threshold_value'], )->placeholder('Enter Threshold Min Value')->when(isset($item['phase']) && $item['phase'] === '2Approval', fn($el) => $el->attribute('readonly', true)) !!}
{!! html()->label('Threshold Max Value *', 'max_threshold_value')->toHtml() !!}
{!! html()->number('max_threshold_value')->class('form-control')->attribute('step', '1')->attribute('min', '0')->value( (int) $item['max_threshold_value'] == $item['max_threshold_value'] ? (int) $item['max_threshold_value'] : $item['max_threshold_value'], )->placeholder('Enter Threshold Max Value')->when(isset($item['phase']) && $item['phase'] === '4Approval', fn($el) => $el->attribute('readonly', true)) !!}
{!! html()->label('Created By')->toHtml() !!} {!! html()->text('created_by')->class('form-control')->value($item->creator?->full_name ?? 'N/A')->attribute('readonly', true) !!}
{!! html()->label('Created At')->toHtml() !!} {!! html()->text('created_at')->class('form-control')->value($item->created_at?->format(config('constants.date_format')) ?? 'N/A')->attribute('readonly', true) !!}
{!! html()->label('Last Modified By')->toHtml() !!} {!! html()->text('modified_by')->class('form-control')->value($item->modifier?->full_name ?? 'N/A')->attribute('readonly', true) !!}
{!! html()->label('Last Modified At')->toHtml() !!} {!! html()->text('modified_at')->class('form-control')->value($item->modified_at?->format(config('constants.date_format')) ?? 'N/A')->attribute('readonly', true) !!}
{!! html()->form()->close() !!}