{{$company->company_name}}

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

DAILY BUDGET REQUISITION

REQ#. : {{$requisition->id}}
Created By. : {{$requisition->initiator}}
Date : {{\Carbon\Carbon::parse($requisition->date)->toFormattedDateString()}}
REQUESTED ITEMS
{{--
BANK NAME :
--}} {{--*/ $current_agent['payable_amount'] = 0 /*--}} {{--
OPEN BALANCE ({!! $current_agent['currency'] !!}): {!! number_format($current_agent['payable_amount'],2) !!}
--}} @if($requisition->type =="MEAL_ALLOWANCE_REQUISITION" || $requisition->type =="PARKING_FEE_REQUISITION" ) @endif @if($requisition->type =="MEAL_ALLOWANCE_REQUISITION") @endif {{--*/ $span = ($requisition->type =="MEAL_ALLOWANCE_REQUISITION" || $requisition->type =="PARKING_FEE_REQUISITION")?1:0 /*--}} @foreach($requested_accounts as $requested_account) @endforeach @if($requisition->type =="MEAL_ALLOWANCE_REQUISITION") @endif {{--*/ $total_amount = 0 /*--}} {{--*/ $total_amount_usd = 0 /*--}} {{--*/ $total_amount_tsh = 0 /*--}} {{--*/ $exchange_rate = 2250 /*--}} {{--*/ $currency = 'TSH' /*--}} @foreach($cash_requisition_item_descriptions as $index=>$route_assignment) {{--*/ $loading_order_item = $route_assignment->loadingOrderItem /*--}} {{--*/ $vehicle_id = $loading_order_item->vehicle_id /*--}} @if($requisition->type =="MEAL_ALLOWANCE_REQUISITION" || $requisition->type =="PARKING_FEE_REQUISITION" ) @endif {{--*/ $exchange_rate = 2250 /*--}} {{--*/ $currency = 'TSH' /*--}} {{--*/ $sub_total = 0 /*--}} {{--*/ $sub_total_usd = 0 /*--}} {{--*/ $sub_total_tsh = 0 /*--}} @foreach($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), $exchange_rate, $currency) /*--}} {{--*/ $sub_total += $amount /*--}} @if($route_assignment->getCurrency($requested_account->account->id) == 'USD') {{--*/ $sub_total_usd += $route_assignment->getAmount($requested_account->account->id) /*--}} @else {{--*/ $sub_total_tsh += $route_assignment->getAmount($requested_account->account->id) /*--}} @endif {{--*/ $sub_total_[$requested_account->account->id][] = $route_assignment->getAmount($requested_account->account->id) /*--}} @endforeach {{--*/ $total_amount += $sub_total /*--}} {{--*/ $total_amount_usd += $sub_total_usd /*--}} {{--*/ $total_amount_tsh += $sub_total_tsh /*--}} @if($requisition->type =="MEAL_ALLOWANCE_REQUISITION") @endif @endforeach @foreach($requested_accounts as $requested_account) @endforeach {{--*/ $total_amount_from_this_requisition = \App\Logistics\Facades\Logistics::currencyConvert($total_amount_usd,'USD',$exchange_rate,$currency)+ \App\Logistics\Facades\Logistics::currencyConvert($total_amount_tsh,'TSH',$exchange_rate,$currency)/*--}}
S/N Truck Driver Allocation DestinationCargo TypeDescription TOTALDrivers Signature
{{$requested_account->name}} USD TSH
{{++$index}} {{$loading_order_item->loadingOrderVehicle->vehicle->registration_number}} {{$loading_order_item->loadingOrderVehicle->driver->driver}} {{$loading_order_item->LoadingOrder->client->code}} {{$loading_order_item->loadingOrderDestination->city->name}}{{$loading_order_item->cargo_type}} @if($route_assignment->getAmount($requested_account->account->id)) {{\App\Logistics\Facades\Logistics::getCurrencySign($route_assignment->getCurrency($requested_account->account->id))}} {{number_format($route_assignment->getAmount($requested_account->account->id))}} @endif {{number_format($sub_total_usd)}} {{number_format($sub_total_tsh)}}
{{number_format(array_sum($sub_total_[$requested_account->account->id])) }}{{number_format($total_amount_usd)}} {{number_format(round($total_amount_tsh/100)*100)}}
TOTAL AMOUNT IN {{$currency}} {{number_format($total_amount_from_this_requisition)}}
OVERALL AMOUNT IN {{$currency}} {{number_format($total_amount_from_this_requisition)}}
{{----}} {{----}} {{----}} {{----}} {{----}} {{----}} {{----}} {{----}} {{----}} {{----}} {{--
______________________
QHSEE/Operation
______________________
Snr. Acc
______________________
FC
______________________
GM
______________________
Managing Director
--}}