@extends('layouts.supervisor') @section('title', 'Detail Pesanan Pembelian - Supervisor') @section('content')
Tinjau detail pesanan pembelian #{{ $purchase->id }}
{{ $purchase->purchase_code ?? 'PO-' . $purchase->id }}
{{ $purchase->supplier_name ?? 'Tidak Ada' }}
{{ $purchase->purchase_date ? \Carbon\Carbon::parse($purchase->purchase_date)->format('d/m/Y') : $purchase->created_at->format('d/m/Y') }}
Rp {{ number_format($purchase->total_amount, 0, ',', '.') }}
{{ $purchase->purchaseItems->count() }} item
{{ $purchase->supervisor->name ?? '-' }}
@if($purchase->approved_at){{ \Carbon\Carbon::parse($purchase->approved_at)->format('d/m/Y H:i') }}
@endif{{ $purchase->supervisor_feedback }}
| No | Item | Unit | Jumlah | Harga Satuan | Total |
|---|---|---|---|---|---|
| {{ $loop->iteration }} |
{{ $item->item_name }} {{ $item->item_type === 'material' ? 'Material' : 'Suku Cadang' }} @if($itemData)@if($item->item_type === 'material') {{ $itemData->material_code ?? '-' }} | {{ $itemData->category ?? '-' }} @else {{ $itemData->part_code ?? '-' }} | {{ $itemData->brand ?? '-' }} @endif @endif |
{{ $item->unit ?? '-' }} | {{ number_format($item->quantity, 0, ',', '.') }} | Rp {{ number_format($item->unit_price, 0, ',', '.') }} | Rp {{ number_format($item->total_price, 0, ',', '.') }} |
| Tidak ada item | |||||
| Total Pembelian: | Rp {{ number_format($purchase->total_amount, 0, ',', '.') }} | ||||
{{ $purchase->notes }}