@extends('layouts.master') @section('content')

Generate Procurement Request


@csrf
@foreach($items as $index => $item) @php $suggested = max( 0, $item->maximum_level - $item->stock_on_hand ); @endphp @endforeach
Code Item Current Min Reorder Max Suggested Request Qty Unit Cost Price Source Estimated Cost
{{ $item->item_code }} {{ $item->item_name }} {{ $item->stock_on_hand }} {{ $item->minimum_level }} {{ $item->reorder_level }} {{ $item->maximum_level }} {{ $suggested }} @if($item->pricing_source === 'FRAMEWORK_CONTRACT') Framework Contract @else No Price @endif UGX {{ number_format( $suggested * $item->unit_cost, 2 ) }}
@endsection