73 lines
3.2 KiB
PHP
73 lines
3.2 KiB
PHP
|
@extends('layouts.app')
|
||
|
@section('content')
|
||
|
<div class="page-content">
|
||
|
<div class="container-fluid">
|
||
|
|
||
|
<!-- start page title -->
|
||
|
@include('layouts.partials.breadcrumb', ['title' => $title])
|
||
|
|
||
|
<!-- end page title -->
|
||
|
|
||
|
<div class="card">
|
||
|
<div class="card-header align-items-center d-flex">
|
||
|
<h5 class="card-title flex-grow-1 mb-0">{{ $title }}</h5>
|
||
|
<div class="flex-shrink-0">
|
||
|
<a href="{{ route('attendance.create') }}" class="btn btn-success waves-effect waves-light"><i
|
||
|
class="ri-add-fill me-1 align-bottom"></i>Add Attendance</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="card-body">
|
||
|
<div class="row">
|
||
|
<div class="col-md-12">
|
||
|
<div class="table-responsive">
|
||
|
<table id="buttons-datatables" class="display table-sm table-bordered table">
|
||
|
<thead class="table-light">
|
||
|
<tr>
|
||
|
<th class="tb-col"><span class="overline-title p-1">Name</span></th>
|
||
|
<th class="tb-col"><span class="overline-title">Date</span></th>
|
||
|
<th class="tb-col"><span class="overline-title">Shift</span></th>
|
||
|
<th class="tb-col"><span class="overline-title">Clock In</span></th>
|
||
|
<th class="tb-col"><span class="overline-title">Clock In</span></th>
|
||
|
<th class="tb-col"><span class="overline-title">Total Hours</span></th>
|
||
|
<th class="tb-col"><span class="overline-title">Status</span></th>
|
||
|
<th class="tb-col"><span class="overline-title">Action</span></th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
@foreach ($employees as $employee)
|
||
|
<tr>
|
||
|
<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>
|
||
|
@foreach ($employee->dates as $date)
|
||
|
@if ($date)
|
||
|
<td><span class="text-success"><i class="ri-check-line"></i></span></td>
|
||
|
@else
|
||
|
<td><span class="text-danger"><i class="ri-close-line"></i></span></td>
|
||
|
@endif
|
||
|
@endforeach
|
||
|
</tr>
|
||
|
@endforeach
|
||
|
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
@endsection
|