@extends('layouts.app') @section('title', 'Supplier Invoices') @section('content')
Track and manage supplier invoices
| Invoice # | Supplier | PO # | Date | Total | Paid | Outstanding | Status | Actions |
|---|---|---|---|---|---|---|---|---|
| {{ $invoice->invoice_number }} | {{ $invoice->supplier->name ?? '' }} | {{ $invoice->purchaseOrder->po_number ?? '-' }} | {{ $invoice->invoice_date ? \Carbon\Carbon::parse($invoice->invoice_date)->format('d M Y') : '' }} | {{ number_format($invoice->total_amount, 2) }} | {{ number_format($invoice->paid_amount, 2) }} | {{ number_format($outstanding, 2) }} | @php $badgeClass = match($invoice->status ?? 'unpaid') { 'unpaid' => 'badge-red', 'partial' => 'badge-yellow', 'paid' => 'badge-green', default => 'badge-gray', }; @endphp {{ ucfirst($invoice->status ?? 'unpaid') }} | |
| No invoices found. | ||||||||