@vite(['resources/css/app.css', 'resources/js/app.js']) @include('admin.partials.styles') @include('admin.partials.sidebar')

{{ $client->name }}

@if($client->profile_photo_path) {{ $client->name }} @else
{{ strtoupper(substr($client->name, 0, 2)) }}
@endif

{{ $client->name }}

{{ $client->email }}

{{ $client->created_at->format('M d, Y') }}

{{ $client->is_active ? 'Active' : 'Inactive' }}
@if($client->fcm_token)
{{ Str::limit($client->fcm_token, 20) }}
@else Not synced yet @endif
@if($client->fcm_token)
@csrf
@endif
Total Orders
{{ $client->orders_count }}
View All Orders →
Total Spent
@php // Calculate simplistic total if loaded, usually done in controller $totalSpent = $client->orders->sum('total_amount'); // Assuming 'orders' relation is loaded @endphp ₹{{ number_format($totalSpent, 2) }}

Recent Orders

@forelse($recentOrders as $order) @empty @endforelse
Order # Date Status Amount
#{{ $order->order_number ?? $order->id }} {{ $order->created_at->format('M d, Y') }} {{ ucfirst($order->status) }} ₹{{ number_format($order->total_amount, 2) }}
No recent orders.