@extends('layouts.main') @section('title', 'Client Enquiry Review') @section('navigation') @stop @section('msghead_menu') @stop @section('contentinner')
@foreach($items as $client_inquiry_item) {{--*/ $route = $client_inquiry_item->getRoute() /*--}} @if($route) {{--*/ $route_cargo_details = $route->routeCargoDetails() /*--}} {{--*/ $route_cargo_detail = $route_cargo_details->whereType($client_inquiry_item->cargo_type)->first() /*--}} @else {{--*/ $route_cargo_detail = [] /*--}} @endif {{--*/ $return_expense_keys = [] /*--}} @if($client_inquiry_item->cargo_type =="LOOSE_CARGO") @endif @if($client_inquiry_item->cargo_type =='TANKERS') @if($client_inquiry_item->cargo_type =='TANKERS') @endif @if($client_inquiry_item->cargo_type =="LOOSE_CARGO" && $route_cargo_detail->is_returning) @endif @endif @if($client_inquiry_item->cargo_type =='TANKERS') @endif @if($route_cargo_detail->is_returning) {{--@foreach($route_cargo_detail->routeReturningCargoDetails as $route_returning_cargo_detail)--}} {{--@endforeach--}} @endif @if($client_inquiry_item->cargo_type =='TANKERS') @endif @if($route_cargo_detail->is_returning) {{--@foreach($route_cargo_detail->routeReturningCargoDetails as $route_returning_cargo_detail)--}} {{----}} {{--@endforeach--}} @endif @if($client_inquiry_item->cargo_type =='TANKERS') @endif @if($route_cargo_detail->is_returning) {{--@foreach($route_cargo_detail->routeReturningCargoDetails as $route_returning_cargo_detail)--}} {{----}} {{--@endforeach--}} @endif @if($client_inquiry_item->cargo_type =='TANKERS') @endif @if($route_cargo_detail->is_returning) {{-- @foreach($route_cargo_detail->routeReturningCargoDetails as $route_returning_cargo_detail)--}} {{--@endforeach--}} @endif @if($client_inquiry_item->cargo_type =='TANKERS') @endif @if($route_cargo_detail->is_returning) {{--@foreach($route_cargo_detail->routeReturningCargoDetails as $route_returning_cargo_detail)--}} {{----}} {{--@endforeach--}} @endif @if($client_inquiry_item->cargo_type =='TANKERS') @else @endif @if($client_inquiry_item->cargo_type =='TANKERS') @endif @if($route_cargo_detail->is_returning) {{--@foreach($route_cargo_detail->routeReturningCargoDetails as $route_returning_cargo_detail)--}} {{--@endforeach--}} @endif @if($client_inquiry_item->cargo_type =='TANKERS') @endif @if($route_cargo_detail->is_returning) {{-- @foreach($route_cargo_detail->routeReturningCargoDetails as $route_returning_cargo_detail)--}} {{--@endforeach--}} @endif @if($client_inquiry_item->cargo_type =='TANKERS') @endif @if($route_cargo_detail->is_returning) {{-- @foreach($route_cargo_detail->routeReturningCargoDetails as $route_returning_cargo_detail)--}} {{--@endforeach--}} @endif @if($client_inquiry_item->cargo_type =='TANKERS') @endif @if($route_cargo_detail->is_returning) {{-- @foreach($route_cargo_detail->routeReturningCargoDetails as $route_returning_cargo_detail)--}} {{--@endforeach--}} @endif @if($client_inquiry_item->cargo_type =='TANKERS') @endif @if($route_cargo_detail->is_returning) {{-- @foreach($route_cargo_detail->routeReturningCargoDetails as $route_returning_cargo_detail)--}} {{--@endforeach--}} @endif @if($route_cargo_detail->is_returning) @endif {{--------------------------------------------------------------------------------------------------------------------------}}
is_returning)?2:1 !!}" style="text-align: center">{{$client_inquiry->client->name}} ; {{$client_inquiry_item->clientInquiryItemOffloadingPoint->city->name}} - {!! $client_inquiry_item->product_name !!} ({{$client_inquiry_item->cargo_type}})
SemiPullyReturn Cargo
Exchange Rate
Loading Point {{$client_inquiry_item->clientInquiryItemLoadingPoint->city->name}}{{$client_inquiry_item->clientInquiryItemLoadingPoint->city->name}}{{$route_returning_cargo_detail->loadingCity->name}}
Country {{$client_inquiry_item->clientInquiryItemOffloadingPoint->city->country->name}}{{$client_inquiry_item->clientInquiryItemOffloadingPoint->city->country->name}}{{$route_returning_cargo_detail->loadingCity->country->name}}{{$route_cargo_detail->routeReturningCargoDetails->first()->loadingCity->country->name}}
Destination {{$client_inquiry_item->clientInquiryItemOffloadingPoint->city->name}}{{$client_inquiry_item->clientInquiryItemOffloadingPoint->city->name}}DAR ES SALAAM
KM {{($route_cargo_detail->is_returning)?number_format($route->go_distance): number_format($route->go_distance*2)}}{{number_format($route->go_distance*2)}}--}} {{--{{number_format($route_returning_cargo_detail->getKm())}}--}} {{-- {{number_format($route_cargo_detail->routeReturningCargoDetails->first()->getKm())}}
Rate/M3Rate/MT {{--{!! $client_inquiry_item->rate !!}--}} {{ ($client_inquiry_item->rate_for == 'TRIP') ? "" : number_format($client_inquiry_item->rate * $client_inquiry_item->tonnage) }} {{--{!! $client_inquiry_item->rate !!}--}} {{ ($client_inquiry_item->rate_for =='TRIP')? "" : $client_inquiry_item->rate * $client_inquiry_item->tonnage }}
Rate/Trip {{-- number_format(($client_inquiry_item->rate_for == 'TRIP')? $client_inquiry_item->rate : number_format($client_inquiry_item->rate/ $client_inquiry_item->standard_semi_tonnage)) --}} {{ ($client_inquiry_item->rate_for == 'TRIP') ? $client_inquiry_item->rate : number_format($client_inquiry_item->rate * $client_inquiry_item->tonnage) }} {{number_format($client_inquiry_item->standard_pully_tonnage*$client_inquiry_item->rate)}}
Fuel(Ltr) {{number_format($route->getFuel($client_inquiry_item->cargo_type)+$client_inquiry_item->loading_fuel)}}{{number_format($route->getFuel($client_inquiry_item->cargo_type)+$client_inquiry_item->loading_fuel)}}{{number_format($client_inquiry_item->return_fuel + $route_cargo_detail->routeReturningCargoDetails->first()->getFuel())}}
Fuel Rate/Ltr
Expected days {{$route->getDays($client_inquiry_item->cargo_type)}} {{$route->getDays($client_inquiry_item->cargo_type)}} {{$route_cargo_detail->routeReturningCargoDetails->first()->getDays()}}
  
@endforeach

Save

@stop