@extends('provider.layout.app') @section('content')

TOTAL EARNINGS

00.00

{{$today}}

TRIPS COMPLETED TODAY

{{Setting::get('daily_target',0)}}

DAILY TRIP TARGET

{{$provider[0]->accepted->count()}}

FULLY COMPLETED TRIPS

@if($provider[0]->accepted->count() != 0) {{$provider[0]->accepted->count()/$provider[0]->accepted->count()*100}}% @else 0% @endif

ACCEPTANCE RATE

{{$provider[0]->cancelled->count()}}

DRIVER CANCELLATIONS

Weekly Earnings

@foreach($weekly as $day) @endforeach
@if($day->created_at) {{date('Y-m-d',strtotime($day->created_at))}} - {{$day->created_at->diffForHumans()}} @else - @endif @if($day->payment != "") {{currency($current_sum)}} @endif

Estimated Payout

{{currency($sum_weekly)}}

Daily Earnings

@foreach($fully as $each)
Pickup Time Booking Id Vehicle Duration Status Distance(KM) Cash Collected Total Earnings
{{date('Y D, M d - H:i A',strtotime($each->created_at))}} {{ $each->booking_id }} @if($each->service_type) {{$each->service_type->name}} @endif @if($each->finished_at != null && $each->started_at != null)
Fatal error: Uncaught Error: Class 'Carbon\Carbon' not found in /home/salientm/public_html/oik.salientminds.com.ng/resources/views/user/provider/payment/earnings.blade.php:209 Stack trace: #0 {main} thrown in /home/salientm/public_html/oik.salientminds.com.ng/resources/views/user/provider/payment/earnings.blade.php on line 209