@extends('layouts.app') @section('title', 'Supplier Invoices') @section('content')

Supplier Invoices

Manage bills received from suppliers and linked Purchase Orders

Record New Bill

Unpaid Bills

{{ $invoices->where('payment_status', 'unpaid')->count() }}

Total Monthly Volume

${{ number_format($invoices->sum('total_amount'), 2) }}

Total Invoices

{{ $invoices->total() }}

@forelse($invoices as $invoice) @empty @endforelse
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) }}
@if($invoice->pdf_path) @endif
@csrf @method('DELETE')
No supplier invoices recorded yet.
{{ $invoices->links() }}
@endsection