{!! Form::label('title',trans('messages.checklist').' '.trans('messages.title'),['class'=>'required']) !!}
{!! Form::input('text','title',isset($checklist->title) ? $checklist->title : '',['class'=>'form-control','placeholder'=>trans('messages.title')]) !!}
@if(Request::get('type') == "ojt" || (!empty($checklist) && $checklist->category == "OJT Checklist"))
{!! Form::label('location_id',trans('messages.location'),['class'=>'required']) !!}
{!! Form::select('location_id',$checklist_locations,isset($checklist->location_id) ? explode(',',$checklist->location_id) : '',['class' => 'form-control show-tick', 'title' => trans('messages.select_one_or_more')]) !!}
{{--
--}}
{!! Form::hidden('category','OJT Checklist',[]) !!}
{!! Form::hidden('with_txn',1,[]) !!}
@if(env('COMPANY_ID') == 123)
{!! Form::hidden('has_na',1,[]) !!}
@endif
@else
{!! Form::label('location_id',trans('messages.location'),['class'=>'required']) !!}
{!! Form::select('location_id',$checklist_locations,isset($checklist->location_id) ? explode(',',$checklist->location_id) : '',['class' => 'form-control show-tick', 'title' => trans('messages.select_one')]) !!}
{!! Form::label('category',trans('messages.category'),['class'=>'required']) !!}
@if(isset($buttonText))
{!! Form::select('category',$categories,isset($checklist->category) ? $checklist->category : '',['class' => 'form-control show-tick','title' => trans('messages.select_one'), 'id' => 'category_edit', 'onchange' => 'showEditFields(this)']) !!}
@else
{!! Form::select('category',$categories,isset($checklist->category) ? $checklist->category : '',['class' => 'form-control show-tick','title' => trans('messages.select_one'), 'id' => 'category', 'onchange' => 'showFields(this)']) !!}
@endif
{!! Form::hidden('with_txn',1,[]) !!}
@endif
@if(isset($buttonText))
@if($checklist->category == "Handover Checklist")
{!! Form::label('handover_time',trans('messages.handover').' '.trans('messages.time'),['class'=>'required']) !!}
{!! Form::input('text','handover_time',isset($checklist->handover_time) ? $checklist->handover_time : '',['class'=>'form-control timepicker','placeholder'=>trans('messages.handover').' '.trans('messages.time'),'readonly'=>'true']) !!}
@else
{!! Form::label('handover_time',trans('messages.handover').' '.trans('messages.time'),[]) !!}
{!! Form::input('text','handover_time',isset($checklist->handover_time) ? $checklist->handover_time : '',['class'=>'form-control timepicker','placeholder'=>trans('messages.handover').' '.trans('messages.time'),'readonly'=>'true']) !!}
@endif
@else
{!! Form::label('handover_time',trans('messages.handover').' '.trans('messages.time'),['class'=>'required']) !!}
{!! Form::input('text','handover_time','',['class'=>'form-control timepicker','placeholder'=>trans('messages.handover').' '.trans('messages.time'),'readonly'=>'true']) !!}
@endif
{!! Form::submit(isset($buttonText) ? $buttonText : trans('messages.save'),['class' => 'btn btn-primary pull-right']) !!}
@section('js')
@endsection