@extends('layouts.app') @section('title', 'Dashboard') @section('content')

🎯 Your Gaming Dashboard

Welcome back, {{ auth()->user()->username }}!

Level
{{ auth()->user()->level }}
XP
{{ number_format(auth()->user()->xp ?? 0) }}
Wallet
₦{{ number_format(auth()->user()->wallet_balance ?? 0, 2) }}
@if($userStats)

Your Gaming Stats

{{ $userStats['total_challenges'] }}
Battles Fought
{{ $userStats['wins'] }}
Victories
@php $winRate = $userStats['total_challenges'] > 0 ? ($userStats['wins'] / $userStats['total_challenges']) * 100 : 0; @endphp
{{ number_format($winRate, 1) }}% Win Rate
₦{{ number_format($userStats['total_earnings']) }}
Total Earnings
@if($userStats['is_premium'])
⭐ Premium Boost Active
@endif
{{ $userStats['role_display'] }}
Current Role
@for($i = 1; $i <= 5; $i++)
@endfor
@if($moderatorStats)

Moderator Dashboard

{{ $moderatorStats['pending_disputes'] }}
Pending Disputes
{{ $moderatorStats['resolved_disputes'] }}
Resolved
{{ $moderatorStats['unassigned_disputes'] }}
Unassigned
@endif
@endif

Quick Actions

Jump into action with these popular features

@if(auth()->user()->role->canCreateContent())
⚔️

Create Challenge

Challenge other players to 1v1 matches

Start Challenge
@endif
🔍

Browse Challenges

Find and accept challenges from other players

Explore Challenges
🏆

Tournaments

Compete in organized tournaments

View Tournaments
💰

My Wallet

Manage your funds and transactions

Manage Wallet
🏅

Leaderboards

See how you rank against other players

View Rankings
👥

Friends

Connect with other gamers

My Friends
@if($pendingTournamentInvites->count() > 0 || $pendingChallengeInvites->count() > 0 || $pendingFriendRequests->count() > 0)

Pending Notifications

@if($pendingTournamentInvites->count() > 0)

🏆 Tournament Invites

@foreach($pendingTournamentInvites as $invite)
{{ $invite->tournament->name }}
by {{ $invite->inviter->name }}
@endforeach
@endif @if($pendingChallengeInvites->count() > 0)

⚔️ Challenge Invites

@foreach($pendingChallengeInvites as $invite)
{{ $invite->challenge->title }}
by {{ $invite->inviter->name }}
@endforeach
@endif @if($pendingFriendRequests->count() > 0)

👥 Friend Requests

@foreach($pendingFriendRequests as $request)
{{ $request->user->name }}
wants to be friends
@endforeach
@endif
@endif @if($userChallenges->count() > 0 || $userTournaments->count() > 0)

Your Active Competitions

@if($userChallenges->count() > 0)

⚔️ Active Challenges

@foreach($userChallenges as $challenge)
{{ $challenge->title }}
{{ $challenge->game->name ?? 'Game' }}
₦{{ number_format($challenge->wager_amount) }}
{{ ucfirst($challenge->status) }}
@endforeach View all challenges →
@endif @if($userTournaments->count() > 0)

🏆 Upcoming Tournaments

@foreach($userTournaments as $tournament)
{{ $tournament->name }}
{{ $tournament->game->name ?? 'Game' }}
₦{{ number_format($tournament->prize_pool) }}
{{ ucfirst($tournament->status) }}
@endforeach View all tournaments →
@endif
@endif @if($recentActivity->count() > 0)

Recent Activity

@foreach($recentActivity as $activity)
⚔️
Challenge: {{ $activity->title }}
vs {{ $activity->creator_id === auth()->id() ? $activity->accepter?->name : $activity->creator?->name }}
₦{{ number_format($activity->wager_amount) }}
{{ $activity->updated_at->diffForHumans() }}
@endforeach
@endif
@endsection