Total Customers
{{ number_format($stats['total'] ?? 0) }}
Regular Customers
{{ number_format($stats['regular'] ?? 0) }}
Walk-in Customers
{{ number_format($stats['walk_in'] ?? 0) }}
Total Revenue
KES{{ number_format($stats['total_revenue'] ?? 0, 2) }}
Business Customers
{{ number_format($stats['business'] ?? 0) }}
VAT Registered
{{ number_format($stats['vat_registered'] ?? 0) }}
Total VAT Collected
KES{{ number_format($stats['total_vat_collected'] ?? 0, 2) }}
Loyalty Points
{{ number_format($stats['total_loyalty_points'] ?? 0) }}
Success
Error
Validation Errors
-
@foreach($errors->all() as $error)
- {{ $error }} @endforeach
|
|
Customer | Contact | Type/Status | Sales Statistics | Credit/Balance | Actions |
|---|---|---|---|---|---|---|
|
|
{{ strtoupper(substr($customer->name, 0, 1)) }}
{{ $customer->name }}@if($customer->company_name) {{ $customer->company_name }} @else {{ $customer->customer_code }} @endif @if($customer->email) {{ $customer->email }} @endif |
@if($customer->phone)
{{ $customer->phone }}
@endif
@if($customer->vat_number)
VAT: {{ $customer->vat_number }}
@endif
@if($customer->contact_person)
{{ $customer->contact_person }}
@endif
|
@if($customer->customer_type == 'walk-in')
Walk-in
@elseif($customer->customer_type == 'regular')
Regular
@else
Business
@endif
@if($customer->status == 'active')
Active
@else
Inactive
@endif
@if($customer->is_vat_registered)
VAT Registered
@endif
@if($customer->loyalty_points > 0)
{{ $customer->loyalty_points }} pts
@endif
|
KES{{ number_format($customer->total_spent, 2) }}
total spent
{{ $customer->total_orders }} orders
@if($customer->total_orders > 0)
(KES{{ number_format($customer->average_order_value, 2) }} avg)
@endif
@if($customer->last_purchase_date)
Last: {{ $customer->last_purchase_date->format('M d, Y') }}
@else
Never purchased
@endif
@if($customer->taxable_sales > 0)
VAT: KES{{ number_format($customer->vat_collected, 2) }}
({{ number_format($customer->vat_rate_effective, 1) }}%)
@endif
|
@if($customer->credit_limit > 0)
KES{{ number_format($customer->balance, 2) }}
Balance
Limit: KES{{ number_format($customer->credit_limit, 2) }}
Available: KES{{ number_format($customer->available_credit, 2) }}
@else
KES 0.00
No Credit
@endif
@if($customer->discount_percent > 0)
{{ $customer->discount_percent }}% Discount
@endif
|
No customers found
@if(request()->has('search') || request()->has('type')) Try changing your search criteria @else Get started by adding your first customer @endif
Add New Customer