@extends('v2/fleet/layouts/contentNavbarLayout') @section('title') {{ __('client.conveying_details') }} @endsection @section('page-script') @endsection @section('content')

{{ __('client.conveying_details') }}

@include('client.responses.messages')
@if ($going['type'] == Conveying::TYPE_SIMPLE)

{{ __('client.driver') }}

@if ($going['driver'])
driver picture
{{ __('client.name') }} : {{ $going['driver']['name'] }}
{{ __('client.phone') }} : {{ $going['driver']['phone'] }}
@else

{{ __('client.not_assigned_yet') }}

@endif
@else

{{ __('client.driver_for_going') }}

@if ($going['driver'])
driver picture
{{ __('client.name') }} : {{ $going['driver']['name'] }}
{{ __('client.phone') }} : {{ $going['driver']['phone'] }}
@else

{{ __('client.not_assigned_yet') }}

@endif

{{ __('client.driver_for_coming') }}

@if ($coming['driver'])
driver picture
{{ __('client.name') }} : {{ $coming['driver']['name'] }}
{{ __('client.phone') }} : {{ $coming['driver']['phone'] }}
@else

{{ __('client.not_assigned_yet') }}

@endif
@endif

{{ __('client.order_summary') }}

{{ __('client.vehicle') }} :   {{ $going['vehicle_mark'] . ' ' . $going['vehicle_model'] }}
{{ __('client.status') }} :   @include('client.conveying.status', ['status' => end($going['status'])['title'], 'size' => 'large'])
{{ __('client.departure_date') }} :   {{ Carbon::parse($going['from_date'])->format('Y-m-d') }}
{{ __('client.arrival_date') }} :   {{ $going['to_date'] ? Carbon::parse($going['to_date'])->format('Y-m-d') : __('client.not_yed_determined')}}
{{ __('client.total_price_excluding_tax') }} :   @if($coming) {{ $going['price_ht'] + $coming['price_ht'] }} @else {{ $going['price_ht'] }} @endif {{ __('client.euro') }}
{{ __('client.total_price') }} :   @if($coming) {{ $going['price'] + $coming['price'] }} @else {{ $going['price'] }} @endif {{ __('client.euro') }}

{{ __('client.first_conveying') }}

{{ __('client.conveying_from') }} :   {{ $going['departure_address'] }}
{{ __('client.conveying_to') }} :   {{ $going['arrival_address'] }}
{{ __('client.distance') }} :   {{ $going['distance'] }} {{ __('client.km') }}
{{ __('client.conveying_price_excluding_tax') }} :   {{ $going['price_ht'] }} {{ __('client.euro') }}
{{ __('client.departure_contact') }}
{{ __('client.name') }} :   {{ $going['departure_contact_first_name'] }}
{{ __('client.last_name') }} :   {{ $going['departure_contact_last_name'] }}
{{ __('client.phone') }} :   {{ $going['departure_contact_phone'] }}
{{ __('client.email') }} :   {{ $going['departure_contact_email'] }}
{{ __('client.arrival_contact') }}
{{ __('client.name') }} :   {{ $going['arrival_contact_first_name'] }}
{{ __('client.last_name') }} :   {{ $going['arrival_contact_last_name'] }}
{{ __('client.phone') }} :   {{ $going['arrival_contact_phone'] }}
{{ __('client.email') }} :   {{ $going['arrival_contact_email'] }}
@if($going['type'] != Conveying::TYPE_SIMPLE)

{{ __('client.return_conveying') }}

{{ __('client.conveying_from') }} :   {{ $coming['departure_address'] }}
{{ __('client.conveying_to') }} :   {{ $coming['arrival_address'] }}
{{ __('client.distance') }} :   {{ $coming['distance'] }} {{ __('client.km') }}
{{ __('client.conveying_price_excluding_tax') }} :   {{ $coming['price_ht'] }} {{ __('client.euro') }}
{{ __('client.departure_contact') }}
{{ __('client.name') }} :   {{ $coming['departure_contact_first_name'] }}
{{ __('client.last_name') }} :   {{ $coming['departure_contact_last_name'] }}
{{ __('client.phone') }} :   {{ $coming['departure_contact_phone'] }}
{{ __('client.email') }} :   {{ $coming['departure_contact_email'] }}
{{ __('client.arrival_contact') }}
{{ __('client.name') }} :   {{ $coming['arrival_contact_first_name'] }}
{{ __('client.last_name') }} :   {{ $coming['arrival_contact_last_name'] }}
{{ __('client.phone') }} :   {{ $coming['arrival_contact_phone'] }}
{{ __('client.email') }} :   {{ $coming['arrival_contact_email'] }}
@endif
@endsection