update addon HRM
Some checks failed
Build, Push and Deploy / build-and-push (push) Failing after 3m30s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 15s
Build, Push and Deploy / deploy-staging (push) Has been skipped
Build, Push and Deploy / deploy-production (push) Has been skipped

This commit is contained in:
2026-05-04 23:04:09 +07:00
parent 7be161f4e4
commit 3e1b64e008
131 changed files with 8281 additions and 290 deletions

View File

@@ -0,0 +1,34 @@
<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>