@extends('layouts.app') @section('title', 'Procurement') @php $f = $filters ?? []; $poBadge = function (string $s): string { return match ($s) { 'Draft' => 's', 'Pending Approval' => 'a', 'Approved' => 'b', 'Ordered' => 'v', 'Partially Delivered' => 'a', 'Delivered' => 'g', 'Billed' => 'b', 'Paid' => 'g', 'Cancelled' => 'r', default => 's', }; }; @endphp @section('content')
Procurement
Purchase orders, suppliers and deliveries
Active POs
{{ $activePos }}
Pending Delivery
{{ $pendingDelivery }}
This Month Value
{{ \App\Support\Format::mwk($monthValue) }}
Suppliers
{{ $suppliersCount }}
Pending Requests
{{ $pendingRequests }}
Outstanding Bills
{{ \App\Support\Format::mwk($outstandingBills) }}
Purchase Orders
@if($orders->isEmpty())No purchase orders found
Create your first purchase order or adjust filters.
| PO # | Supplier | Project | Items | PO Date | Expected | Amount | Status | Action |
|---|---|---|---|---|---|---|---|---|
| {{ $o->po_number }} | {{ $o->supplier?->company_name }} | {{ $o->project?->name ?? '—' }} | {{ $itemLabel ?: '—' }} | {{ $o->po_date?->format('M j, Y') }} | {{ $o->expected_delivery_date?->format('M j, Y') ?? '—' }} | {{ \App\Support\Format::mwk($o->total_amount) }} | {{ $o->status }} | View |
New Purchase Order
Totals are calculated on the server from line items.