{!! Form::open(array('route' => ['client_enquiry.md_response_for_new_equiry', $client_inquiry->id], 'class'=>'stdform','id'=>'md_approval_form','files'=>true)) !!}
Enquiry By: |
{{ $client_inquiry->client->name }} |
Enquiry Type: | '
{{--*/ $cargo_direction = ($client_inquiry->type =='EXPORT') ? 'RETURN CARGO' : 'GO'; /*--}}
{{ $cargo_direction }} | '
Received On: |
{{\Carbon\Carbon::parse($client_inquiry->date)->toFormattedDateString()}} |
Created By: |
{{$client_inquiry->handed_by}} |
@foreach($items as $client_inquiry_item)
{{--*/ $route = $client_inquiry_item->getRoute() /*--}}
@if($route)
{{--*/ $tanker_destination_detail=$client_inquiry_item->getRoute()->routeCargoDetails()->whereType($client_inquiry_item->cargo_type)->first() /*--}}
{{--*/ $route_cargo_details =$route->routeCargoDetails() /*--}}
{{--*/ $route_cargo_detail = $route_cargo_details->whereType($client_inquiry_item->cargo_type)->first() /*--}}
@else
{{--*/ $route_cargo_detail = [] /*--}}
@endif
Loading Point |
Destination |
Truck |
Product |
Distance/Two Way |
@if($client_inquiry_item->rate_for == 'MT')
Rate/MT |
Rate/Trip |
@elseif($client_inquiry_item->rate_for == 'CUBIC_METER')
Rate/M3 |
Rate/Trip |
@elseif($client_inquiry_item->rate_for == 'TRIP')
Rate/Trip |
@endif
Currency |
{{$client_inquiry_item->clientInquiryItemLoadingPoint->city->name}}
|
{{--{{$client_inquiry_item->clientInquiryItemOffloadingPoint->city->country->name}} | --}}
{{$client_inquiry_item->clientInquiryItemOffloadingPoint->city->name}}
|
{{ $client_inquiry_item->cargo_type }} |
{{ $client_inquiry_item->product_name }} |
@if($client_inquiry->type == 'IMPORT')
@if($route) {{number_format($route->go_distance+$route->return_distance)}} @endif
@else
RETURN CARGO
@endif
|
{{--*/ $rate = ($client_inquiry_item->rate_for == "TRIP")? $client_inquiry_item->rate:$client_inquiry_item->rate*$client_inquiry_item->tonnage /*--}}
@if($client_inquiry_item->rate_for == 'MT')
{{number_format($client_inquiry_item->rate)}} |
{{number_format($rate)}} |
@elseif($client_inquiry_item->rate_for == 'CUBIC_METER')
{{number_format($client_inquiry_item->rate)}} |
{{number_format($rate)}} |
@elseif($client_inquiry_item->rate_for == 'TRIP')
{{number_format($rate)}} |
@endif
{{$client_inquiry_item->currency}} |
@if($client_inquiry_item->cargo_type=='TANKERS')
{{$client_inquiry_item->clientInquiryItemLoadingPoint->city->name}}
|
{{--{{$client_inquiry_item->clientInquiryItemOffloadingPoint->city->country->name}} | --}}
{{$client_inquiry_item->clientInquiryItemOffloadingPoint->city->name}}
|
TANKERS (Pully) |
{{ $client_inquiry_item->product_name }} |
{{$route->go_distance+$route->return_distance}} |
{{$client_inquiry_item->rate}} |
{{--*/ $rate = ($client_inquiry_item->rate_for == "TRIP")? $client_inquiry_item->rate:$client_inquiry_item->rate*$client_inquiry_item->standard_pully_tonnage /*--}}
{{number_format($rate)}}
|
{{$client_inquiry_item->currency}} |
@endif
@endforeach