@extends('layouts.main_without_top_button') @section('title') Trip Profile:{{$route_assignment->id}},{{$route_assignment->route}},{{$route_assignment->vehicle}} - {{$route_assignment->trailer}} @stop @section('navigation') @stop @section('contentinner')

ROUTE SUMMARY

Route Information

Route No.: {{$route_assignment->id}}
Truck No.: {{$route_assignment->vehicle}}
Driver Name.: {{$route_assignment->driverNames}}
Departure Date: {{$route_assignment->departure_date }}
Trailer No.: {{$route_assignment->trailer}}
Route: {{$route_assignment->route}}
@if(!empty($locations))

Route Movements

@foreach($locations as $location) @endforeach
Date Location Remarks
{{$location['date']}} {{$location['location']}} {{$location['remarks']}}


@endif

TRIP INCOME

Client(s) Information

{{--*/ $total_amount = 0 /*--}} @foreach($route_assignment->destinations as $invoice) @if($invoice->cargo_type =='FUEL TANK') @endif {{--*/ $total_amount += $invoice->amount_value /*--}} @endforeach
Client From Destination Status Quantity Rate Amount
{{$invoice->client->name}} {{$invoice->city_from->name}} {{$invoice->city_to->name}} @if($invoice->invoiced == 'no') Pending... @else Invoiced with INV NO {{$invoice->id}} @endif {{ $invoice->quantity }} {{ $invoice->rate_per_unit }} {{ number_format($invoice->amount_value,2) }}
{{--*/ $fuel_cargo_detail=$invoice->routeAssignmentFuelCargoDetail /*--}} {{--*/ $lordport_at_twenty =$fuel_cargo_detail->loadport_obs_volume*$fuel_cargo_detail->volume_correction_factor /*--}} {{----}} {{--*/ $disport_at_twenty =$fuel_cargo_detail->disport_obs_volume*$fuel_cargo_detail->disport_volume_correction_factor /*--}} {{--*/ $transit_difference =round($disport_at_twenty-$lordport_at_twenty) /*--}} {{--*/ $gain_or_loss =$transit_difference+$fuel_cargo_detail->allowable_transit_loss /*--}}
ALLOWABLE LOSS {{$fuel_cargo_detail->allowable_transit_loss}} Transit Loss Rate {{$fuel_cargo_detail->transit_loss_rate}}
Load Date Density@20 Temp Weight OBS V.C.F VOL@20
{{$invoice->loading_date}} {{$fuel_cargo_detail->cargo_density}} {{$fuel_cargo_detail->cargo_temperature}} {{$fuel_cargo_detail->cargo_weight}} {{$fuel_cargo_detail->loadport_obs_volume}} {{$fuel_cargo_detail->volume_correction_factor}}{{round($lordport_at_twenty)}}
Disport DetailOffload Date Density@20 Temp Weight OBS V.C.F VOL@20
- - - {{$fuel_cargo_detail->disport_obs_volume}} {{$fuel_cargo_detail->disport_volume_correction_factor}}{{round($disport_at_twenty)}}
@if($gain_or_loss > 0) TRANSIT GAIN @else TRANSIT LOSS @endif {{$gain_or_loss}}
{{number_format($total_amount,2)}}

TRIP EXPENSES

{{--*/ $trip_expense = 0 /*--}}

General Expenses

@foreach($expenses as $expense) {{--*/ $trip_expense +=$expense['value'] /*--}} @endforeach
Epenses Name Currency Amount
{{$expense['expense_name']}} USD {{number_format($expense['value'],2)}}
@if(sizeof($route_assignment->goodIssuedNotes)>0)

Item/Material Expenses

@foreach($route_assignment->goodIssuedNotes as $good_issued_note) @endforeach
GIN Date Received By
{{$good_issued_note->id}} {{\Carbon\Carbon::parse($good_issued_note->issued_date)->toFormattedDateString()}} {{$good_issued_note->employee_received}}
@foreach($good_issued_note->goodsIssuedNoteItems as $index=>$goods_issued_note_item) {{--*/ $trip_expense +=$goods_issued_note_item->quantity*$goods_issued_note_item->price_per_item /*--}} @endforeach
S/N Item Quantity Price Amount
{{++$index}} {{$goods_issued_note_item->item->name}} {{$goods_issued_note_item->quantity}} {{$goods_issued_note_item->price_per_item}} {{number_format($goods_issued_note_item->quantity*$goods_issued_note_item->price_per_item,2)}}
@endif @if(sizeof($route_assignment->paymentVouchers)>0)

Payment Vouchers

@foreach($route_assignment->paymentVouchers as $payment_voucher) @endforeach
PVNO Date Paid By From Received By Remarks Amount
{{$payment_voucher->id}} {{\Carbon\Carbon::parse($payment_voucher->date_created)->toFormattedDateString()}} {{$payment_voucher->paid_by}} {{$payment_voucher->dr_account}} {{$payment_voucher->employee_name}} {{$payment_voucher->remarks}} {{number_format($payment_voucher->amount,2)}}
@foreach($payment_voucher->paymentVoucherItems as $index=>$payment_voucher_item) {{--*/ $trip_expense +=$payment_voucher_item->amount /*--}} @endforeach
S/N Expense Currency Amount
{{++$index}} {{$payment_voucher_item->dr}} {{$payment_voucher_item->currency}} {{number_format($payment_voucher_item->amount,2)}}
@endif
{{number_format($trip_expense,2)}}
@stop