@extends('layouts.app') @section('content')

{{trans('lang.ride_detail')}}

{{--

{{trans('lang.map_view')}}

--}} @if(session('message'))
{{ session('message') }}
@endif

@csrf @method("PUT")

{{trans("lang.general_details")}}

{{--
--}}
@if(!empty($ride->age_children1) || !empty($ride->age_children2) || !empty($ride->age_children3))
@endif
@php $status = ['new' => 'new', 'confirmed' => 'confirmed', 'on ride' => 'on ride', 'completed' => 'completed', 'canceled' => 'canceled', 'rejected' => 'rejected'] @endphp

{{ trans('lang.billing_details')}}

@php $userInfo=json_decode($ride->user_info,true) @endphp

{{trans("lang.name")}}: @if(file_exists(public_path('assets/images/users'.'/'.$ride->photo_path)) && !empty($ride->photo_path)) Image @if($ride->ride_type=="driver"){{!empty($userInfo) ? $userInfo['name'] : " "}}@else{{$ride->userPrenom}} {{$ride->userNom}}@endif
{{$userRating}}
@else Image @if($ride->ride_type=="driver"){{!empty($userInfo) ? $userInfo['name'] : ''}}@else{{$ride->userPrenom}} {{$ride->userNom}}@endif
{{$userRating}} @endif

{{trans("lang.email")}}: @if($ride->ride_type=="driver"){{!empty($userInfo) ? $userInfo['email'] : ''}}@else{{$ride->user_email}}@endif

{{trans("lang.phone")}}: @if($ride->ride_type=="driver"){{!empty($userInfo) ? $userInfo['phone'] : '' }}@else{{$ride->user_phone}}@endif

{{trans('lang.map_view')}}

{{trans("lang.location_details")}}

{{$ride->depart_name}}
{{$ride->destination_name}}

{{trans("lang.price_details")}}

@if(!empty($ride->transaction_id)) @endif @if($ride->discount > 0) @endif @if(!empty($taxHtml)) {!! $taxHtml !!} @endif @if($ride->tip_amount > 0) @endif @if($ride->admin_commission != '') @endif
{{trans("lang.transaction_id")}} {{$ride->transaction_id}}

{{trans("lang.sub_total")}}
{{trans("lang.sub_total")}} @if($currency->symbol_at_right=="true") {{number_format(floatval($ride->montant),$currency->decimal_digit)."".$currency->symbole}} @else {{$currency->symbole."".number_format(floatval($ride->montant),$currency->decimal_digit)}} @endif

{{trans("lang.discount")}}
{{trans("lang.discount")}} @if($currency->symbol_at_right=="true") (- {{number_format(floatval($ride->discount),$currency->decimal_digit)."".$currency->symbole}}) @else (-{{$currency->symbole."".number_format(floatval($ride->discount),$currency->decimal_digit)}}) @endif

{{trans("lang.tax_calculation")}}

{{trans("lang.tip")}}
{{trans("lang.tip_amount")}} @if($currency->symbol_at_right=="true") {{number_format(floatval($ride->tip_amount),$currency->decimal_digit)."".$currency->symbole}} @else {{$currency->symbole."".number_format(floatval($ride->tip_amount),$currency->decimal_digit)}} @endif

{{trans("lang.total_amount")}} @if($currency->symbol_at_right=="true") {{number_format(floatval($totalAmount),$currency->decimal_digit)."".$currency->symbole}} @else {{$currency->symbole."".number_format(floatval($totalAmount),$currency->decimal_digit)}} @endif
{{trans("lang.admin_commission")}} @if($currency->symbol_at_right=="true") ({{number_format(floatval($ride->admin_commission),$currency->decimal_digit)."".$currency->symbole}}) @else ( {{$currency->symbole."".number_format(floatval($ride->admin_commission),$currency->decimal_digit)}}) @endif

{{trans('lang.driver_detail')}}

@if (file_exists(public_path('assets/images/drivers'.'/'.$ride->driver_photo)) && !empty($ride->driver_photo)) Image @else Image @endif

{{$ride->driverPrenom}} {{$ride->driverNom}}

{{$driverRating}}
{{trans('lang.contact_info')}} :

{{trans('lang.email')}}: {{$ride->driver_email}}

{{trans('lang.phone')}}: {{$ride->driver_phone}}

{{trans('lang.car_info')}} :

{{trans('lang.brand')}} : {{$ride->brand}}

{{trans('lang.car_number')}} : {{$ride->numberplate}}

{{trans('lang.car_model')}} : {{$ride->model}}

{{trans('lang.car_make')}} : {{$ride->car_make}}

{{trans('lang.zone')}} : {{$ride->zone_name}}

{{trans('lang.ride_customer_review')}}

@if($customer_review->isEmpty()) {{trans("lang.no_review_found")}} @else @foreach($customer_review as $review)

{{$review->comment }}
@endforeach @endif

{{trans('lang.ride_driver_review')}}

@if($driver_review->isEmpty()) {{trans('lang.no_review_found')}} @else @foreach($driver_review as $review)

{{$review->comment }}
@endforeach @endif

{{trans('lang.complaints')}}

@if($complaints->count() == 0)

{{trans("lang.no_complaint_found")}}

@else @foreach($complaints as $complaint) @endforeach @endif

{{trans("lang.by")}} {{ $complaint->user_type }}
{{trans("lang.title")}} {{ $complaint->title }}
{{trans("lang.message")}} {{ $complaint->description }}
{{trans('lang.cancel')}}
@endsection @section('scripts') @endsection