@php $org = auth()->user()->organization ?? \App\Models\System\Organization::find(auth()->user()->organization_id); @endphp @extends('documents.procurement._layout', [ 'documentTitle' => 'Outstanding Purchase Orders', 'reference' => null, 'documentDate' => $reportDate, 'noAutoPrint' => true, ]) @section('header-meta')
|
Total Outstanding {{ $lpos->count() }} |
Partially Received {{ $lpos->where('status','partially_received')->count() }} |
@if($overdueCount > 0)
⚠ Overdue {{ $overdueCount }} |
@endif
No outstanding purchase orders.
@else| LPO Reference | Supplier | Delivery Location | Status | Items | Order Date | Expected Delivery | Total |
|---|---|---|---|---|---|---|---|
| {{ $lpo->lpo_reference }} | {{ $lpo->supplier?->name ?? '—' }} | {{ $lpo->deliveryLocation?->name ?? '—' }} | {{ ucwords(str_replace('_', ' ', $lpo->status)) }} | {{ $lpo->items_count }} | {{ \Carbon\Carbon::parse($lpo->purchase_date)->format('d M Y') }} | {{ $lpo->expected_delivery_date ? $lpo->expected_delivery_date->format('d M Y') : '—' }} @if($isOverdue) ⚠ @endif | {{ $lpo->source_currency_code }} {{ number_format((float)$lpo->total_amount_source, 2) }} |