{!! Form::open(array('route' =>$route, 'method' => 'POST' ,'id' => 'ajaxSave')) !!}
@if($result->guest_personal_number) {!! Form::hidden('guest_personal_number',$result->guest_personal_number) !!} @endif
{!! Form::label('punch_clock_timing', __('schedule.date')) !!}
{!! Form::text('shift_date', $startDate, ['class' => 'form-control','readonly' => true]) !!}
{!! Form::label('shift_timing', __('schedule.shift_in_out')) !!}
{!! Form::text('shift_in_time', $shiftIn, ['class' => 'form-control readonly', 'disabled'=> true, 'autocomplete' => 'off']) !!} {!! Form::text('shift_out_time', $shiftOut, ['class' => 'form-control readonly','disabled'=> true, 'autocomplete' => 'off']) !!}

{!! __('schedule.break') !!}

{!! Form::label('punch_clock_timing', __('schedule.punch_in_out')) !!}
{!! Form::text('punch_in', $punchIn, ['class' => 'form-control readonly', 'disabled'=> true, 'id' => 'punc_in_time', 'autocomplete' => 'off']) !!} {!! Form::text('punch_out', $punchOut, ['class' => 'form-control readonly','disabled'=> true, 'id' => 'punc_out_time', 'autocomplete' => 'off']) !!}
pauser_id < 1) style="display: none" @endif> {!! Form::label('break', __('schedule.break_type')) !!} {!! Form::select('break_type',$pauser,$selectOption, ['class' => 'form-control select2','id' => 'break_type']) !!}
{!! Form::label('punch_clock_timing', __('schedule.approved_timing')) !!}
{!! Form::text('approved_start_time', $from, ['class' => 'form-control time-picker', 'placeholder' => 'From', 'id' => 'shift_from', 'autocomplete' => 'off']) !!} {!! Form::text('approved_end_time', $to, ['class' => 'form-control time-picker', 'placeholder' => 'To', 'id' => 'shift_to', 'autocomplete' => 'off']) !!}
{!! Form::label('punch_clock_timing', __('schedule.break_time')) !!}
{!! Form::text('break', $result->approved_break_time ?? 0, ['id' =>'break','class' => 'form-control is_numeric', 'autocomplete' => 'off']) !!}
{!! timeFormatted($empTiming) !!}
{!! Form::label('employee_group', __('schedule.employee_group')) !!} {!! Form::select('employee_group', $employeeGroup, $result->employee_group_id ??0, ['class' => 'form-control']) !!}
{!! Form::label('comment', __('schedule.comment')) !!} {!! Form::textarea('comment',$result->description, ['class' => 'form-control', 'size' => '3x4']) !!}
{!! Form::hidden('employee',$result->employee_id) !!} @if($createShift) {!! Form::hidden('payroll',1) !!} @endif
@if(is_object($logHistory) && count($logHistory) > 0) @php $i=1; @endphp @foreach($logHistory as $detail) @endforeach
{!! __('schedule.date') !!} {!! __('schedule.change') !!}
{!! dateFormat($detail->created_at, 'd-m-Y H:i') !!} {!! $message !!} @if($message != '')
@endif @if(($oldDt != '' && $newDt != '') && strtotime($oldDt) != strtotime($newDt)) {!! __('schedule.shift_date') !!} {!! __('schedule.changed_from') !!} {!! dateFormat($oldDt, 'd.m.Y') !!} {!! __('schedule.to') !!} {!! dateFormat($newDt, 'd.m.Y') !!}.
@endif @if(($oldGroup != '' && $newGroup != '') && $oldGroup != $newGroup) {!! __('schedule.employee_group') !!} {!! __('schedule.changed_from') !!} {!! $oldGroup !!} {!! __('schedule.to') !!} {!! $newGroup !!}
@endif @if(($oldShift != '' && $newShift != '') && $oldShift != $newShift) {!! __('schedule.shift_type') !!} {!! __('schedule.changed_from') !!} {!! $oldShift !!} {!! __('schedule.to') !!} {!! $newShift !!}
@endif @if(($oldStartTime != '' && $newStartTime != '') && strtotime($oldStartTime) != strtotime($newStartTime)) {!! __('schedule.start_time') !!} {!! __('schedule.changed_from') !!} {!! dateFormat($oldStartTime, 'H:i') !!} {!! __('schedule.to') !!} {!! dateFormat($newStartTime, 'H:i') !!}
@endif @if(($oldEndTime != '' && $newEndTime != '') && strtotime($oldEndTime) != strtotime($newEndTime)) {!! __('schedule.end_time') !!} {!! __('schedule.changed_from') !!} {!! dateFormat($oldEndTime, 'H:i') !!} {!! __('schedule.to') !!} {!! dateFormat($newEndTime, 'H:i') !!}
@endif @if(($oldBreak != '' && $newBreak != '') && $oldBreak != $newBreak) {!! __('schedule.break') !!} {!! __('schedule.changed_from') !!} {!! $oldBreak !!} {!! __('schedule.to') !!} {!! $newBreak !!}
@endif @if(($oldPayroll != '' && $newPayroll != '') && $oldPayroll != $newPayroll) {!! __('schedule.payroll_approved') !!} {!! __('schedule.changed_from') !!} {!! ($oldPayroll == 1) ? 'Yes' : 'No' !!} {!! __('schedule.to') !!} {!! ($newPayroll == 1) ? 'Yes' : 'No' !!}
@endif @if($oldAppStart != $newAppStart) {!! __('schedule.approved_start_time') !!} {!! __('schedule.changed_from') !!} {!! "'".dateFormat($oldAppStart, 'H:i')."'" !!} {!! __('schedule.to') !!} {!! "'".dateFormat($newAppStart, 'H:i')."'" !!}
@endif @if($oldAppEnd != $newAppEnd) {!! __('schedule.approved_end_time') !!} {!! __('schedule.changed_from') !!} {!! "'".dateFormat($oldAppEnd, 'H:i')."'" !!} {!! __('schedule.to') !!} {!! "'". dateFormat($newAppEnd, 'H:i')."'" !!}
@endif @if($oldComment != '' && $newComment != '' && $oldComment != $newComment) {!! __('schedule.comment') !!} {!! __('schedule.changed_from') !!} {!! "'".$oldComment ."'" !!} {!! __('schedule.to') !!} {!! "'".$newComment ."'" !!}
@endif {!! "By ". $detail->name ."" !!}
@endif