@extends('layouts.app') @section('title', 'Clients') @section('page-title', 'Clients') @section('content')
All Clients
{{ $clients->total() }} client{{ $clients->total() !== 1 ? 's' : '' }}
Add Client
{{-- Search --}}
@if(request('search')) Clear @endif
@if($clients->isEmpty())
No clients yet

{{ request('search') ? 'No clients match your search.' : 'Add your first client to start creating invoices.' }}

@if(!request('search')) Add Client @endif
@else
@foreach($clients as $client) @endforeach
Client Contact Total Billed Total Paid Invoices
{{ $client->display_name }}
@if($client->business_name && $client->name !== $client->business_name) {{ $client->name }} @endif
@if($client->email)
{{ $client->email }}
@endif @if($client->phone)
{{ $client->phone }}
@endif
₦{{ number_format($client->total_billed, 2) }} ₦{{ number_format($client->total_paid, 2) }} {{ $client->invoices_count }}
@csrf @method('DELETE')
@if($clients->hasPages())
{{ $clients->links() }}
@endif @endif
@endsection