@php $util = app(\Modules\Maintenance\Utils\MaintenanceUtil::class); @endphp
@lang('maintenance::lang.mat_destination_location'): {{ $material_list->destinationLocation?->name ?? '—' }}
@endcan @can('maintenance.materials.manage')| @lang('maintenance::lang.spare_part') | @lang('maintenance::lang.mat_qty_required') | @lang('maintenance::lang.mat_local_stock') | @lang('maintenance::lang.mat_other_warehouses') | @lang('maintenance::lang.mat_shortfall') | @lang('maintenance::lang.status') | @lang('maintenance::lang.actions') |
|---|---|---|---|---|---|---|
|
{{ $line->displayName() }}
@if($line->part_number) {{ $line->part_number }}@endif |
{{ $a['quantity_required'] ?? $line->quantity_required }} | {{ $a['local_qty'] ?? '—' }} |
@if(!empty($a['other_locations']))
@foreach($a['other_locations'] as $loc)
{{ $loc['entity_name'] ? $loc['entity_name'].' / ' : '' }}{{ $loc['location_name'] }}:
{{ $loc['qty'] }}
@endforeach
@else
—
@endif
|
@if(($a['shortfall'] ?? 0) > 0) {{ $a['shortfall'] }} @else 0 @endif | {{ $status_labels[$line->status] ?? $line->status }} |
@can('maintenance.materials.procure')
@if(!empty($a['other_locations']) && ($a['remaining'] ?? 0) > 0)
@foreach($line->procurements as $proc) {{ $proc->procurement_type }}: {{ $proc->transaction?->ref_no ?? '#' }} @endforeach @endif |
| @lang('maintenance::lang.no_records') | ||||||
@lang('maintenance::lang.mat_no_purchase_needed')
@else @can('maintenance.materials.procure') {!! Form::open(['url' => action([\Modules\Maintenance\Http\Controllers\MaterialListController::class, 'createPurchaseOrders'], [$source_type, $source_id]), 'method' => 'post', 'id' => 'mm_purchase_form']) !!}| @lang('maintenance::lang.spare_part') | @lang('maintenance::lang.mat_shortfall') | @lang('maintenance::lang.mat_suggested_supplier') | @lang('maintenance::lang.mat_purchase_history') | |
|---|---|---|---|---|
| {{ $item['display_name'] }} | {{ $item['shortfall_qty'] }} |
@if(!empty($item['supplier_suggestions']))
|
@lang('maintenance::lang.mat_procure_permission_required')
@endcan @endif