@extends('layouts.app') @section('title', $supplier->name) @section('content') Edit
@csrf @method('DELETE')
Details

Code

{{ $supplier->code ?? '—' }}

Channel

{{ ucfirst(str_replace('_', ' ', $supplier->channel_type ?? '')) }}

Lead Time

{{ $supplier->lead_time_days !== null ? $supplier->lead_time_days.' days' : '—' }}

Contact

{{ $supplier->contact_person ?? '—' }}

Email / Phone

{{ $supplier->email ?? '—' }} · {{ $supplier->phone ?? '—' }}

Location

{{ collect([$supplier->city, $supplier->country])->filter()->implode(', ') ?: '—' }}

Payment Terms

{{ $supplier->payment_terms ?? '—' }}

@if($supplier->is_regional_reexporter) Regional re-exporter @endif @if($supplier->notes)

Notes

{{ $supplier->notes }}

@endif
@php $poList = $purchaseOrders ?? $supplier->purchaseOrders ?? collect(); $priceList = $priceHistory ?? collect(); $poCount = $performance['po_count'] ?? $poList->count(); $totalSpend = $performance['total_spend'] ?? $poList->sum('total_amount'); @endphp
@if($priceList->isEmpty()) @else @foreach($priceList as $ph) @endforeach
Item Unit Price Currency Effective Date Source
{{ $ph->item->name_en ?? $ph->item_id }} {{ number_format($ph->unit_price, 4) }} {{ $ph->currency }} {{ optional($ph->effective_date)->format('Y-m-d') }} {{ $ph->source_type ?? '—' }}
@endif
@if($poList->isEmpty()) @else @foreach($poList as $po) @endforeach
PO Number Date Amount Status
{{ $po->po_number }} {{ optional($po->order_date)->format('Y-m-d') }} {{ number_format($po->total_amount, 2) }} {{ $po->currency }}
@endif
@endsection