@extends('frontend.layouts.app') @push('styles') @endpush @section('content')
@include('frontend.partials.mobile.header') @include('frontend.partials.mobile.sidebar-menu')
Welcome, {{ Auth::user()->username }}
QR Code

{{ $totalReferral }} Total Downline

IDR {{ number_format($totalAllBonus, 0, ',', '.') }} Total Pendapatan

Referral Details

{{ $startDateFmt }} — {{ $endDateFmt }}

Referral Incentive Summary

@forelse($bonusData as $index => $b)
{{ $index + 1 }}. {{ $b['username'] }}
IDR {{ number_format($b['jumlah'], 0, ',', '.') }}
@empty
No data
@endforelse

Referral List

@foreach($downlineData as $index => $d) @endforeach
No. Username Turnover Win/Lose Register Date Last Login First Depo Date Last Depo Date
{{ $index + 1 }} {{ $d->username }} {{ number_format($d->turnover, 0, ',', '.') }} {{ number_format($d->winlose, 0, ',', '.') }} {{ $d->register_date ? date('M d, Y h:i:s A', strtotime($d->register_date)) : '-' }} {{ $d->last_login ? date('M d, Y h:i:s A', strtotime($d->last_login)) : '-' }} {{ $d->first_depo ? date('M d, Y h:i:s A', strtotime($d->first_depo)) : '-' }} {{ $d->last_depo ? date('M d, Y h:i:s A', strtotime($d->last_depo)) : '-' }}
@include('frontend.partials.mobile.bottom-nav')
@include('frontend.partials.desktop.header')

Saldo

IDR {{ number_format(Auth::user()->balance ?? 0, 0, ',', '.') }}
QR Code

{{ $totalReferral }} Total Downline

IDR {{ number_format($totalAllBonus, 0, ',', '.') }} Total Pendapatan


{{ $startDateFmt }} — {{ $endDateFmt }}

Referral Incentive Summary

@forelse($bonusData as $index => $b)
{{ $index + 1 }}. {{ $b['username'] }}
IDR {{ number_format($b['jumlah'], 0, ',', '.') }}
@empty
No data
@endforelse

Referral List

@foreach($downlineData as $index => $d) @endforeach
No. Username Turnover Win/Lose Register Date Last Login First Depo Date Last Depo Date
{{ $index + 1 }} {{ $d->username }} {{ number_format($d->turnover, 0, ',', '.') }} {{ number_format($d->winlose, 0, ',', '.') }} {{ $d->register_date ? date('M d, Y h:i:s A', strtotime($d->register_date)) : '-' }} {{ $d->last_login ? date('M d, Y h:i:s A', strtotime($d->last_login)) : '-' }} {{ $d->first_depo ? date('M d, Y h:i:s A', strtotime($d->first_depo)) : '-' }} {{ $d->last_depo ? date('M d, Y h:i:s A', strtotime($d->last_depo)) : '-' }}
@include('frontend.partials.desktop.footer')
@endsection @push('scripts') @endpush