@extends('layouts.app')
@section('title', $purchaseOrder->po_number)
@section('content')
Supplier
@if($purchaseOrder->supplier) {{ $purchaseOrder->supplier->name }} @else — @endif
Order Date
{{ optional($purchaseOrder->order_date)->format('Y-m-d') }}
Expected Delivery
{{ optional($purchaseOrder->expected_delivery_date)->format('Y-m-d') ?? '—' }}
Currency
{{ $purchaseOrder->currency }}
Created By
{{ $purchaseOrder->creator->name ?? '—' }}
@if($purchaseOrder->notes)Notes
{{ $purchaseOrder->notes }}
@endif| Item | Qty | Unit Price | Tax % | Received | Line Total |
|---|---|---|---|---|---|
| {{ $line->item->name_en ?? $line->item_id }} | {{ $line->quantity }} | {{ number_format($line->unit_price, 4) }} | {{ $line->tax_rate }}% | {{ $line->received_quantity }} | {{ number_format($line->line_total, 2) }} |
Recommended Supplier
{{ $purchaseOrder->recommendedSupplier->name ?? ($purchaseOrder->pricing_analysis_json['recommended_supplier_name'] ?? '—') }}
Selected Supplier
{{ $purchaseOrder->supplier->name ?? '—' }}
Price Difference / Unit
{{ $purchaseOrder->currency }} {{ number_format((float) ($purchaseOrder->price_difference ?? 0), 2) }}
| Supplier | Unit Price | Line Total |
|---|---|---|
| {{ $row['supplier_name'] ?? '—' }} | {{ $purchaseOrder->currency }} {{ number_format((float) ($row['unit_price'] ?? 0), 2) }} | {{ $purchaseOrder->currency }} {{ number_format((float) ($row['line_total'] ?? 0), 2) }} |
Estimated Additional Cost / Savings Lost
{{ $purchaseOrder->currency }} {{ number_format((float) ($purchaseOrder->estimated_savings_lost ?? 0), 2) }}
@if($purchaseOrder->supplier_selection_reason)User Reason
{{ $purchaseOrder->supplier_selection_reason }}
@endifRecommendation
{{ $purchaseOrder->ai_approval_recommendation ? strtoupper($purchaseOrder->ai_approval_recommendation) : '—' }}
Explanation
{{ $purchaseOrder->ai_approval_reason ?? '—' }}