@extends('layouts.app') @section('title', 'Invoices List') @section('page_title', 'Invoice Management') @section('content')
TOTAL INVOICES

{{ $invoices->count() }}

FULLY PAID

{{ $invoices->where('status', 'paid')->count() }}

PARTIALLY PAID

{{ $invoices->where('status', 'partial')->count() }}

UNPAID / OVERDUE

{{ $invoices->whereIn('status', ['unpaid', 'overdue'])->count() }}

Invoice Ledger
@forelse($invoices as $inv) @empty @endforelse
Invoice # Customer Date Due Date Total Amount Amount Paid Balance Due Status Actions
{{ $inv->invoice_number }}
{{ $inv->client->full_name }}
{{ $inv->client->client_code }}
{{ $inv->invoice_date->format('M d, Y') }} {{ $inv->due_date ? $inv->due_date->format('M d, Y') : '-' }} {{ number_format($inv->total_amount) }} UGX {{ number_format($inv->amount_paid) }} UGX {{ number_format($inv->balance_due) }} UGX {{ ucfirst($inv->status) }} View
No invoices generated yet.
@endsection