StocksNew/Modules/Attendance/resources/views/attendances/index.blade.php
Sampanna Rimal 53c0140f58 first commit
2024-08-27 17:48:06 +05:45

70 lines
3.0 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</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">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">Working Hours(min)</span></th>
<th class="tb-col"><span class="overline-title">Status</span></th>
</tr>
</thead>
<tbody>
@foreach ($employees as $employee)
<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>{{ $employee->atd_date }}</td>
<td class="text-success">{{ $employee->clock_in }}</td>
<td class="text-danger">{{ $employee->clock_out }}</td>
<td>{{ $employee->total_hrs }}</td>
<td>{{ $employee->status }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
@endsection