@extends('layouts.admin-simple') @section('title', 'Material Issue Decision Center') {{-- Force cache refresh --}} @section('breadcrumb') @endsection @section('page-title')

Material Issue Decision Center

Process material requests and decide issue method

@endsection @section('content')
filter_list Filters
@if($pendingRequests->count() > 0)
@foreach($pendingRequests as $request) @endforeach
Request # Goods Type Request Date Project Requested By Items Count Priority Dispatch Status Actions
{{ $request->display_number }} @foreach(($request->goods_types ?? collect([(object) ['label' => $request->goods_type_label, 'class' => $request->goods_type_class]])) as $goodsType) {{ $goodsType->label }} @endforeach {{ $request->display_date ? $request->display_date->format('d-M-Y') : '-' }}
{{ $request->project->project_name ?? 'N/A' }} @if($request->division)
{{ $request->division->division_name }} @endif
{{ $request->requester->name ?? 'N/A' }} {{ $request->items_count }} items @php $daysSince = $request->display_date ? round($request->display_date->diffInDays(now())) : 0; if ($daysSince > 7) { $priority = 'High'; $priorityClass = 'danger'; } elseif ($daysSince > 3) { $priority = 'Medium'; $priorityClass = 'warning'; } else { $priority = 'Normal'; $priorityClass = 'success'; } @endphp {{ $priority }}
{{ $daysSince }} day{{ $daysSince != 1 ? 's' : '' }}
{{ $request->dispatch_icon }} {{ $request->dispatch_label }}
@php $sources = $request->source_rows ?? collect([$request]); $directSource = $sources->firstWhere('source_type', 'direct'); $viewSource = $directSource ?: $sources->first(); $viewUrl = $viewSource ? route( 'warehouse.inventory.material-issued.show', array_filter([ 'id' => $viewSource->id, 'source' => $viewSource->source_type === 'indirect' ? 'indirect' : null, ]) ) : null; $printUrl = $viewSource ? route( 'warehouse.inventory.material-issued.combined-print', array_filter([ 'id' => $viewSource->id, 'source' => $viewSource->source_type === 'indirect' ? 'indirect' : null, ]) ) : null; @endphp @if($request->source_type === 'combined' && $directSource && $request->dispatch_status !== 'fully_dispatched') assignment Issue Request @endif @foreach($sources as $source) @if($source->dispatch_status !== 'fully_dispatched' && $source->source_type === 'direct') @if($request->source_type !== 'combined') assignment Process Direct @endif @endif @if($source->dispatch_status !== 'fully_dispatched' && $source->source_type === 'indirect') @if($request->source_type !== 'combined')
@csrf
@endif @endif @endforeach @if($viewUrl) visibility View @endif @if($printUrl) print @endif
@if($pendingRequests->hasPages())
{{ $pendingRequests->links('pagination::bootstrap-4') }}
@endif @else
assignment_turned_in @if(request('view_mode') === 'completed')
No Completed Issues

No completed material issues found

@else
No Pending Requests

All material requests have been processed

@endif
@endif
info Material Issue Process
inventory Inventory Dispatch
  • Issue materials from warehouse stock
  • Direct inventory deduction
  • Immediate project allocation
local_shipping Direct Delivery
  • Order directly from supplier
  • Direct site delivery
  • Purchase order management
swap_horiz Project Transfer
  • Transfer from another project
  • Inter-project material sharing
  • Requires source project approval
@endsection @push('styles') @endpush @push('scripts') @endpush