@extends('layouts.app') @section('title', 'Daily Timecards - Blackberry Farm') @section('content')
📊 Weekly View ⏰ Quick Clock 💰 Payroll Summary 👥 Manage Employees
{{ $summaryStats['total_employees'] }}
Total Employees
{{ $summaryStats['employees_working'] }}
Currently Working
{{ number_format($summaryStats['total_hours'], 1) }}h
Total Hours Today
${{ number_format($summaryStats['total_payroll'], 2) }}
Daily Payroll

🕐 Real-Time Status

{{ $employees->where('is_working', true)->count() }}
🟢 Working Now
{{ $employees->where('is_working', false)->where('daily_total_hours', '>', 0)->count() }}
⚪ Clocked Out
{{ $employees->where('daily_overtime_hours', '>', 0)->count() }}
⏰ Overtime
{{ $employees->where('daily_total_hours', 0)->count() }}
🔴 Not Worked
@if($employees->count() > 0)

👥 Employee Status - {{ $selectedDate->format('M j, Y') }}

@foreach($employees as $employee) @endforeach
Employee Status Clock In Clock Out Hours Worked Daily Pay Actions
{{ substr($employee->first_name, 0, 1) }}{{ substr($employee->last_name, 0, 1) }}
{{ $employee->first_name }} {{ $employee->last_name }}
{{ ucwords(str_replace('_', ' ', $employee->department)) }}
@if($employee->is_working) 🟢 Working @elseif($employee->daily_total_hours > 0) ⚪ Completed @else 🔴 Not Worked @endif @if($employee->clock_in)
{{ $employee->clock_in->format('g:i A') }}
@else
-
@endif
@if($employee->clock_out)
{{ $employee->clock_out->format('g:i A') }}
@elseif($employee->is_working)
Still Working
@else
-
@endif
@if($employee->daily_total_hours > 0)
{{ number_format($employee->daily_total_hours, 1) }}h
@if($employee->daily_overtime_hours > 0)
{{ number_format($employee->daily_overtime_hours, 1) }}h OT
@endif @else
0.0h
@endif
@if($employee->daily_total_pay > 0)
${{ number_format($employee->daily_total_pay, 2) }}
@else
$0.00
@endif
@if($employee->is_working) Clock Out @elseif(!$employee->clock_in) Clock In @endif View
@else

No Employees Found

No employees found for the selected criteria.

Add First Employee
@endif

🔄 Page auto-refreshes every 2 minutes for real-time updates
Last updated: {{ now()->format('g:i:s A') }}

@endsection @push('scripts') @endpush