@extends('layouts.app') @section('content')

{{ $page_title }}

{{ $module_title }}

  • Client Name: {{ $attendanceData->client_name }}
  • Location: {{ $attendanceData->location_name }}
  • Month: {{ \Carbon\Carbon::create($attendanceData->year, $attendanceData->month, 1)->format('F Y') }}
@for ($d = 1; $d <= \Carbon\Carbon::create($attendanceData->year, $attendanceData->month, 1)->daysInMonth; $d++) @endfor @foreach ($returnData as $empCode => $row) @foreach ($row['days'] as $dayIndex => $dayStatus) @php $class = ''; $disabledInput = false; if (str_contains($dayStatus, 'WOFF')) { $class = 'woff-cell'; $disabledInput = true; } elseif (str_contains($dayStatus, 'LOP')) { $class = 'lop-cell'; } elseif (str_contains($dayStatus, 'EL')) { $class = 'el-cell'; } elseif (str_contains($dayStatus, 'SL')) { $class = 'el-cell'; } elseif (str_contains($dayStatus, 'PL')) { $class = 'el-cell'; } elseif (str_contains($dayStatus, 'MAT_L')) { $class = 'el-cell'; } elseif (str_contains($dayStatus, 'NH')) { $class = 'nh-cell'; $disabledInput = true; } @endphp @endforeach @endforeach
# EMP Name EMP Code{{ \Carbon\Carbon::create($attendanceData->year, $attendanceData->month, $d)->format('M d') }} Present Leave OT WOff Holiday EL SL PL Mat L
{{ $loop->iteration }} {{ $row['emp_name'] }} {{ $empCode }} {{ $row['total_present'] }} {{ $row['total_leave'] }} {{ $row['total_ot_days'] }} {{ $row['total_wof'] }} {{ $row['total_holiday'] }} {{ $row['total_el'] }} {{ $row['total_sl'] }} {{ $row['total_pl'] }} {{ $row['total_mat_l'] }}
@endsection @push('scripts') @endpush