@extends('beautymail::templates.widgets') @section('content') @include('beautymail::templates.widgets.articleStart')

ENQUIRY

{{$receiver_details['name']}}

{{ $receiver_details['remarks'] }}

@include('beautymail::templates.widgets.articleEnd') @include('beautymail::templates.widgets.newfeatureStart')

ENQUIRY DETAILS

Enquiry By: {{ $receiver_details['client_inquiry']->client->name }}
Received On: {{ \Carbon\Carbon::parse($receiver_details['client_inquiry']->date)->toFormattedDateString() }}

{{--*/ $client_inquiry = $receiver_details['client_inquiry']; /*--}} @foreach($client_inquiry->clientInquiryItems as $client_inquiry_item) {{--*/ $product = DB::table('transit_products')->where('id', $client_inquiry_item->transit_product_id)->first() /*--}} {{--*/ $route = $client_inquiry_item->getRoute() /*--}} {{--*/ $client_inquiry_item_loading_point = $client_inquiry_item->clientInquiryItemLoadingPoint; $client_inquiry_item_offloading_point = $client_inquiry_item->clientInquiryItemLoadingPoint; $tanker_destination_detail=[] /*--}} @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
@if($client_inquiry->type == 'IMPORT') @if(isset($route_cargo_detail)) @if($route_cargo_detail->is_returning) @foreach($route_cargo_detail->routeReturningCargoDetails as $route_returning_cargo_detail) @endforeach @endif @endif @endif
LOADING POINT DESTINATION TRIP TYPE PRODUCT
{{$client_inquiry_item_loading_point->city->name}} {{$client_inquiry_item_offloading_point->city->name}},{{ strtoupper($client_inquiry_item_offloading_point->city->country->name) }} {{ $client_inquiry_item->cargo_type }} {{ $product->name }}
{{$route_returning_cargo_detail->loadingCity->name}} {{$route_returning_cargo_detail->loadingCity->country->name}}, DAR ES SALAAM
@endforeach

@if($receiver_details['key']=='costing') Preview and Approve Costing @elseif($receiver_details['key']=='allocation') Preview and Approve Vehicle Allocation @else Preview @endif

@include('beautymail::templates.widgets.newfeatureEnd') @stop