Customer List
{{-- SEARCH + STATUS FILTER ROW --}}
{{-- SEARCH BAR --}}
{{-- STATUS FILTER --}}
Customer List
Add Customer
{{-- TABLE --}}
| Customer Info |
Customer ID |
Create Date |
Status |
Actions |
@forelse($customers as $c)
{{-- CUSTOMER INFO --}}
{{-- Avatar --}}
{{ strtoupper(substr($c->customer_name,0,1)) }}
{{ $c->customer_name }}
{{-- Customer Type --}}
@if($c->customer_type == 'premium')
Premium Customer
@else
Regular Customer
@endif
{{ $c->email }}
{{ $c->mobile_no }}
{{ $c->orders->count() }} orders
₹{{ number_format($c->orders->sum('ttl_amount'), 2) }} total
|
{{-- CUSTOMER ID --}}
{{ $c->customer_id }} |
{{-- CREATED DATE --}}
{{ $c->created_at ? $c->created_at->format('d-m-Y') : '-' }} |
{{-- STATUS --}}
@if($c->status === 'active')
Active
@else
Inactive
@endif
|
{{-- ACTION BUTTONS --}}
{{-- VIEW --}}
{{-- TOGGLE STATUS --}}
|
@empty
|
No customers found.
|
@endforelse