@extends('layouts.app') @section('title', 'Purchase Orders') @section('content') New PO
@if(($purchaseOrders ?? collect())->isEmpty())
@else
@foreach($purchaseOrders as $po) @endforeach
PO Number Supplier Date Amount Status Actions
{{ $po->po_number }} {{ $po->supplier->name ?? '—' }} {{ optional($po->order_date)->format('Y-m-d') }} {{ number_format($po->total_amount, 2) }} {{ $po->currency }} @if($po->status === 'draft') @endif
@if(method_exists($purchaseOrders, 'links'))
{{ $purchaseOrders->withQueryString()->links() }}
@endif
@endif @endsection