@extends('layouts.app') @section('title', 'Dashboard') @section('content') {{-- Welcome Header --}}

Welcome back, {{ $user->username }} 👋

Let's continue your earning journey

{{-- Top Widgets (Flex/Grid) --}}
{{-- Today's Progress Card --}}
Today's Progress
@money($stats['today_earnings']) / @money($dailyGoal)
Daily Goal Daily
@php $progress = min(100, ($stats['today_earnings'] / max($dailyGoal, 0.01)) * 100); @endphp
{{-- Day Streak Card --}}
{{ (int) ($user->daily_bonus_streak ?? 0) }}
Day Streak
{{-- Level Card --}}
Level 8
Pro Gamer
1,250 / 3,000 XP
{{-- Stat Cards (Grid of 4) --}}
@money($stats['balance'])
Wallet Balance
@money($stats['today_earnings'])
Today's Earnings
@money($stats['total_earnings'])
Total Earned
{{ $stats['referral_count'] }}
Total Referrals
{{-- Recommended For You --}}

Recommended For You

View all
@if($recommended->isEmpty())
No offers available yet.
@else
@foreach($recommended as $offer)
@if($offer->thumbnail) {{ $offer->name }} @else @endif
{{ $offer->name }}
{{ $offer->os === 'android' ? 'Android' : ($offer->os === 'ios' ? 'iOS' : 'Desktop') }}
@money($offer->payout)
@endforeach
@endif
{{-- Recent Activity & Top Offerwalls --}}
{{-- Recent Activity (Left Column) --}}

Recent Activity

View all
@if($recentActivity->isEmpty())

No recent activity.

@else
@foreach($recentActivity as $act)
Offer Completion
Reward credited
{{ $act->status === 'credited' ? '+' : '-' }}@money(abs($act->user_reward))
{{ str_replace(' ago', '', $act->created_at->diffForHumans()) }} ago
@endforeach
@endif
{{-- Top Offerwalls (Right Column) --}}

Top Offerwalls

View all
@endsection