@extends('documents.procurement._layout', [ 'documentTitle' => 'Supplier Invoice', 'reference' => $invoice->invoice_reference, 'documentDate' => \Carbon\Carbon::parse($invoice->invoice_date)->format('d M Y'), ]) @section('header-meta') @if($invoice->supplier_invoice_number)
|
Supplier (Bill From): {{ $supplier?->name ?? '—' }} @if($supplier?->contact_name) {{ $supplier->contact_name }} @endif @if($supplier?->contact_email) {{ $supplier->contact_email }} @endif @if($supplier?->contact_phone) {{ $supplier->contact_phone }} @endif @if($supplier?->city) {{ $supplier->city }} @endif |
Invoice Details: Currency: {{ $src }} @if($isForeign) (Base: {{ $base }}, Rate: {{ number_format((float) $invoice->exchange_rate, 4) }}) @endif @if($invoice->lpo) LPO Ref: {{ $invoice->lpo->lpo_reference }} @endif @if($invoice->grn) GRN Ref: {{ $invoice->grn->grn_reference }} @endif @if($invoice->deliveryLocation) Location: {{ $invoice->deliveryLocation->name }} @endif |
| # | Product | SKU | Qty | Unit Price ({{ $src }}) | Line Total ({{ $src }}) |
|---|---|---|---|---|---|
| {{ $i + 1 }} | {{ $item->product?->name ?? '—' }} | {{ $item->product?->sku ?? '—' }} | {{ number_format((float) $item->quantity, 0) }} | {{ number_format((float) $item->unit_price, 2) }} | {{ number_format((float) $item->total_price, 2) }} |
| Subtotal | {{ $src }} {{ number_format((float) $invoice->subtotal_source, 2) }} |
| Tax | {{ $src }} {{ number_format((float) $invoice->tax_amount_source, 2) }} |
| Freight | {{ $src }} {{ number_format((float) $invoice->freight_amount_source, 2) }} |
| Insurance | {{ $src }} {{ number_format((float) $invoice->insurance_amount_source, 2) }} |
| Other Charges | {{ $src }} {{ number_format((float) $invoice->other_charges_source, 2) }} |
| Grand Total | {{ $src }} {{ number_format((float) $invoice->total_amount_source, 2) }} |
| Equivalent ({{ $base }}) | {{ $base }} {{ number_format((float) $invoice->total_amount, 2) }} |
| Amount Paid | ({{ $src }} {{ number_format((float) $invoice->amount_paid_source, 2) }}) |
| Balance Due | {{ $src }} {{ number_format($balanceDueSrc, 2) }} |
| Submitted by | {{ $invoice->submittedBy->name }} | {{ $invoice->submitted_at ? \Carbon\Carbon::parse($invoice->submitted_at)->format('d M Y H:i') : '' }} |
| Approved by | {{ $invoice->approvedBy->name }} | {{ $invoice->approved_at ? \Carbon\Carbon::parse($invoice->approved_at)->format('d M Y H:i') : '' }} |
{{ $invoice->notes }}
@endif @endsection