@extends('layouts.admin', [ 'title' => 'Appointment Details', 'pageTitle' => 'Appointment Details', 'active' => 'appointments', ]) @php $statusVariants = [ 'pending' => 'warning', 'confirmed' => 'primary', 'checked_in' => 'purple', 'completed' => 'success', 'cancelled' => 'danger', 'no_show' => 'muted', ]; @endphp @section('content')
{{ $appointment->service?->name ?? 'Service removed' }} with {{ $appointment->staffProfile?->name ?? 'Unassigned' }}
Total Amount
${{ number_format((float) $appointment->price, 2) }}
Date
{{ $appointment->starts_at?->format('M d, Y') }}
Time
{{ $appointment->starts_at?->format('g:i A') }} - {{ $appointment->ends_at?->format('g:i A') }}
Duration
{{ $appointment->duration_minutes }} min
Booking
{{ $appointment->booking_number }}
Customer Notes
{{ $appointment->customer_notes ?: 'No customer notes saved.' }}
Internal Notes
{{ $appointment->internal_notes ?: 'No internal notes saved.' }}
{{ \App\Enums\AppointmentStatus::tryFrom($log->to_status)?->label() ?? \Illuminate\Support\Str::headline($log->to_status) }}
{{ $log->created_at?->format('M d, Y \\a\\t g:i A') }}{{ $log->changedBy ? ' by ' . $log->changedBy->name : '' }}
@if ($log->note){{ $log->note }}
@endifNo status history recorded yet.
@endforelse