@extends('admin.layout') @section('title', 'Dashboard Keuangan') @section('content')

Dashboard Keuangan

Laporan keuangan & pendapatan sistem.

calendar_month
payments
trending_up GMV

Gross GMV

Rp {{ number_format($grossGmv ?? 0, 0, ',', '.') }}

account_balance_wallet
Platform Net

Total Net Revenue

Rp {{ number_format($netRevenue ?? 0, 0, ',', '.') }}

Order: Rp {{ number_format($netOrderRevenue ?? 0, 0, ',', '.') }}

how_to_reg
{{ $registrationCount ?? 0 }} Transaksi

Biaya Registrasi

Rp {{ number_format($registrationRevenue ?? 0, 0, ',', '.') }}

Tagihan Mitra arrow_forward
person
Hak Mitra

Total Payout Mitra

Rp {{ number_format($payoutMitra ?? 0, 0, ',', '.') }}

pending_actions
{{ $pendingCount ?? 0 }} Pending

Pending Payout

Rp {{ number_format($pendingDisbursement ?? 0, 0, ',', '.') }}

account_balance
Saldo Dompet

Wallet Liabilities

Rp {{ number_format($walletLiabilities ?? 0, 0, ',', '.') }}

Revenue Harian

Statistik 30 hari terakhir

Platform (Komisi + Registrasi)
Payout Mitra
@if(isset($chartDays) && count($chartDays) > 0) @foreach($chartDays as $idx => $day) @php $netHeight = $maxChartVal > 0 ? max(4, round(($day['net'] / $maxChartVal) * 180)) : 4; $payoutHeight = $maxChartVal > 0 ? max(4, round(($day['payout'] / $maxChartVal) * 180)) : 4; @endphp
{{ $idx === count($chartDays) - 1 ? 'Today' : $day['label'] }}
@endforeach @else
Belum ada data transaksi chart.
@endif

Komposisi Pembayaran

{{ $totalPaymentCount ?? 0 }} Transaksi
QRIS ({{ $paymentChannels['qris']['percent'] ?? 40 }}%)
VA BCA ({{ $paymentChannels['bca_va']['percent'] ?? 25 }}%)
VA BNI ({{ $paymentChannels['bni_va']['percent'] ?? 20 }}%)
GoPay ({{ $paymentChannels['gopay']['percent'] ?? 15 }}%)

Antrian Payout Mitra

{{ $pendingCount ?? 0 }} Pending
@forelse($pendingWithdrawals as $withdrawal) @empty @endforelse
Mitra Bank No. Rekening Amount Status Aksi
@if($withdrawal->user && ($withdrawal->user->selfie_image || $withdrawal->user->avatar)) {{ $withdrawal->user->name }} @else {{ strtoupper(substr($withdrawal->user->name ?? 'M', 0, 2)) }} @endif

{{ $withdrawal->user->name ?? 'Mitra' }}

{{ $withdrawal->user->phone ?? '-' }}

{{ $withdrawal->bank_name ?? '-' }} {{ $withdrawal->bank_account_number ?? '-' }} Rp {{ number_format($withdrawal->amount, 0, ',', '.') }} @if($withdrawal->status === 'pending') Pending @elseif($withdrawal->status === 'processing') Processing @else Approved @endif @if($withdrawal->status === 'pending') @else Detail @endif
Tidak ada antrian penarikan dana pending.

Menampilkan {{ $pendingWithdrawals->count() }} antrian

{{ $pendingWithdrawals->links() }}
@foreach($pendingWithdrawals as $w) @if($w->status === 'pending') @endif @endforeach
how_to_reg

Penerimaan Biaya Registrasi Mitra

Total: Rp {{ number_format($registrationRevenue ?? 0, 0, ',', '.') }}

Riwayat pembayaran biaya pendaftaran mitra yang telah tercatat di sistem.

receipt_long Kelola Tagihan Mitra
@forelse($recentRegistrationPayments as $payment) @empty @endforelse
Mitra Tanggal Nominal Metode Bayar Dicatat Oleh Keterangan
@if($payment->user && ($payment->user->selfie_image || $payment->user->avatar)) {{ $payment->user->name }} @else {{ strtoupper(substr($payment->user->name ?? 'M', 0, 2)) }} @endif

{{ $payment->user->name ?? 'Mitra' }}

{{ $payment->user->phone ?? '-' }}

{{ $payment->created_at ? $payment->created_at->format('d/m/Y H:i') : '-' }} Rp {{ number_format($payment->amount, 0, ',', '.') }} @php $methodBadge = match($payment->payment_method) { 'cash' => ['bg' => 'bg-emerald-100', 'text' => 'text-emerald-800', 'label' => 'CASH', 'icon' => 'payments'], 'transfer' => ['bg' => 'bg-blue-100', 'text' => 'text-blue-800', 'label' => 'TRANSFER', 'icon' => 'account_balance'], 'wallet' => ['bg' => 'bg-purple-100', 'text' => 'text-purple-800', 'label' => 'WALLET', 'icon' => 'wallet'], 'potong_order' => ['bg' => 'bg-amber-100', 'text' => 'text-amber-800', 'label' => 'POTONG ORDER', 'icon' => 'content_cut'], default => ['bg' => 'bg-slate-100', 'text' => 'text-slate-700', 'label' => strtoupper($payment->payment_method ?? '-'), 'icon' => 'credit_card'] }; @endphp
{{ $methodBadge['icon'] }} {{ $methodBadge['label'] }}
@if($payment->payment_method === 'transfer' && $payment->transfer_proof) @endif
{{ $payment->admin ? $payment->admin->name : ($payment->payment_method === 'potong_order' ? 'Sistem (Otomatis)' : 'Admin') }} {{ $payment->notes ?: '-' }}
Belum ada pembayaran biaya pendaftaran mitra pada periode ini.
@if($recentRegistrationPayments->hasPages())

Menampilkan {{ $recentRegistrationPayments->count() }} data

{{ $recentRegistrationPayments->links() }}
@endif

Timeline Transaksi

Lihat Semua
@forelse($recentTransactions as $tx)

{{ $tx->type === 'in' ? 'Kredit Saldo' : 'Penarikan Saldo' }}

{{ $tx->user ? $tx->user->name : 'Mitra' }}

{{ $tx->type === 'in' ? '+' : '-' }}Rp {{ number_format($tx->amount, 0, ',', '.') }}

{{ $tx->created_at ? $tx->created_at->diffForHumans() : '-' }}

@empty
Belum ada riwayat transaksi.
@endforelse
Butuh Bantuan Keuangan?

Konsultasikan kendala rekonsiliasi atau pencairan dana dengan tim teknis kami.

Hubungi Support arrow_forward
@section('scripts') @endsection @endsection