@extends('dispatch-new.layout') @section('dispatch-content')
Basic Information
Ride_000293
Home,saravanampatti,Coimbatore-35
Drop,Gandhipuram,Coimbatore-05
01 km
10 mins
@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
TN66BR1234
Type
SUV
Make
Honda
Model
2020
Color
White
Driver Details
Sudarsan
+91-9876543210
User Details
Sudarsan
+91-9876543210
Payment Details
Payment Types
Cash
Total Fare
Rs 20
Ratings
User
4
Driver
4
Trip Summary
Base Price
$250
Distance Price
$10
Waiting Price($1 x 20mins)
$10
Convenience Fee
$10
Discount
-$20
Tax
$15
Total Fare
$220
@endsection @push('scripts-js') @endpush