@extends('admin.layout.app') @section('body')
{{-- Flash alerts --}} @if (session('success'))
{{ session('success') }}
@endif @if (session('error'))
{{ session('error') }}
@endif {{-- Validation summary (optional) --}} @if ($errors->any())
@endif

Timesheets

Track hours worked
{{-- 🔎 Search form --}}
@forelse($timesheets as $t) @empty {{-- fixed colspan to 8 --}} @endforelse
# Date Laborer Shift Hours Overtime Hours Total Actions
{{ $t->id }} {{ optional($t->date)->format('Y-m-d') ?? '—' }} {{ $t->laborer->name ?? '—' }} {{ $t->shift ?? '—' }} {{ number_format((float) $t->hours_worked, 2) }} {{ number_format((float) $t->overtime_hours, 2) }} ${{ number_format((float) ($t->total ?? 0), 2) }}
No records found
{{ $timesheets->withQueryString()->links() }}
@endsection @section('scripts') {{-- Font Awesome (if not globally loaded) --}} {{-- Export Libraries --}} @endsection