@php $jalaliCurrentMonth = getJalaliMonth(date('Y-m-d')); // shamsi @endphp @if(!$fetchAttendance->isEmpty())

@if(auth()->user()->hasPermissionTo('Attendance - Get Attendance'))
@php $i =1; @endphp @foreach($fetchAttendance as $attendance) status == 'leave') class="alert-warning" @elseif($attendance->status == 'holiday') class="alert-inverse" @elseif($attendance->status == 'absent') class="alert-danger" @else class="alert-success" @endif> @endforeach
{{ __('attendance.employee') }} {{ __('attendance.date') }} {{ __('attendance.check_in') }} {{ __('attendance.check_out') }} {{ __('attendance.status') }}
{{ $attendance->employee->name}}, {{ $attendance->employee->father_name}} [{{ $attendance->employee->last_name }}] {{ getJalaliDate($attendance->day_date)}} check_in != '') value="{{ $attendance->check_in }}" @else @if($attendance->status == 'present') @if($jalaliCurrentMonth >= 1 && $jalaliCurrentMonth <= 6) value='08:00:05' @else value="08:30:05" @endif @endif @endif> check_out != '') value="{{ $attendance->check_out }}" @else @if($attendance->status == 'present') @if($jalaliCurrentMonth >= 1 && $jalaliCurrentMonth <= 6) value="16:00:05" @else value="15:30:05" @endif @endif @endif> @if($attendance->status == 'leave') @elseif($attendance->status == 'holiday') @else
status == 'present') checked value="present-{{ $attendance->employee_id }}" @else value="absent" @endif>
@endif

@endif @endif