@extends('layout') @section('styles') @endsection @section('content')

📊 Admin Kota Dashboard

{{ $admin->name }}

{{ $totalTalents }}

Total Talent

{{ $bookings->total() }}

Total Mulai Sesi

{{ number_format($totalWalletBalance, 0) }}

Total Wallet Balance (Coin)

{{ $bookings->where('status', 'completed')->count() ?? 0 }}

Completed Mulai Sesi

📈 Commission Split Report
Platform fee: {{ $commissionReport['platform_fee_percent'] ?? 0 }}%
Export CSV
Total Revenue

{{ number_format($commissionReport['total_revenue'] ?? 0, 0) }}

Platform Fee Total

{{ number_format($commissionReport['platform_fee_total'] ?? 0, 0) }}

Admin Kota Share (total)

{{ number_format(array_sum(array_map(function($l){ return $l['admin_kota_amount']; }, $commissionReport['levels'] ?? [])), 0) }}


@foreach($commissionReport['levels'] ?? [] as $lvl => $data) @endforeach
Level Jumlah Talent Revenue Platform Fee Admin Kota % Admin Kota Amount
{{ \App\Models\User::levelLabel($lvl) }} {{ $data['talent_count'] }} {{ number_format($data['revenue'], 0) }} {{ number_format($data['platform_fee'], 0) }} {{ $data['admin_kota_share_percent'] }}% {{ number_format($data['admin_kota_amount'], 0) }}
👥 Daftar Talent ({{ $totalTalents }}) Lihat Semua
@forelse($talents as $talent) @empty @endforelse
Nama Email Level Aksi
{{ $talent->name }} {{ $talent->email }} {{ $talent->getTalentLevelLabel() }} Detail
Tidak ada talent
📅 Mulai Sesi Terbaru Lihat Semua
@forelse($bookings->take(5) as $booking) @empty @endforelse
Customer Talent Status Tanggal
{{ $booking->customer->name ?? 'N/A' }} {{ $booking->talent->name ?? 'N/A' }} @if($booking->status === 'completed') Selesai @elseif($booking->status === 'approved') Disetujui @elseif($booking->status === 'pending') Pending @elseif($booking->status === 'cancelled') Dibatalkan @else {{ $booking->status }} @endif {{ $booking->created_at->format('d M') }}
Tidak ada mulai sesi
💰 Wallet Talent Lihat Detail
@forelse($walletStats as $stat) @empty @endforelse
Talent Balance (Coin) Persentase Total
{{ $stat['talent_name'] }} {{ number_format($stat['balance'], 0) }} @if($totalWalletBalance > 0)
{{ number_format(($stat['balance'] / $totalWalletBalance) * 100, 1) }}%
@else N/A @endif
Tidak ada data wallet
@endsection