35 lines
1.6 KiB
PHP
35 lines
1.6 KiB
PHP
|
|
<div class="responsive-table m-0">
|
||
|
|
<table class="table" id="datatable">
|
||
|
|
<thead>
|
||
|
|
<tr>
|
||
|
|
<th>{{ __('SL') }}.</th>
|
||
|
|
<th class="text-start">{{ __('Employee') }}</th>
|
||
|
|
<th class="text-start">{{ __('Date') }}</th>
|
||
|
|
<th class="text-start d-print-none">{{ __('Month') }}</th>
|
||
|
|
<th class="text-start">{{ __('Shift') }}</th>
|
||
|
|
<th class="text-start">{{ __('Time In') }}</th>
|
||
|
|
<th class="text-start">{{ __('Time Out') }}</th>
|
||
|
|
<th class="text-start">{{ __('Duration') }}</th>
|
||
|
|
</tr>
|
||
|
|
</thead>
|
||
|
|
<tbody>
|
||
|
|
@foreach ($attendances as $attendance)
|
||
|
|
<tr>
|
||
|
|
<td>{{ ($attendances->currentPage() - 1) * $attendances->perPage() + $loop->iteration }}</td>
|
||
|
|
<td class="text-start">{{ $attendance->employee->name ?? '' }}</td>
|
||
|
|
<td class="text-start">{{ formatted_date($attendance->date) }}</td>
|
||
|
|
<td class="text-start d-print-none">{{ ucfirst($attendance->month) }}</td>
|
||
|
|
<td class="text-start">{{ $attendance->shift->name ?? '' }}</td>
|
||
|
|
<td class="text-start">{{ formatted_time($attendance->time_in) }}</td>
|
||
|
|
<td class="text-start">{{ formatted_time($attendance->time_out) }}</td>
|
||
|
|
<td class="text-start">{{ formatTimeToWords($attendance->duration) }}</td>
|
||
|
|
</tr>
|
||
|
|
@endforeach
|
||
|
|
|
||
|
|
</tbody>
|
||
|
|
</table>
|
||
|
|
</div>
|
||
|
|
<div class="mt-3">
|
||
|
|
{{ $attendances->links('vendor.pagination.bootstrap-5') }}
|
||
|
|
</div>
|