@extends('provider.layout.app') @section('content')
Payment Statements Upcoming

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($day->payment->provider_pay)}} @else {{currency(0.00)}} @endif

Estimated Payout

{{currency($weekly_sum)}}

Daily Earnings

@foreach($fully as $each)
Pickup Time Booking Id Vehicle Duration Status Distance(MPH) Invoice Amount 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)