@extends('layouts.admin') @section('title', 'Customer Management') @section('page-title', 'Customer Management') @section('content')

All Customers

Manage and view your client database

add Add New Customer
search
@if(request('search')) @endif filter_list expand_more
@forelse($customers as $customer) @empty @endforelse
Customer Name Email & Phone Total Invoices Outstanding Balance Status Actions
{{ strtoupper(substr($customer->name, 0, 1)) }}
{{ $customer->name }}
{{ $customer->email ?? 'N/A' }} {{ $customer->phone ?? 'N/A' }}
{{ $customer->invoices->count() }} @php $balance = $customer->invoices->sum('balance'); @endphp
${{ number_format($balance, 2) }}
@if($balance > 0)
Overdue
@endif
{{ $customer->is_active ? 'Active' : 'Inactive' }}
visibility edit
@csrf @method('DELETE')
No customers found
@if($customers->hasPages())
Showing {{ $customers->firstItem() }} to {{ $customers->lastItem() }} of {{ $customers->total() }} entries
{{ $customers->links() }}
@endif
@endsection