@if($client->profile_photo_path)
@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)
@else
Not synced yet
@endif
{{ Str::limit($client->fcm_token, 20) }}
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
| 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. | |||