@extends('dispatch-new.layout') @section('dispatch-content')
@lang('view_pages.ride_information')
{{ $item->request_number }}
@if($item->is_later)
@lang('view_pages.start_time') : {{ $item->converted_trip_start_time }}
@endif
{{ $item->pick_address }}
{{ $item->drop_address }}
@if($item->requestBill) {{ number_format($item->requestBill->total_distance,2) }} {{ $item->unit ? 'km' : 'M' }} @else {{ number_format($item->total_distance,2) }} {{ $item->unit ? 'km' : 'M' }} @endif
@if($item->requestBill)
{{ $item->requestBill->total_time }} mins
@else
{{ $item->total_time }} mins
@endif
@if(!$item->instant_ride);
@foreach($data as $k=>$v) @php $process_type = ""; if($v->process_type == "create_request") { $process_type = "Ride Created"; } elseif($v->process_type == "accept"){ $process_type = "Accepted"; } elseif($v->process_type == "trip_arrived"){ $process_type = "Trip Arrived"; } elseif($v->process_type == "driver_cancelled"){ $process_type = "Cancelled By Driver"; } elseif($v->process_type == "decline"){ $process_type = "Rejected"; } elseif($v->process_type == "trip_start"){ $process_type = "Trip Started"; } elseif($v->process_type == "trip_completed"){ $process_type = "Trip Completed"; } elseif($v->process_type == "driver_system_cancelled"){ $process_type = "Cancelled by System"; } elseif($v->process_type == "system_cancelled"){ $process_type = "Request Cancelled by System"; } elseif($v->process_type == "user_cancelled"){ $process_type = "Cancelled by User"; } elseif($v->process_type == "auto_cancelled"){ $process_type = "Cancelled Due to no driver"; } else{ $process_type = ""; } @endphp @if($v->process_type == "accept" || $v->process_type == "decline" || $v->process_type == "driver_system_cancelled") @if($v->orderby_status % 2 == 0)
@else
@endif @if($v->orderby_status % 2 == 0)
@else
@endif

{{$v->dricver_details ? $v->dricver_details->name : '----' }}

{{$v->rating}}

{{ \Carbon\Carbon::parse($v->created_at)->setTimezone($timezone)->format('d,M Y h:i A') }}

@if($v->process_type == "accept")

{{$process_type}}

@else

{{$process_type}}

@endif
@else
@if($v->process_type == "create_request") @else @endif @if($v->process_type == "driver_cancelled" || $v->process_type == "user_cancelled" || $v->process_type == "auto_cancelled")
{{$process_type}}
@else
{{$process_type}}
@endif

{{ \Carbon\Carbon::parse($v->created_at)->setTimezone($timezone)->format('d,M y h:i A') }}

@endif @endforeach
@endif
Vehicle Details
Plate.No
@if($item->driverDetail)
{{ $item->driverDetail->car_number }}
@else
---------
@endif
Type
{{ $item->vehicle_type_name }}
Make
{{ $item->make }}
Model
{{ $item->model }}
Color
@if($item->driverDetail)
{{ $item->driverDetail->car_color }}
@else
---------
@endif
Driver Details
@if($item->driverDetail)
{{ $item->driverDetail->name }}
@else
---------
@endif
@if($item->driverDetail) @else
---------
@endif
User Details
{{ $item->userDetail ? $item->userDetail->name : $item->adHocuserDetail->name }}
{{ $demo=='demo' ? '***********' : ( $item->userDetail ? $item->userDetail->mobile : $item->adHocuserDetail->mobile) }}
Payment Details
Payment Types
{{ $pay_method }}
Total Fare
@if($item->requestBill)
{{ $item->requested_currency_symbol }} {{ $item->requestBill->total_amount }}
@else
{{ $item->requested_currency_symbol }} --
@endif
Ratings
User
{!! $driver_rating !!}
Driver
{!! $user_rating !!}
@if($item->requestBill)
Trip Summary
Base Price
{{ $item->requested_currency_symbol }} {{ $item->requestBill->base_price }}
Distance Price
{{ $item->requested_currency_symbol }} {{ $item->requestBill->distance_price }}
Waiting Price({{ $item->requested_currency_symbol }} {{ $item->requestBill->waiting_charge_per_min }} x {{ $item->total_time }})
{{ $item->requested_currency_symbol }} {{ $item->requestBill->waiting_charge }}
Convenience Fee
{{ $item->requested_currency_symbol }} {{ $item->requestBill->admin_commision_with_tax }}
Discount
- {{ $item->requested_currency_symbol }} {{ $item->requestBill->promo_discount }}
Tax
{{ $item->requested_currency_symbol }} {{ $item->requestBill->service_tax }}
Total Fare
{{ $item->requested_currency_symbol }} {{ $item->requestBill->total_amount }}
@endif
@endsection @push('scripts-js') @endpush