@section('title', 'Data Purchase Order')
Data PO (Purchase Order)
@if(auth()->user()->isAdmin()) @endif
@if(session('status')) @endif
@forelse($purchaseOrders as $po) @empty @endforelse
Nomor PO / ID Tanggal & Customer Produk & Kuantitas Total Amount Status Alur Aksi
{{ $po->po_number }}
ID: #{{ $po->id }}
{{ $po->po_date?->format('d M Y') }}
{{ $po->customer_name }}
{{ $po->product_name }}
{{ number_format($po->quantity) }} {{ $po->unit }}
IDR {{ number_format($po->total_amount, 0, ',', '.') }}
@ Rp {{ number_format($po->unit_price, 0, ',', '.') }}
@php $statusConfig = match($po->calculated_status) { 'OUTSTANDING' => [ 'class' => 'bg-danger text-white', 'label' => 'OUTSTANDING' ], 'ON DELIVERY' => [ 'class' => 'bg-warning text-dark', 'label' => 'ON DELIVERY' ], 'INVOICED' => [ 'class' => 'bg-info text-white', 'label' => 'INVOICED' ], 'COMPLETED' => [ 'class' => 'bg-success text-white', 'label' => 'COMPLETED' ], default => [ 'class' => 'bg-secondary text-white', 'label' => strtoupper($po->status) ] }; @endphp {{ $statusConfig['label'] }}
Lihat @if(auth()->user()->isAdmin()) @endif
Belum ada data Purchase Order.
@if(session('open_modal')) @endif