{{--*/ $t1 = \Carbon\Carbon::now() /*--}} {{--*/ $t2 = \Carbon\Carbon::parse($requisition->required_date) /*--}} {{--*/ $days = $t1->diffInDays($t2); /*--}} @foreach($agents as $agent)
Requested On: {{\Carbon\Carbon::parse($requisition->date)->toFormattedDateString()}} Required On: {{\Carbon\Carbon::now()->subDays($days)->diffForHumans()}}
Agent : {!! $agent->agent_account_name !!} Currency : {{$agent->currency}} ({{$agent->exchange_rate}})
Open Balance: {{number_format($agent->open_balance)}} Total Amount: {{number_format($agent->open_balance+$agent->payable_amount)}}
Cr Account: Reference Number:
Cr Amount: location_id)) value="{{$last_requisition_approval->requisitionApprovalDrAccount->amount}}" @endif autocomplete="off"/> New Balance
@foreach($agent->requested_accounts as $requested_account) @endforeach {{--*/ $total_truck_payable = 0 /*--}} {{--*/ $truck_payable = 0 /*--}} {{--*/ $total_tsh = 0 /*--}} {{--*/ $total_usd = 0 /*--}} {{--*/ $total = 0 /*--}} @foreach($agent->cash_requisition_item_descriptions as $index=>$route_assignment) {{--*/ $loading_order_item = $route_assignment->loadingOrderItem /*--}} {{--*/ $vehicle_id = $loading_order_item->vehicle_id /*--}} @foreach($agent->requested_accounts as $requested_account) @endforeach @endforeach
S/N Truck Driver Allocation Destination Description
{{$requested_account->name}}
{{++$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}}
{{\App\Logistics\Facades\Logistics::getCurrencySign($route_assignment->getCurrency($requested_account->account->id))}}
@if($loading_order_item->getRouteExpenseCurrency($requested_account->account->id) == 'USD') {{--*/ $total_usd +=$route_assignment->getAmount($requested_account->account->id) /*--}} {{--*/ $total += \App\Logistics\Facades\Logistics::currencyConvert($route_assignment->getAmount($requested_account->account->id),'USD', $agent->exchange_rate, $agent->currency) /*--}} @else {{--*/ $total_tsh +=$route_assignment->getAmount($requested_account->account->id) /*--}} {{--*/ $total += \App\Logistics\Facades\Logistics::currencyConvert($route_assignment->getAmount($requested_account->account->id),'TSH', $agent->exchange_rate, $agent->currency) /*--}} @endif
TOTAL IN {{$agent->currency}} {{number_format($total)}}

@endforeach
@if((Auth::user()->getApprovalChainLevelId($requisition->approval_chain_module_id) == $requisition->next_stage) & (Auth::user()->getApprovalChainLevelId($requisition->approval_chain_module_id) != -1)) is_printed == 1)style="background: green" @endif class="btn" target="_blank" href="{{route('requisitions.documents.prints', [$requisition->id])}}">  PRINT REQUEST @else is_printed == 1)style="background: green" @endif class="btn" target="_blank" href="{{route('requisitions.documents.prints', [$requisition->id])}}">  PRINT REQUEST @endif @if(auth()->user()->can('REFRESH REQUISITIONS') && $requisition->is_printed == 1)  REMOVE COPPY @endif