Material Issue Report

Generated on {{ $generated_at }}

Total Issues
{{ number_format($stats['total']) }}
Inventory Dispatches
{{ number_format($stats['inventory']) }}
Direct Deliveries
{{ number_format($stats['direct_delivery']) }}
Project Transfers
{{ number_format($stats['project_transfer']) }}
@forelse($fulfillments as $fulfillment) @php $tx = $fulfillment->outgoingTransaction; $divisionName = $tx?->division?->division_name ?? $tx?->project?->projectDivision?->division_name ?? '-'; if (in_array($fulfillment->fulfillment_type, ['inventory', 'inventory_dispatch'])) { $typeLabel = 'Inventory Dispatch'; $typeClass = 'type-success'; } elseif ($fulfillment->fulfillment_type === 'direct_delivery') { $typeLabel = 'Direct Delivery'; $typeClass = 'type-info'; } elseif (in_array($fulfillment->fulfillment_type, ['project_transfer', 'transfer', 'material_transfer'])) { $typeLabel = 'Project Transfer'; $typeClass = 'type-primary'; } else { $typeLabel = ucfirst(str_replace('_', ' ', $fulfillment->fulfillment_type)); $typeClass = 'type-secondary'; } @endphp @empty @endforelse
MR Number Issue Date Project Division Item Code Description Qty Issued Issue Type Requested By
{{ $tx?->material_request_number ?? '-' }} {{ $fulfillment->created_at ? $fulfillment->created_at->format('d M Y') : '-' }} {{ Str::limit($tx?->project?->project_name ?? '-', 25) }} {{ $divisionName }} {{ $fulfillment->item?->item_code ?? '-' }} {{ Str::limit($fulfillment->item?->item_description ?? '-', 30) }} {{ number_format($fulfillment->quantity_fulfilled, 2) }} {{ $typeLabel }} {{ Str::limit($tx?->requester?->name ?? '-', 15) }}
No material issues found