@extends('layouts.app') @extends('layouts.navbar') @section('content')
| {{ __('Date') }} | {{ __('Booking Type') }} | {{ __('Status') }} | @if(Auth::user()->user_type==0){{ __('Driver Name') }} | @else{{ __('Customer Name') }} | @endif{{ __('Distance') }} | {{ __('Fare') }} | {{ __('Coupon Amt.') }} | {{ __('Paid') }} |
|---|---|---|---|---|---|---|---|---|
| {{ \Carbon\Carbon::parse($order->order_date)->toFormattedDateString() }} | {{ $order->bookingType->name }} | {{ $order->orderStatus->name }} | @if(Auth::user()->user_type==0)@if ($order->driver_id!=NULL && $order->driver()->exists()) {{ $order->driver->name }} @else {{ __("N/A") }} @endif | @else{{ $order->user->name }} | @endif{{ round($order->distance,1) }}{{ __('km') }} | {{ __("Rs. ") }}{{ round($order->total_fare,0) }} | @if ($order->coupon_id!=NULL) @if ($order->coupon->type==1) {{ __("Rs.") }}{{ ($order->coupon_id!=NULL) ? round($order->coupon->amount,0) : 0 }} @elseif ($order->coupon->type==2) {{ __("Rs.") }}{{ ($order->coupon_id!=NULL) ? round($order->final_fare-$order->total_fare,0) : 0 }} @endif @else {{ __("Rs.") }}{{ ($order->coupon_id!=NULL) ? round($order->coupon->amount,0) : 0 }} @endif | {{ __("Rs. ") }}{{ round($order->final_fare,0) }} |
| {{ __('History Unavailable!') }} | ||||||||