@extends('beautymail::templates.widgets') @section('content') @include('beautymail::templates.widgets.articleStart')

TRUCK MILEAGE REQUISITION

{{$receiver_details['name']}}

{{$receiver_details['remarks']}}

@include('beautymail::templates.widgets.articleEnd') @include('beautymail::templates.widgets.newfeatureStart') {{--*/ $requisition = $receiver_details['requisition'] /*--}}

{{----}} {{----}}
Requisition NO. : {{$requisition->id}}
Created By. : {{$requisition->initiator}}
Cost Centre : {{$requisition->request_for}}
Date : {{\Carbon\Carbon::parse($requisition->date)->toFormattedDateString()}} Status :--}} {{----}} {{--{{$requisition->status}}--}} {{----}} {{--
REQUESTED ITEMS
@foreach($receiver_details['requested_accounts'] as $requested_account) @endforeach {{--*/ $total_amount = 0 /*--}} @foreach($receiver_details['cash_requisition_item_descriptions'] as $index=>$route_assignment) {{--*/ $loading_order_item = $route_assignment->loadingOrderItem /*--}} {{--*/ $vehicle_id = $loading_order_item->vehicle_id /*--}} {{--*/ $sub_total = 0 /*--}} @foreach($receiver_details['requested_accounts'] as $requested_account) {{--*/ $amount = \App\Logistics\Facades\Logistics::currencyConvert($route_assignment->getAmount($requested_account->account->id), $route_assignment->getCurrency($requested_account->account->id), 2250, 'TSH') /*--}} {{--*/ $sub_total += $amount /*--}} @endforeach {{--*/ $total_amount += $sub_total /*--}} @endforeach
S/N Truck Driver Allocation Destination Description
{{$requested_account->name}}TOTAL
{{++$index}} {{$loading_order_item->loadingOrderVehicle->vehicle->registration_number}} {{$loading_order_item->loadingOrderVehicle->driver->full_name}} {{$loading_order_item->LoadingOrder->client->code}} {{$loading_order_item->loadingOrderDestination->city->name}}{{number_format($amount)}}{{number_format($sub_total)}}
TOTAL IN TSH {{number_format(round($total_amount/100)*100)}}

Review and Approve

@include('beautymail::templates.widgets.newfeatureEnd') @stop