@extends('layouts.app') @section('title', 'Invoices') @section('content')
{{ $invoices->total() }} invoice(s) matching your filters.
| Invoice | Customer | Type | Period | Issued | Due | Total | Balance | Status | |
|---|---|---|---|---|---|---|---|---|---|
|
{{ $invoice->invoice_number }}
@if ($invoice->service)
{{ $invoice->service->service_number }}
@endif
|
{{ $invoice->customer->display_name }} | {{ title_case_words($invoice->type) }} | {{ $invoice->period_start?->format('d M') ?? '—' }} @if ($invoice->period_end) – {{ $invoice->period_end->format('d M Y') }} @endif | {{ $invoice->issue_date->format('d M Y') }} | @if ($invoice->is_overdue && $invoice->balance > 0) {{ (int) $invoice->due_date->diffInDays(now()) }}d late @else {{ $invoice->due_date->format('d M Y') }} @endif | {{ money($invoice->total, $invoice->currency) }} | {{ money($invoice->balance, $invoice->currency) }} | {{ $invoice->status }} | Open @if ($invoice->balance > 0 && $invoice->status !== 'draft') Collect @endif |
| @include('components.empty-state', ['icon' => '📄', 'title' => 'No invoices found', 'message' => 'Run the billing cycle or raise a manual invoice.', 'action' => '+ New invoice']) | |||||||||