@extends('layouts.master') @section('styles') @endsection @section('content')

Dashboard Utama DBIC

Ringkasan performa pengguna, antrean KYC, dan portofolio produk investasi

{{-- Quick Action Toolbar --}}
TOTAL INVESTOR

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

+{{ $newUsersThisMonth }} bulan ini
ANTREAN VERIFIKASI KYC

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

{{ $kycApprovedCount }} terverifikasi
PRODUK REKSA DANA

{{ $totalProducts }}

{{ $activeProducts }} aktif • {{ $featuredProductsCount }} unggulan
TOTAL DANA INVESTOR

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

Kas: Rp {{ number_format($totalUserBalance, 0, ',', '.') }}
Total Dana Investor Masuk
Tren inflow dana investasi per hari hingga hari ini
Hari Ini: Rp {{ number_format($todayInflow, 0, ',', '.') }}
Masuk Hari Ini Rp {{ number_format($todayInflow, 0, ',', '.') }}
{{ $todayInflowCount }} Trx
Inflow Bulan Ini Rp {{ number_format($thisMonthInflow, 0, ',', '.') }}
{{ now()->translatedFormat('M Y') }}
Outflow (Penarikan) Rp {{ number_format($thisMonthOutflow, 0, ',', '.') }}
Pencairan
Akumulasi 7 Hari Rp {{ number_format(array_sum($chartAmounts), 0, ',', '.') }}
Periode
Status Verifikasi Akun
Distribusi kelengkapan KYC investor
@php $totalVerifiedBase = max($totalUsers, 1); $approvedPct = round(($kycApprovedCount / $totalVerifiedBase) * 100); $pendingPct = round(($kycPendingCount / $totalVerifiedBase) * 100); $rejectedPct = round(($kycRejectedCount / $totalVerifiedBase) * 100); $notStartedPct = round(($kycNotStartedCount / $totalVerifiedBase) * 100); @endphp
Terverifikasi (Approved)
{{ $kycApprovedCount }} ({{ $approvedPct }}%)
Menunggu Verifikasi (Pending)
{{ $kycPendingCount }} ({{ $pendingPct }}%)
Ditolak (Rejected)
{{ $kycRejectedCount }} ({{ $rejectedPct }}%)
Belum Mengajukan
{{ $kycNotStartedCount }} ({{ $notStartedPct }}%)
{{-- Row: Transaksi Finansial Terbaru & Distribusi Kategori Produk --}}
Transaksi Finansial Terbaru
Aktivitas investasi & penarikan dana terkini
Semua Transaksi
@if($recentOrders->count() > 0)
@foreach($recentOrders as $ord) @php $isRedemption = str_starts_with($ord->order_number, 'RED-') || $ord->payment_type === 'DISBURSEMENT'; @endphp @endforeach
No. Order & Waktu Investor Produk / Tipe Nominal Metode Bayar Status Aksi
{{ $ord->order_number }} {{ $ord->created_at ? $ord->created_at->diffForHumans() : '-' }} {{ $ord->user->name ?? 'User #' . $ord->user_id }} {{ $ord->user->email ?? $ord->user->phone ?? '-' }} @if($isRedemption) Penarikan @else Pembelian @endif {{ $ord->product->name ?? 'Portofolio' }} {{ $isRedemption ? '-' : '+' }}Rp {{ number_format($ord->amount, 0, ',', '.') }} {{ $ord->payment_method ?? ($ord->payment_type ?? '-') }} @if($ord->payment_account_number) {{ $ord->payment_account_number }} @endif @if($ord->status === 'PAID') PAID @elseif($ord->status === 'PENDING') PENDING @elseif(in_array($ord->status, ['REDEEMED', 'COMPLETED'])) SELESAI @elseif(in_array($ord->status, ['CANCELLED', 'REJECTED', 'EXPIRED'])) BATAL @else {{ $ord->status }} @endif
@else
Belum ada riwayat transaksi finansial.
@endif
Alokasi Kategori Produk
Porsi instrumen investasi aktif
Katalog
@foreach($categoriesData as $cat)
{{ $cat->category }}
@if($cat->total_aum > 0) Rp {{ number_format($cat->total_aum, 0, ',', '.') }} @else {{ $cat->total_count }} Produk @endif
@endforeach
Produk Reksa Dana Unggulan
Katalog produk dengan performa return terbaik
Kelola Produk ({{ $totalProducts }})
@if($topProducts->count() > 0)
@foreach($topProducts as $prod) @endforeach
PRODUK KATEGORI IMBAL HASIL (1 THN) MIN. INVESTASI STATUS
@if($prod->cover_image_url) @else
{{ strtoupper(substr($prod->code ?? $prod->name, 0, 2)) }}
@endif
{{ $prod->name }} {{ $prod->code ?? '-' }}
{{ $prod->category ?? 'Reksa Dana' }} {{ (str_starts_with($prod->expected_return ?? '', '+') || str_starts_with($prod->expected_return ?? '', '-')) ? '' : '+' }}{{ $prod->expected_return }}{{ str_contains($prod->expected_return ?? '', '%') ? '' : '%' }} Rp {{ number_format($prod->min_investment, 0, ',', '.') }} @if($prod->is_active) Aktif @else Nonaktif @endif
@else
Belum ada produk investasi yang ditambahkan.
@endif
Investor Baru Mendaftar
Akun yang baru bergabung di platform DBIC
Semua Investor
@if($recentUsers->count() > 0)
@foreach($recentUsers as $user)
{{ strtoupper(substr($user->name, 0, 2)) }}
{{ $user->name }} @if(!empty($user->phone)) {{ $user->phone }} @else {{ $user->email }} @endif
@if($user->status_kyc == 2) Verified @elseif($user->status_kyc == 1) Pending @elseif($user->status_kyc == 3) Rejected @else Unverified @endif {{ $user->created_at->diffForHumans() }}
@endforeach
@else
Belum ada pengguna terdaftar.
@endif
@endsection @section('scripts') @endsection