@extends('layouts.seller') @section('content')
{!! Form::model($result, ['route' => ['schedule.update-info', $result->id], 'method' => 'POST', 'id' => 'ajaxSave', 'files' => true]) !!} {{-- {!! Form::model($result, ['route' => $route, 'method' => 'POST', 'id' => 'ajaxSave', 'files' => true]) !!} --}}
@if($isPunchIn)
  {!! __('schedule.already_punch_in_message') !!}
@endif @php $dateAttr = ($isPunchIn) ? ['class' => 'form-control', 'readonly' => 'true'] : ['class' => 'form-control datepicker-input']; $timeAttr = ($isPunchIn) ? ['class' => 'form-control', 'readonly' => 'true'] : ['class' => 'form-control t-picker']; if($isPunchIn) { $employee = [ $result->employee_id => $result->first_name .' ' . $result->last_name ]; } @endphp
{!! Form::label('shift_date', __('schedule.shift_date'), ['class' => 'control-label mb-2']) !!} {!! Form::text('shift_date', dateFormat($result->start_dt, SHOW_DATE), $dateAttr) !!}
{!! Form::label('shift_from', __('schedule.shift_from'), ['class' => 'control-label mb-2']) !!} {!! Form::text('shift_from', dateFormat($result->start_dt, SHOW_TIME_24), $timeAttr) !!}
{!! Form::label('shift_to', __('schedule.shift_to'), ['class' => 'control-label mb-2']) !!} {!! Form::text('shift_to', dateFormat($result->end_dt, SHOW_TIME_24), $timeAttr) !!}
{!! Form::label('shift_type', __('schedule.shift_type'), ['class' => 'control-label mb-2']) !!} {!! Form::select('shift_type', $shiftType, $result->shift_type_id, ['class' => 'form-control select2']) !!}
{!! Form::label('employee', __('schedule.employee'), ['class' => 'control-label mb-2']) !!} {!! Form::select('employee', $employee, $result->employee_id, ['class' => 'form-control select2 __employee']) !!}
{!! Form::label('employee_group', __('schedule.employee_group'), ['class' => 'control-label mb-2']) !!} {!! Form::select('employee_group', $employeeGroup, $result->employee_group_id, ['class' => 'form-control select2']) !!}
{!! Form::label('break', __('schedule.break'), ['class' => 'control-label mb-2']) !!} {!! Form::number('break', (int) $result->break_time, ['class' => 'form-control']) !!}
{!! Form::label('payroll', __('schedule.payroll_approved'), ['class' => 'control-label mb-2']) !!} {!! Form::select('payroll', yesNo(false), $result->is_approved, ['class' => 'form-control select2']) !!}
{!! Form::label('vakttype', __('schedule.vakttype'), ['class' => 'control-label mb-2']) !!} {!! Form::select('vakttype', vaktType(), $result->vakttype, ['class' => 'form-control select2']) !!}
@if($isPunchIn)
{!! __('schedule.punch_clock_timings') !!}
{!! __('schedule.punch_start_time') !!} - {!! dateFormat($punchResult->punch_in_time, SHOW_TIME_24) !!}
@if($punchResult->punch_out_time != '')
{!! __('schedule.punch_end_time') !!} - {!! dateFormat($punchResult->punch_out_time, SHOW_TIME_24) !!}
@endif
@endif @if($result->is_approved == 1)
{!! __('schedule.approve_timings') !!}
{!! __('schedule.approved_start_time') !!} - {!! dateFormat($result->approved_start_time, SHOW_TIME_24) !!}
@if($result->approved_end_time != '')
{!! __('schedule.approved_end_time') !!} - {!! dateFormat($result->approved_end_time, SHOW_TIME_24) !!}
@endif @if($result->approved_break_time > 0)
{!! __('schedule.approved_break_time') !!} - {!! $result->approved_break_time !!}
@endif
@endif
{!! Form::label('comment', __('schedule.comment'), ['class' => 'control-label']) !!} {!! Form::textarea('comment', $result->description, ['class' => 'form-control', 'size' => '5x3']) !!}
@if(isset($logHistory) && count($logHistory) > 0) @php $i=1; @endphp @foreach($logHistory as $detail) @endforeach
{!! __('schedule.time') !!} {!! __('schedule.change') !!} {!! __('schedule.change_by') !!}
{!! dateFormat($detail->created_at, '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 != '' && $newBreak != '') && $oldPayroll != $newPayroll) {!! __('schedule.payroll_approved') !!} {!! __('schedule.changed_from') !!} {!! ($oldPayroll == 1) ? 'Yes' : 'No' !!} {!! __('schedule.to') !!} {!! ($newPayroll == 1) ? 'Yes' : 'No' !!}
@endif @if(($oldAppStart != '' && $newAppStart != '') && $oldAppStart != $newAppStart) {!! __('schedule.approved_start_time') !!} {!! __('schedule.changed_from') !!} {!! dateFormat($oldAppStart, 'H:i') !!} {!! __('schedule.to') !!} {!! dateFormat($newAppStart, 'H:i') !!}
@endif @if(($oldAppEnd != '' && $newAppEnd != '') && $oldAppEnd != $newAppEnd) {!! __('schedule.approved_end_time') !!} {!! __('schedule.changed_from') !!} {!! dateFormat($oldAppEnd, 'H:i') !!} {!! __('schedule.to') !!} {!! dateFormat($newAppEnd, 'H:i') !!}
@endif
{!! $detail->name !!}
@else
{!! __('common.no_record_found') !!}
@endif
  • {{--
  • --}}
{!! Form::close() !!}
@endsection @section('script') @endsection