{{-- resources/views/purchases/grn/show.blade.php --}} @extends('layouts.app') @section('title', 'GRN ' . $grn->grn_number) @section('page_title', $grn->grn_number) @section('page_subtitle', 'Goods Received Note ยท ' . $po->supplier?->name) @section('content')
| Item | Ordered | Received | Condition | Notes |
|---|---|---|---|---|
| {{ $item->purchaseOrderItem?->description }} | {{ $item->purchaseOrderItem?->quantity_ordered }} {{ $item->purchaseOrderItem?->unit }} | {{ $item->quantity_received }} | @php $cc = [ 'good' => ['bg'=>'#d1fae5','color'=>'#065f46'], 'partial' => ['bg'=>'#fef3c7','color'=>'#92400e'], 'damaged' => ['bg'=>'#fee2e2','color'=>'#991b1b'], ][$item->condition] ?? ['bg'=>'#f1f5f9','color'=>'#475569']; @endphp {{ ucfirst($item->condition) }} | {{ $item->notes ?? 'โ' }} |