@extends('procurement::layouts.master') @section('title','Invoices') @section('content') @include('procurement::components.partials.page_header',['title'=>'Invoices','actionRoute'=>route('procurement.invoices.create'),'actionLabel'=>'New Invoice'])
Unpaid Total
${{ number_format($totalUnpaid,2) }}
Overdue Total
${{ number_format($totalOverdue,2) }}
Clear
@include('procurement::components.partials.sortable_th', ['label'=>'Invoice #','field'=>'invoice_number']) @include('procurement::components.partials.sortable_th', ['label'=>'PO #','field'=>'po']) @include('procurement::components.partials.sortable_th', ['label'=>'Supplier','field'=>'supplier']) @include('procurement::components.partials.sortable_th', ['label'=>'Invoice Date','field'=>'invoice_date']) @include('procurement::components.partials.sortable_th', ['label'=>'Due Date','field'=>'due_date']) @include('procurement::components.partials.sortable_th', ['label'=>'Paid Date','field'=>'paid_date']) @include('procurement::components.partials.sortable_th', ['label'=>'Status','field'=>'status']) @include('procurement::components.partials.sortable_th', ['label'=>'Amount','field'=>'amount','class'=>'text-right']) @include('procurement::components.partials.sortable_th', ['label'=>'USD','field'=>'amount_usd','class'=>'text-right']) @include('procurement::components.partials.sortable_th', ['label'=>'Tariff','field'=>'tariff','class'=>'text-right']) @include('procurement::components.partials.sortable_th', ['label'=>'Customs','field'=>'customs','class'=>'text-right']) @forelse($invoices as $inv) @empty @endforelse
{{ $inv->invoice_number }} {{ $inv->purchaseOrder->po_number ?? '—' }} {{ $inv->supplier->name ?? '—' }} {{ $inv->invoice_date->format('M j, Y') }} {{ $inv->due_date?->format('M j, Y') ?? '—' }} {{ $inv->paid_date?->format('M j, Y') ?? '—' }} {{ ucfirst($inv->status) }} ${{ number_format($inv->amount,2) }} {{ $inv->currency }} ${{ number_format($inv->amount_usd,2) }} ${{ number_format($inv->tariff_amount,2) }} ${{ number_format($inv->customs_amount,2) }} Edit
@csrf @method('DELETE')
@csrf @method('PATCH') @if($inv->status=='unpaid')@endif
No invoices yet.
{{ $invoices->withQueryString()->links() }} @endsection