@extends('layouts.admin-simple') @section('title', 'Material Issue Details') @section('breadcrumb')
Direct and indirect goods issue details
| Request Number: | {{ $displayNumber }} |
| Request Date: | {{ $requestDate ? $requestDate->format('d M, Y') : '-' }} |
| Status: | {{ $status->label }} |
| Project: | {{ $project->project_name ?? 'N/A' }} |
| Division: | {{ $division->division_name ?? 'N/A' }} |
| Requested By: | {{ $requester->name ?? 'N/A' }} |
| Item Code | Description | Requested | Issued | Balance | Fulfillment Sources | Unit Price | Total |
|---|---|---|---|---|---|---|---|
| {{ $item->item->item_code ?? 'N/A' }} | {{ $item->item->item_description ?? 'Unknown Item' }} | {{ number_format($item->quantity_requested, 2) }} | {{ number_format($item->quantity_released, 2) }} | {{ number_format($item->quantity_balance, 2) }} | @forelse($directFulfillmentSummary->get($item->item_id, collect()) as $fulfillment) {{ ucfirst(str_replace('_',' ', $fulfillment->fulfillment_type)) }}: {{ number_format($fulfillment->quantity_fulfilled,2) }} @if($fulfillment->reference_id) [#{{ $fulfillment->reference_id }}] @endif @empty - @endforelse | {{ number_format($item->unit_price, 2) }} | {{ number_format($item->total_price, 2) }} |
| Direct Goods Total | {{ number_format($directRequest->items->sum('total_price'), 2) }} | ||||||
| Item Code | Description | Invoice | Requested | Issued | Balance | Fulfillment Sources | Unit Price | Total |
|---|---|---|---|---|---|---|---|---|
| {{ $item->indirectGood->ig_code ?? 'N/A' }} | {{ $item->indirectGood->ig_description ?? 'Unknown Item' }} | {{ $item->invoice_number ?: '-' }} | {{ number_format($item->quantity_requested, 2) }} | {{ number_format($item->quantity_released, 2) }} | {{ number_format($item->quantity_balance, 2) }} |
@forelse($indirectFulfillmentSummary->get($item->id, collect()) as $source)
{{ $source['label'] }}: {{ number_format($source['quantity'],2) }}
@if($source['reference']) [{{ $source['reference'] }}] @endif
@if($source['returned'] > 0) Returned {{ number_format($source['returned'],2) }} @endif
@if($source['consumed'] > 0) Consumed {{ number_format($source['consumed'],2) }} @endif
@empty - @endforelse
|
{{ number_format($item->unit_price, 2) }} | {{ number_format($item->total_price, 2) }} |
| Indirect Goods Total | {{ number_format($indirectRequest->items->sum('total_price'), 2) }} | |||||||