{!! Form::horizontal_open()->id('sub_location-popup-inspect-all')->method('POST')->enctype('multipart/form-data')->action(trans_url('/')) !!}
×

{{ (@$facility_scheduling->inspection_status == 'Completed') ? 'Certify ' : 'Inspect ' }} sublocations in Trans ID #{{ $facility_scheduling->code }} - {{ $facility_scheduling->scheduler_name }}

{!! Form::hidden('company_id')->value(user('admin.web')->current_comp) !!} {!! Form::hidden('facility_scheduling_id')->value(@$facility_scheduling->id) !!} {!! Form::select('user_id')->disabled()->options(User::technicians())->select(user_id())->label(trans('utility_master::utility_reading.label.user_id'))->addGroupClass('form-group-sm') !!} {{-- {!! Form::text('ref')->disabled()->label('Insp No.')->placeholder(trans('sublocations::asset.placeholder.ref'))->addGroupClass('form-group-sm') !!} --}} {!! Form::date('inspection_date')->required()->label('Inspection Date')->placeholder('Inspection Date')->addGroupClass('form-group-sm')->disabled(@$facility_scheduling->inspection_status == 'Completed'? true : false) !!} {!! Form::time('inspection_time')->required()->label('Inspection Time')->placeholder('Inspection Time')->addGroupClass('form-group-sm') !!}
{!! Form::select('inspection_type2')->disabled()->id('inspection_type2')->select(@$facility_scheduling->inspection_type)->label('Inspection type')->options(ScheduleMaster::schedule_masters())->placeholder('Inspection Type')->addGroupClass('form-group-sm') !!} {!! Form::hidden('inspection_type')->value(@$facility_scheduling->inspection_type) !!} {!! Form::textarea('description')->disabled()->label('Description')->addGroupClass('form-group-sm')->value(@$facility_scheduling->description) !!} {!! Form::textarea('remarks')->label('Remarks')->addGroupClass('form-group-sm')->disabled(@$facility_scheduling->inspection_status == 'Completed'? true : false)->value(@$facility_scheduling->remarks) !!}
@php if(@$facility_scheduling->inspection_status == 'Completed'){ $btn_label = 'Certify'; $note = 'Note - This option will mark all sublocations in this scheduler as certified'; } else{ $btn_label = 'Save'; $note = 'Note - This option will mark all sublocations in this scheduler as inspected, if you need to create a service request for any sublocations in this list, need to update that asset by selecting from asset list before using this option.'; } @endphp
* {{ $note }}
{!! Form::close() !!}