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