{!! trans('messages.edit').' '.trans('messages.attendance') !!}

{!! Form::model($clock,['method' => 'POST','route' => ['update-clock',$clock->user_id,$clock->date,$clock->id] ,'class' => '','id' => 'update-clock-in-out','data-table-refresh' => 'clock-list-table']) !!}
{!! Form::label('clock_in',trans('messages.clock_in'),['class' => 'control-label'])!!} {!! Form::input('text','clock_in',isset($clock->clock_in) ? date('Y-m-d h:i A',strtotime($clock->clock_in)) : '',['class'=>'form-control datetimepicker','readonly' => true])!!}
{!! Form::label('clock_out',trans('messages.clock_out'),['class' => 'control-label'])!!} {!! Form::input('text','clock_out',isset($clock->clock_out) ? date('Y-m-d h:i A',strtotime($clock->clock_out)) : '',['class'=>'form-control datetimepicker','readonly' => true])!!}
{!! Form::label('location_id',trans('messages.location'),[]) !!} {!! Form::select('location_id',$locations,isset($clock->location_id) ? $clock->location_id : '',['class'=>'form-control show-tick', 'title'=>trans('messages.select').' '.trans('messages.location')]) !!}
{!! Form::submit(trans('messages.save'),['class' => 'btn btn-primary pull-right']) !!}
{!! Form::close() !!}