{!! 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::label('is_global',trans('messages.global'),['class' => 'control-label']) !!} {!! tooltip('When a checklist is made global, it will appear in Armfort App regardless of site.') !!}
is_global)) ? 'checked' : '' !!} data-off-value="0">
--}} {!! 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('is_global',trans('messages.global'),['class' => 'control-label']) !!} {!! tooltip('When a checklist is made global, it will appear in Armfort App regardless of site.') !!}
is_global)) ? 'checked' : '' !!} data-off-value="0">
{!! tooltip('The checklist will only available on Armfort App for this period.') !!}
{{trans('messages.to')}}
{!! 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 @endif @else @endif
{!! Form::submit(isset($buttonText) ? $buttonText : trans('messages.save'),['class' => 'btn btn-primary pull-right']) !!} @section('js') @endsection