@extends('driver.layout')
@section('title','Payments')
@section('content')
{{-- HEADER --}}
Payments
Your earnings and payout history
{{ now()->format('d M Y') }}
{{-- STATS --}}
{{-- TOTAL --}}
Total Earnings
Rs {{ number_format($stats['total_earnings'], 2) }}
{{-- TODAY --}}
Today
Rs {{ number_format($stats['today_earnings'], 2) }}
{{-- PENDING --}}
Pending Payout
Rs {{ number_format($stats['pending_payout'], 2) }}
{{-- PAYMENTS TABLE --}}
Recent Earnings
| Order |
Date |
Status |
Amount |
@forelse($orders as $order)
|
#{{ $order->id }}
|
{{ $order->delivered_at
? \Carbon\Carbon::parse($order->delivered_at)->format('d M Y')
: '—' }}
|
Paid
|
Rs {{ number_format($order->driver_fee, 2) }}
|
@empty
|
No payment records found
|
@endforelse
@endsection