@extends('layouts.app') @section('title', 'Employee Management - Blackberry Farm') @section('content')
+ Add New Employee ⏰ Timesheets 💰 Payroll
{{ $employees->total() ?? 0 }}
Total Employees
{{ $employees->where('status', 'active')->count() ?? 0 }}
Active Employees
${{ number_format($totalPayroll ?? 0, 2) }}
Monthly Payroll
{{ number_format($totalHours ?? 0, 1) }}
Hours This Week

📊 Workforce Analytics

👥 Employee Status

🏢 Department Breakdown

⏰ Weekly Hours Overview

{{ number_format($regularHours ?? 0, 1) }}
Regular Hours
{{ number_format($overtimeHours ?? 0, 1) }}
Overtime Hours
${{ number_format($avgWage ?? 0, 2) }}
Average Hourly Rate
{{ $employeesWorkedToday ?? 0 }}
Worked Today
@if($employees && $employees->count() > 0)
@foreach($employees as $employee) @endforeach
Employee Department Position Hourly Rate Status Hours This Week Actions
{{ substr($employee->first_name, 0, 1) }}{{ substr($employee->last_name, 0, 1) }}
{{ $employee->first_name }} {{ $employee->last_name }}
{{ $employee->email }}
{{ ucwords(str_replace('_', ' ', $employee->department)) }} {{ $employee->position }} ${{ number_format($employee->hourly_rate, 2) }} @php $statusClass = match($employee->status) { 'active' => 'badge-success', 'part_time' => 'badge-info', 'seasonal' => 'badge-warning', 'inactive' => 'badge-secondary', 'terminated' => 'badge-danger', default => 'badge-secondary' }; @endphp {{ ucfirst(str_replace('_', ' ', $employee->status)) }}
{{ number_format($employee->weekly_hours ?? 0, 1) }}h
@if(($employee->weekly_hours ?? 0) > 40)
{{ number_format(($employee->weekly_hours ?? 0) - 40, 1) }}h OT
@endif
View Edit Hours
@else

👥 No Employees Added Yet

Start building your farm workforce by adding your first employee.

Track bio data, wages, hours, and manage payroll efficiently.

👥 Add Your First Employee
@endif @endsection @push('scripts') @endpush