@extends('layouts.admin', [ 'title' => 'Customer Profile', 'pageTitle' => 'Customer Profile', 'active' => 'customers', ]) @php $statusVariants = [ 'active' => 'success', 'vip' => 'primary', 'new' => 'purple', 'inactive' => 'muted', ]; $appointmentVariants = [ 'pending' => 'warning', 'confirmed' => 'primary', 'checked_in' => 'purple', 'completed' => 'success', 'cancelled' => 'danger', 'no_show' => 'muted', ]; $invoiceVariants = [ 'draft' => 'muted', 'unpaid' => 'warning', 'partial' => 'warning', 'paid' => 'success', 'overdue' => 'danger', 'cancelled' => 'muted', ]; @endphp @section('content')
Customer since {{ $customer->created_at?->format('M d, Y') ?? 'Recently' }}
Lifetime Value
${{ number_format((float) $customer->total_spent, 2) }}
Appointments
{{ $customer->appointments_count }}
Completed
{{ $customer->completed_appointments_count }}
No Shows
{{ $customer->no_show_appointments_count }}
Balance Due
${{ number_format((float) $dueTotal, 2) }}
{{ $note['author'] ?? 'Team member' }}
{{ isset($note['date']) ? \Illuminate\Support\Carbon::parse($note['date'])->format('M d, Y') : 'Today' }}
{{ $note['text'] ?? '' }}