{{$company->company_name}}

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

PIPE-LINE EXPENSES 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' : ''}}
{{--*/ $fuel_rate_regulation = \App\Model\FuelRateRegulation::where('start_date','<=',$requisition->date) ->where('end_date','>=',\Carbon\Carbon::parse($requisition->date)->toDateString())->first() /*--}}
Please Arrange to issue diesel to the following trucks as per mentioned below
@if($last_requisition_approval) {{--*/ $j =1 /*--}} @foreach($last_requisition_approval->requisitionApprovalItems as $index=>$requisition_approval_item) @if($requisition_approval_item->requisitionApprovalItemItem) @endif {{--*/ $j++ /*--}} @endforeach @else {{--*/ $total_requested = 0 /*--}} {{--*/ $j=1 /*--}} @foreach($requisition->requisitionItems as $index=>$requisition_item) @if($requisition_item->requisitionItemItem) @endif @endforeach @endif
No. Truck Driver Driver License Client Destination Diesel (Litre) Currency Rate/Litre Amount
{{++$index}} {{$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 ? $requisition_approval_item->requisitionItem->loadingOrderItemRequisitionItem->loadingOrderItem->clientLoadingOrder->client->name : 'PIPE LINE'}} {{$requisition_approval_item->requisitionItem->loadingOrderItemRequisitionItem->loadingOrderItem->loadingOrderDestination ? $requisition_approval_item->requisitionItem->loadingOrderItemRequisitionItem->loadingOrderItem->loadingOrderDestination->city->name : 'PIPE LINE'}} {{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->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 ? $requisition_item->loadingOrderItemRequisitionItem->loadingOrderItem->clientLoadingOrder->client->name : 'PIPE LINE' }} {{$requisition_item->loadingOrderItemRequisitionItem->loadingOrderItem->loadingOrderDestination ? $requisition_item->loadingOrderItemRequisitionItem->loadingOrderItem->loadingOrderDestination->city->name : 'PIPE LINE' }} {{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)}}
{{----}} {{----}} {{----}} {{----}} {{----}} {{----}} {{--
{{$fuel_rate_regulation->name}} PRICE (Tsh): {{$fuel_rate_regulation->rate}}
--}}