@extends('layouts.admin', [ 'title' => 'Staff Profile', 'pageTitle' => 'Staff Profile', 'active' => 'staff', ]) @php $availabilityKey = $staff->status === 'inactive' ? 'inactive' : $staff->availability_status; $availabilityVariants = [ 'available' => 'success', 'busy' => 'warning', 'off_today' => 'muted', 'inactive' => 'danger', ]; $appointmentVariants = [ 'confirmed' => 'primary', 'checked_in' => 'purple', 'pending' => 'warning', 'completed' => 'success', 'cancelled' => 'danger', 'no_show' => 'danger', ]; @endphp @section('content')
{{ $staff->role ?: 'Staff Member' }}
Monthly Revenue
${{ number_format($monthlyRevenue, 2) }}
Today
{{ $staff->today_appointments_count }} appointments
This Month
{{ $staff->month_appointments_count }} bookings
Completed
{{ $staff->completed_appointments_count }}
Rating
{{ $staff->rating_display }}
{{ $staff->bio ?: 'No bio or internal note has been added yet.' }}
{{ $appointment->customer?->name ?? 'Walk-in customer' }}
{{ $appointment->service?->name ?? 'Service' }} - {{ $appointment->starts_at?->format('g:i A') }}
{{ $staff->availability_label }}
Availability is ready for booking rules and calendar logic.