@extends('layouts.app') @section('title', 'Supplier Invoices') @section('content')
Manage bills received from suppliers and linked Purchase Orders
Unpaid Bills
{{ $invoices->where('payment_status', 'unpaid')->count() }}
Total Monthly Volume
${{ number_format($invoices->sum('total_amount'), 2) }}
Total Invoices
{{ $invoices->total() }}
| Supplier / Inv # | Date | Linked POs | Amount | Status | Actions |
|---|---|---|---|---|---|
|
{{ $invoice->supplier->name }}
{{ $invoice->supplier_invoice_number }}
|
{{ $invoice->invoice_date->format('d M Y') }} |
@foreach($invoice->purchaseOrders as $po)
{{ $po->po_number }}
@endforeach
|
${{ number_format($invoice->total_amount, 2) }} | @php $statusClasses = [ 'paid' => 'bg-green-100 text-green-800', 'partial' => 'bg-blue-100 text-blue-800', 'unpaid' => 'bg-red-100 text-red-800', ]; @endphp {{ ucfirst($invoice->payment_status) }} | |
| No supplier invoices recorded yet. | |||||