{{$company->company_name}}

{{$company->company_address}},
{{$company->city}}, Tanzania
Mob: {{$company->compny_phone}}
Email: {{$company->company_email}}

FUEL REQUISITION

{{-- --}} {{-- --}} {{-- --}} {{-- --}}
REQ#. : {{$requisition->id}}
Created By. : {{$requisition->initiator}}
Date : {{\Carbon\Carbon::parse($requisition->date)->toFormattedDateString()}}
Supplier : @foreach($vendors as $vendor) {{$requisition->requisitionItemSource[0]->type == 'VENDOR' && $requisition->requisitionItemSource[0]->payee == $vendor->id ? $vendor->name : ''}} @endforeach @foreach($tanks as $tank) {{$requisition->requisitionItemSource[0]->type == 'STORE' && $requisition->requisitionItemSource[0]->payee == $tank->id ? $tank->location : ''}} @endforeach {{$requisition->requisitionItemSource[0]->type == 'CASH' ? 'CASH' : ''}}
Cash/Credit :--}} {{-- --}} {{-- {{$requisition->requisitionItemSource[0]->type == 'VENDOR' ? 'CREDIT' : 'CASH'}}--}} {{-- --}} {{--
{{--*/ $fuel_rate_regulation = \App\Model\FuelRateRegulation::where('start_date','<=',$requisition->date) ->where('end_date','>=',\Carbon\Carbon::parse($requisition->date)->toDateString())->first() /*--}}
{{--*/$i = 0 /*--}}
Please Arrange to issue diesel to the following trucks as per mentioned below
Loading Order #{{(int)$loading_order_id}}
{{--*/$i++ /*--}} @if($last_requisition_approval) @foreach($last_requisition_approval->requisitionApprovalItems as $index=>$requisition_approval_item) @if($requisition_approval_item->requisitionApprovalItemItem) @if($requisition_approval_item->requisitionItem->loadingOrderItemRequisitionItem->loadingOrderItem->loadingOrder->id == (int)$loading_order_id) @endif @endif @endforeach @else {{--*/ $total_requested = 0 /*--}} @foreach($requisition->requisitionItems as $index=>$requisition_item) @if($requisition_item->requisitionItemItem) @if($requisition_item->loadingOrderItemRequisitionItem->loadingOrderItem->loadingOrder->id == (int)$loading_order_id) @endif @endif @endforeach @endif
No. Allocation # Truck Driver Driver License Client Destination Diesel (Litre) Currency Rate/Litre Amount
{{++$index}} {{$requisition_approval_item->requisitionItem->loadingOrderItemRequisitionItem->loading_order_item_id}} {{$requisition_approval_item->requisitionItem->loadingOrderItemRequisitionItem->loadingOrderItem->loadingOrderVehicle->vehicle->registration_number}} {{$requisition_approval_item->requisitionItem->loadingOrderItemRequisitionItem->loadingOrderItem->loadingOrderVehicle->driver->driver}} {{$requisition_approval_item->requisitionItem->loadingOrderItemRequisitionItem->loadingOrderItem->loadingOrderVehicle->driver->licence_number}} {{$requisition_approval_item->requisitionItem->loadingOrderItemRequisitionItem->loadingOrderItem->clientLoadingOrder->client->code}} {{$requisition_approval_item->requisitionItem->loadingOrderItemRequisitionItem->loadingOrderItem->loadingOrderDestination->city->name}} {{number_format($requisition_approval_item->requisitionApprovalItemItem->quantity)}} {{$requisition_approval_item->currency}} {{number_format($requisition_approval_item->requisitionApprovalItemItem->rate, 2)}} {{number_format($requisition_approval_item->requisitionApprovalItemItem->quantity*$requisition_approval_item->requisitionApprovalItemItem->rate, 2)}}
{{++$index}} {{$requisition_item->loadingOrderItemRequisitionItem->loading_order_item}} {{$requisition_item->loadingOrderItemRequisitionItem->loadingOrderItem->loadingOrderVehicle->vehicle->registration_number}} {{$requisition_item->loadingOrderItemRequisitionItem->loadingOrderItem->loadingOrderVehicle->driver->full_name}} {{$requisition_item->loadingOrderItemRequisitionItem->loadingOrderItem->loadingOrderVehicle->driver->licence_number}} {{$requisition_item->loadingOrderItemRequisitionItem->loadingOrderItem->clientLoadingOrder->client->code}} {{$requisition_item->loadingOrderItemRequisitionItem->loadingOrderItem->loadingOrderDestination->city->name}} {{number_format($requisition_item->requisitionItemItem->quantity)}} {{$requisition_item->currency}} {{number_format($requisition_item->requisitionItemItem->rate, 2)}} {{number_format($requisition_item->requisitionItemItem->quantity*$requisition_item->requisitionItemItem->rate, 2)}}
TOTAL (TSH) {{number_format($total_quantity)}} {{number_format($total_amount, 2)}}