@extends('layouts.app') @section('title', 'Customer List') @section('content')
View customer details, outstanding balances and statements. Use Clear debt to record a repayment.
Customers on this page
{{ $customers->count() }}
Outstanding on this page
KSh {{ number_format($customers->sum('balance'), 2) }}
Total customer records
{{ $customers->total() }}
| Name | Phone | KRA PIN | Credit limit | Balance owed | Status | |
|---|---|---|---|---|---|---|
| {{ $customer->name }} | {{ $customer->phone ?? '—' }} | {{ $customer->kra_pin ?? '—' }} | {{ number_format($customer->credit_limit, 2) }} | {{ number_format($customer->balance, 2) }} |
Statement
@if($customer->balance > 0.009)
Clear debt
@endif
@if(auth()->user()->hasRole('administrator', 'manager'))
Edit
@endif
|
|
| No customer accounts yet. | ||||||