@include('Partials.sidebar')
@include('Partials.header')

Invoices

@foreach(['success','error'] as $t) @if(session($t))
{{ session($t) }}
@endif @endforeach {{-- KPI Cards --}}
@foreach([ ['Total Invoices', $stats['total'], 'fa-file-invoice', 'primary'], ['Issued', $stats['issued'], 'fa-check-circle', 'success'], ['Total Value', '₹'.number_format($stats['total_value'], 2), 'fa-rupee-sign', 'warning'], ['Collected', '₹'.number_format($stats['total_paid'], 2), 'fa-wallet', 'info'], ] as [$label, $value, $icon, $color])
{{ $label }}
{{ $value }}
@endforeach
{{-- Filters --}}
{{-- Table --}}
@forelse($invoices as $inv) @empty @endforelse
Invoice #TypeClientUnit Amount PaidBalanceStatus IssuedEmailActions
{{ $inv->invoice_number }} @if($inv->type==='milestone') Receipt @else Tax Invoice @endif
{{ $inv->client_name }}
@if($inv->client_email)
{{ $inv->client_email }}
@endif
Unit {{ $inv->plot_number }}
@if($inv->project_name)
{{ $inv->project_name }}
@endif
{{ $inv->fmt($inv->amount_paid) }} @if($inv->balance_due > 0) {{ $inv->fmt($inv->balance_due) }} @else ✓ Nil @endif {!! $inv->statusBadge() !!} {{ $inv->issued_at->format('d M Y') }} @if($inv->email_sent_at) ✓ {{ $inv->email_sent_at->format('d M') }} @if($inv->broker_copy_sent) +broker @endif @else @endif
@csrf
No invoices found.
@if($invoices->hasPages()) @endif
@include('Partials.footer')