@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')
@if (session('status'))
{{ session('status') }}
@endif
Back to Staff
Working Hours Edit Profile
@csrf @method('DELETE') Delete
@if ($staff->avatar_url) {{ $staff->name }} @else
{{ $staff->initials }}
@endif

{{ $staff->name }}

{{ $staff->availability_label }}

{{ $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.' }}

@if ($staff->services->isNotEmpty())
@foreach ($staff->services as $service) {{ $service->name }} @endforeach
@else
No services assigned yet.
@endif
@if ($todayAppointments->isNotEmpty())
@foreach ($todayAppointments as $appointment) @php $statusValue = $appointment->status->value ?? $appointment->status; $statusLabel = str($statusValue)->replace('_', ' ')->title(); @endphp

{{ $appointment->customer?->name ?? 'Walk-in customer' }}

{{ $appointment->service?->name ?? 'Service' }} - {{ $appointment->starts_at?->format('g:i A') }}

{{ $statusLabel }}
@endforeach
@else
No appointments scheduled for today.
@endif
{{ $staff->phone ?: 'No phone added' }}
{{ $staff->email ?: 'No email added' }}
{{ $workingHoursSummary['working_days'] }} working days/week
Weekly hours{{ number_format($workingHoursSummary['weekly_hours'], 1) }}
Working days{{ $workingHoursSummary['working_days'] }}
Breaks{{ $workingHoursSummary['breaks'] }}
Edit Hours

{{ $staff->availability_label }}

Availability is ready for booking rules and calendar logic.

@endsection