@extends('admin.layouts.app') @section('content')
{{-- card --}}
Today's Trip
{{$todayTrips}}
Today's Earning
{{$currency}} {{$todayEarning}}
Total Trips
{{$totalTrips}}
Total Earnings
{{$currency}} {{$totalEarning}}
Wallet Amount
{{$currency}} {{$wallet_amount }}
Complaints
{{ $complaints->count() }}

Driver Location :

Total earnings

{{$currency}} {{$total_overall_earnings}}
Total Earnings

By Cash {{$currency}} {{$overall_earning_cash}}
{{ number_format($overall_earning_cash_percent, 2) }}%
By Wallet {{$currency}} {{$overall_earning_wallet}}
{{ number_format($overall_earning_wallet_percent, 2) }}%
By Card/Online {{$currency}} {{$overall_earning_card}}
{{ number_format($overall_earning_card_percent, 2) }}%

{{$currency}} {{$overall_earning_commision}}
Admin Commision

{{$currency}} {{$overall_earning_driver_commision}}
Driver Earnings

Trip statistics

{{$total_completedTrips}}

Completed Trips

{{$total_cancelledTrips}}

Cancelled Trips

Ongoing trip Info

@foreach ($trip_info as $trip) @if($trip->is_cancelled == 1) @elseif($trip->is_completed == 1) @elseif($trip->is_trip_start == 0 && $trip->is_cancelled == 0) @else @endif @endforeach
Vehicle No Pickup details Drop details Trip Status Trip Request
{{$trip->driverDetail->car_number ?? ''}} {{$trip->requestPlace->pick_address }} {{$trip->requestPlace->drop_address }} @lang('view_pages.cancelled')@lang('view_pages.completed')@lang('view_pages.not_started')- View

Shift History

@foreach ($history as $key=>$hist) @endforeach
# Vehicle No Shift Start Shift End Shift Time
{{$key+1}} {{$hist->driver->car_number ?? '' }} {{$hist->getConvertedOnlineAtAttribute()}} {{$hist->getConvertedOfflineAtAttribute()}} {{$hist->getConvertedDurationAtAttribute()}}
{{$history->links()}}

Complaints

@foreach ($complaints as $key=>$complaint) @endforeach
Complaint # Title Type Description Created At
{{ $complaint->complaint_number ?? $loop->iteration }} {{$complaint->complaint->title ?? 'N/A' }} {{ $complaint->complaint_type }} {{ $complaint->description }} {{ $complaint->created_at }}
{{$complaints->links()}}
@if(isset($custom_fields) && count($custom_fields) > 0)

Additional Information

@foreach($custom_fields as $cf) @if($cf->type == 'bool') @else @endif @endforeach
{{ $cf->title }} @if(empty($item->{$cf->slug}) || $item->{$cf->slug} == 0) No @else Yes @endif {{ $item->{$cf->slug} }}
@endif
@endsection