@extends('admin.layout') @section('content')

Worker Time Logs

Track and manage worker time entries and hours

Add Time Log
Export to Excel @if(session('success')) @endif
@foreach($timeLogs as $log) @php $hours = floor($log->hours_worked); @endphp @endforeach
Worker Date Start Time End Time Hours Worked Present/Absent Actions
@if(isset($log->worker) && $log->worker->image) @else @endif
{{ $log->worker->name }} Worker ID: {{ $log->worker->id }}
{{ $log->work_date }} {{ \Carbon\Carbon::parse($log->work_date)->format('l') }}
{{ $log->start_time }}
{{ $log->end_time }}
{{$hours }}
@if($log->hours_worked>=8) Present @else Absent @endif
Edit
@csrf @method('DELETE')
@if($timeLogs->isEmpty())
No Time Logs Found

Get started by adding your first time log entry

Add First Time Log
@endif
@endsection