@extends('layouts.admin', [ 'title' => 'Staff', 'pageTitle' => 'Staff', 'active' => 'staff', ]) @php $statusVariants = [ 'available' => 'success', 'busy' => 'warning', 'off_today' => 'muted', 'inactive' => 'danger', ]; $sortOptions = [ 'name' => 'Name', 'newest' => 'Newest', 'appointments_desc' => 'Most Appointments', ]; $hasActiveFilters = collect($filters ?? [])->filter()->isNotEmpty(); @endphp @section('content')
Manage staff profiles, availability, working hours, and assigned services.
Total Staff
{{ $stats['total'] }}
Profiles in this business
Available Now
{{ $stats['available'] }}
Ready for bookings
Today Appointments
{{ $stats['today_appointments'] }}
Across all staff
Avg Rating
{{ $stats['average_rating'] }}
{{ $stats['average_rating'] === 'N/A' ? 'Ratings not collected yet' : 'From saved staff ratings' }}
{{ $member->name }}
{{ $member->role ?: 'Staff Member' }}
Today
{{ $member->today_appointments_count }}
Month
{{ $member->month_appointments_count }}
Phone
{{ $member->phone ?: 'No phone' }}
Hours
{{ $openDays }} days/week
{{ $hasActiveFilters ? 'No staff profiles match the current filters.' : 'Add staff profiles so customers can choose providers while booking.' }}