@if ($idx === 0)
| {{ $cons['consumption_no'] }} |
{{ !empty($cons['consumption_date']) ? substr((string)$cons['consumption_date'], 0, 10) : '-' }} |
{{ $cons['project_name'] }} |
{{ $cons['warehouse_name'] }} |
@php $st = $cons['status'] ?? 'draft'; @endphp
{{ $st }}
|
@endif
{{ $item['item_code'] ?: '—' }} |
{{ $item['item_name'] }} |
{{ $item['item_type'] ?: '—' }} |
{{ $item['unit_name'] }} |
{{ $item['quantity'] }} |
{{ number_format((float)($item['unit_cost'] ?? 0), 2) }} |
{{ number_format((float)($item['total_cost'] ?? 0), 2) }} |
{{ $item['remarks'] ?: '—' }} |
@endforeach
@endforeach