{{ __('material_consumption_report.title') }}

@if (session('status'))
{{ session('status') }}
@endif
@if (count($consumptions) === 0)
{{ __('common.no_records') }}
@else @foreach ($consumptions as $cons) @foreach ($cons['items'] ?? [] as $idx => $item) @if ($idx === 0) @endif @endforeach @endforeach
{{ __('material_consumption_report.cons_no') }} {{ __('common.date') }} {{ __('common.project') }} {{ __('common.warehouse') }} {{ __('common.status') }} {{ __('material_consumption_report.item_code') }} {{ __('common.item') }} {{ __('common.type') }} {{ __('common.unit') }} {{ __('material_consumption_report.qty') }} {{ __('material_consumption_report.unit_cost') }} {{ __('common.total') }} {{ __('common.remarks') }}
{{ $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 }} {{ $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'] ?: '—' }}
@endif