@extends('ecommerce::delivery.layout') @section('header_title', 'Earnings') @section('content')
{{ $totalDeliveries }}
Total Deliveries
₹{{ number_format($totalEarnings, 2) }}
Total Earnings
Daily Breakdown
@forelse($dailyEarnings->sortKeysDesc() as $date => $data)
{{ \Carbon\Carbon::parse($date)->format('d M Y') }}
{{ $data['count'] }} deliveries
₹{{ number_format($data['amount'], 2) }}
@empty

No Earnings This Month

Complete deliveries to see your earnings here

@endforelse
@endsection