@extends('dispatch-new.layout') @section('dispatch-content')
Basic Information
{{ $item->request_number }}
{{ $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
@foreach($data as $k=>$v) @php if($v->process_type == "create_request") { $process_type = "Trip Request"; } 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 ".$v->dricver_details->name; } elseif($v->process_type == "decline"){ $process_type = "Cancelled"; } 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"; } 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->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")
{{$process_type}}
@else
{{$process_type}}
@endif

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

@endif @endforeach
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)
{{ $item->driverDetail->mobile }}
@else
---------
@endif
User Details
{{ $item->userDetail->name }}
{{ $item->userDetail->mobile }}
Payment Details
Payment Types
{{ $pay_method }}
Total Fare
{{ $item->requested_currency_symbol }} {{ $item->request_eta_amount }}
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') @endsection @push('scripts-js') @endpush