{{--*/ $t1 = \Carbon\Carbon::now() /*--}} {{--*/ $t2 = \Carbon\Carbon::parse($requisition->required_date) /*--}} {{--*/ $days = $t1->diffInDays($t2); /*--}}
{{----}} @if((Auth::user()->getApprovalChainLevelId($requisition->approval_chain_module_id) == $requisition->next_stage) && (Auth::user()->canChangeApprovalItemSource($requisition->approval_chain_module_id))) @endif
Requested On: {{\Carbon\Carbon::parse($requisition->date)->toFormattedDateString()}} Required On: {{\Carbon\Carbon::now()->subDays($days)->diffForHumans()}}
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}}
{{++$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($currency == '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
TOTAL IN {{$currency}} {{number_format($total)}}
{{--
--}}