Files
new_raffles/Modules/Employee/resources/views/employee/partials/attendance.blade.php
2025-07-27 17:40:56 +05:45

68 lines
2.9 KiB
PHP

<div class="card">
<div class="card-header align-items-center d-flex">
<h5 class="card-title flex-grow-1 mb-0">Attendance Detail</h5>
<div class="flex-shrink-0">
</div>
</div>
<div class="card-body">
<div class="row">
<div class="col-md-12">
<div class="table-responsive">
<table class="display table-sm table-bordered buttons-datatables table">
<thead class="table-light">
<tr>
<th class="tb-col"><span class="overline-title">Name</span></th>
<th class="tb-col"><span class="overline-title">Date</span></th>
<th class="tb-col"><span class="overline-title">Clock In</span></th>
<th class="tb-col"><span class="overline-title">Clock Out</span></th>
<th class="tb-col"><span class="overline-title">Working Hours(hrs)</span></th>
<th class="tb-col"><span class="overline-title">Status</span></th>
</tr>
</thead>
<tbody>
@foreach ($attends as $attend)
<tr style=" vertical-align: middle;">
<td class="p-1">
<div class="d-flex align-items-center">
<div class="me-2 flex-shrink-0">
<img src="
{{ $employee->profile_pic }}
"
alt="" class="avatar-sm p-2">
</div>
<div>
<h5 class="fs-14 fw-medium my-1">
<a href="#" class="text-reset text-hover-success small">
{{ $employee->full_name }}
</a>
</h5>
<span class="text-muted">
{{ $employee->email }}
</span>
</div>
</div>
</td>
<td>{{ $attend->date }}</td>
<td class="text-success">{{ $attend->clock_in_time ?? 'N/A'}}</td>
<td class="text-danger">{{ $attend->clock_out_time ?? 'N/A'}}</td>
<td class="text-center text-muted">{{ $attend->total_hours ?? 'N/A'}}</td>
<td>
@if ($attend->status == 10)
<span class="badge bg-danger">Absent</span>
@elseif ($attend->status == 11)
<span class="badge bg-success">Present</span>
@else
<span class="badge bg-secondary">N/A</span>
@endif
</td>
{{-- <td> <span class="badge bg-{{ $attend->status_name['color'] }}">{!! $attend->status_name['status'] !!}</td> --}}
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>