{{ __('Customers') }}

+ Add Customer
Clear
@if($customers->count() > 0)
@foreach($customers as $customer) @endforeach
PIN Name Mobile NIC Type Credit Limit Balance Added Status Actions
{{ $customer->pin }}
{{ $customer->name }}
@if($customer->name_local)
{{ $customer->name_local }}
@endif
{{ $customer->mobile ?? $customer->phone }} {{ $customer->nic ?? '—' }} {{ ucfirst($customer->customer_type) }} @if($customer->credit_limit === null) Unlimited @else {{ number_format($customer->credit_limit, 2) }} @endif @php $balance = $customer->credit_balance; $colorClass = $balance > 0 ? 'text-red-600 font-semibold' : 'text-gray-600'; @endphp {{ number_format($balance, 2) }} {{ optional($customer->created_at)->format('Y-m-d h:i A') }} @if($customer->is_active) Active @else Inactive @endif
📊 ✏️
@csrf @method('PATCH')
@csrf @method('DELETE')
@php $pageBalanceVal = (float) ($customers->getCollection()->sum('credit_balance') ?? 0); $pageBalanceClass = $pageBalanceVal > 0 ? 'text-red-600 font-semibold' : 'text-gray-700 font-semibold'; @endphp
Page Total Balance:
{{ number_format($pageBalanceVal, 2) }}
Showing {{ $customers->firstItem() ?? 0 }} to {{ $customers->lastItem() ?? 0 }} of {{ $customers->total() }} entries
{{ $customers->appends(request()->except('page'))->links() }}
@else

No customers found.

Add your first customer
@endif