@extends('adminlte::page') @section('title', 'Earnings Report') @section('content_header')

Earnings Report

@stop @section('content')

Your Earnings Overview

Rp {{ number_format($totalEarnings, 0, ',', '.') }}

Filtered Earnings

Rp {{ number_format($pendingEarnings, 0, ',', '.') }}

Pending (Filtered)

{{ number_format($transactionCount, 0, ',', '.') }}

Transactions (Filtered)

Rp {{ number_format(isset($allTimeTotalEarnings) ? $allTimeTotalEarnings : $totalEarnings, 0, ',', '.') }}

All-Time Earnings

Date Filter Information

Showing transactions from {{ $startDate ?? now()->subDays(30)->toDateString() }} to {{ $endDate ?? now()->toDateString() }}. To see all transactions, clear the date filters.

Transaction History

Clear
@forelse($transactions as $transaction) @empty @endforelse
Transaction ID Date Amount Platform Fee Your Earnings Status
{{ $transaction->unique_reference }} {{ $transaction->created_at->format('d M Y H:i') }} Rp {{ number_format($transaction->amount, 0, ',', '.') }} Rp {{ number_format($transaction->platform_fee_amount, 0, ',', '.') }} Rp {{ number_format($transaction->seller_amount, 0, ',', '.') }} @if($transaction->status == 'settlement') Completed @elseif($transaction->status == 'pending') Pending @elseif($transaction->status == 'expired') Expired @else {{ ucfirst($transaction->status) }} @endif
No transactions found for the selected date range.
@stop @section('css') @stop @section('js') @stop