{{-- resources/views/invoices/index.blade.php --}} @extends('layouts.app') @section('title', 'Invoices') @section('content')
| Invoice # | BIN | Business Name | Taxpayer | Barangay | Permit Type | Issue Date | Due Date | Amount (₱) | Status | Actions |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ $r[0] }} | {{ $r[1] }} | {{ $r[2] }} | {{ $r[3] }} | {{ $r[4] }} | {{ $r[5] }} | {{ \Carbon\Carbon::parse($r[6])->format('M d, Y') }} | {{ \Carbon\Carbon::parse($r[7])->format('M d, Y') }} | {{ number_format($r[8], 2) }} | {!! statusBadge($r[9]) !!} |
|
| Total | ₱ {{ number_format(array_sum(array_column($rows, 8)), 2) }} | |||||||||