@extends('layouts.app') @section('title', __('Overview')) @section('content')
@php $mobileShortcuts = [ ['label' => __('Sales report'), 'route' => 'reports', 'icon' => 'chart', 'tone' => 'text-sky-600', 'tile' => 'bg-sky-50'], ['label' => __('Payment history'), 'route' => 'member.payments.index', 'icon' => 'receipt', 'tone' => 'text-emerald-600', 'tile' => 'bg-emerald-50'], ['label' => __('Wallet transactions'), 'route' => 'wallet', 'icon' => 'wallet', 'tone' => 'text-amber-600', 'tile' => 'bg-amber-50'], ['label' => __('Matching bonus'), 'route' => 'matching-bonus', 'icon' => 'transfer', 'tone' => 'text-purple-600', 'tile' => 'bg-purple-50'], ['label' => __('Binary tree'), 'route' => 'tree', 'icon' => 'tree', 'tone' => 'text-teal-600', 'tile' => 'bg-teal-50'], ['label' => __('My team'), 'route' => 'team', 'icon' => 'users', 'tone' => 'text-rose-600', 'tile' => 'bg-rose-50'], ['label' => __('Monthly leaderboard'), 'route' => 'leaderboard', 'icon' => 'chart', 'tone' => 'text-cyan-600', 'tile' => 'bg-cyan-50'], ['label' => __('Rank guide'), 'route' => 'ranks', 'icon' => 'sparkles', 'tone' => 'text-violet-600', 'tile' => 'bg-violet-50'], ['label' => __('Withdraw'), 'route' => 'withdrawals', 'icon' => 'transfer', 'tone' => 'text-orange-600', 'tile' => 'bg-orange-50'], ['label' => __('Rank progress'), 'route' => 'rank.progress', 'icon' => 'sparkles', 'tone' => 'text-fuchsia-600', 'tile' => 'bg-fuchsia-50'], ]; $mobileFeatures = [ ['label' => __('My team'), 'route' => 'team', 'icon' => 'users', 'tone' => 'text-emerald-600'], ['label' => __('Monthly leaderboard'), 'route' => 'leaderboard', 'icon' => 'chart', 'tone' => 'text-amber-600'], ['label' => __('Rank guide'), 'route' => 'ranks', 'icon' => 'sparkles', 'tone' => 'text-violet-600'], ['label' => __('Team performance'), 'route' => 'team.performance', 'icon' => 'chart', 'tone' => 'text-sky-600'], ['label' => __('Wallet transactions'), 'route' => 'wallet', 'icon' => 'wallet', 'tone' => 'text-purple-600'], ['label' => __('Binary tree'), 'route' => 'tree', 'icon' => 'tree', 'tone' => 'text-rose-600'], ['label' => __('Payment history'), 'route' => 'member.payments.index', 'icon' => 'receipt', 'tone' => 'text-blue-600'], ['label' => __('Request withdrawal'), 'route' => 'withdrawals', 'icon' => 'transfer', 'tone' => 'text-cyan-600'], ['label' => __('Sales report'), 'route' => 'reports', 'icon' => 'chart', 'tone' => 'text-indigo-600'], ['label' => __('My profile'), 'route' => 'profile.show', 'icon' => 'user', 'tone' => 'text-orange-600'], ['label' => __('Referral link'), 'route' => 'referrals.index', 'icon' => 'user', 'tone' => 'text-teal-600'], ['label' => __('Matching bonus'), 'route' => 'matching-bonus', 'icon' => 'sparkles', 'tone' => 'text-fuchsia-600'], ]; @endphp
{{ strtoupper(substr($user->name, 0, 1)) }}

{{ $user->name }}

{{ __('Member ID') }}: {{ $user->member_id ?: '—' }}

@foreach($mobileShortcuts as $shortcut) {{ $shortcut['label'] }} @endforeach

{{ __('Explore more features') }}

{{ __('Wallet balance') }}

৳{{ number_format($wallet?->balance ?? 0, 2) }}

{{ __('View wallet') }}

{{ __('Personal sales') }}

৳{{ number_format($sales, 2) }}

{{ __('Team sales') }}

৳{{ number_format($teamLeaderboard?->monthly_team_sales ?? 0, 2) }}

{{ __('Team performance') }}

{{ __('Your current binary volume and matching bonus') }}

{{ __('Left volume') }}

{{ number_format($leftVol) }}

{{ __('Right volume') }}

{{ number_format($rightVol) }}

{{ __('Matching bonus') }}

৳{{ number_format($matching, 2) }}

{{ __('Rank progress') }}

{{ number_format($progress, 0) }}%

{{ __('View team performance') }}
@endsection