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

Welcome back, {{ $user->name }}! 👋

Here's your earning summary

Available Balance

${{ number_format($user->balance, 2) }}

Manage Wallet →

Total Earned

${{ number_format($totalEarned, 2) }}

Lifetime earnings

Today's Surveys

{{ $completedToday }}/{{ $dailyLimit }}

{{ $remainingToday }} remaining today

Referral Earnings

${{ number_format($referralEarnings, 2) }}

{{ $referralCount }} referrals

Recent Completions

View All
@if($recentCompletions->isEmpty())

No surveys completed yet.

Browse Surveys
@else
@foreach($recentCompletions as $c)

{{ $c->survey->title ?? 'Survey' }}

{{ $c->created_at->diffForHumans() }}

+${{ number_format($c->reward, 2) }}
@endforeach
@endif

Current Plan

@if($user->activePlan)
{{ $user->activePlan->plan->name }}

Expires {{ $user->activePlan->expires_at->format('M d, Y') }}

{{ $user->activePlan->plan->daily_survey_limit }} surveys/day

@else
Free Plan

3 surveys per day

Upgrade Plan
@endif
@endsection