@extends('dashboard.layouts.main') @section('title', 'Core Mining ⛏️- AI Gold Mining ⛏️') @push('styles') @endpush @section('content')

Victory Reward History

Unlock higher levels and earn bigger rewards through referrals and team building

Your Current Status

Track your progress towards the next level and unlock exclusive rewards

@if($currentRewardLevel) Level {{ $currentRewardLevel->level }} @elseif($currentWorkingLevel) Level {{ $currentWorkingLevel->level }} @else Level 0 @endif
Current Rank
@if($currentRewardLevel) {{ $currentRewardLevel->level_name }} Achieved @elseif($currentWorkingLevel) Working on {{ $currentWorkingLevel->level_name }} @else Complete goals to advance @endif

Progress to Next Goal

{{ $nextLevel ? $nextLevel->level_name : 'All Goals Completed!' }}
@if($nextLevel && $nextLevelProgress)
{{ number_format($nextLevelProgress['progress_percentage'], 1) }}%
${{ number_format($nextLevelProgress['current_progress'], 2) }} / ${{ rtrim(rtrim(number_format($nextLevel->investment_required, 2, '.', ''), '0'), '.') }}
@if($nextLevelProgress['progress_percentage'] >= 100) Level Complete! @elseif($nextLevelProgress['progress_percentage'] >= 75) Almost there! Keep going! @else Keep building your team! @endif
@else
100%
All Levels Complete!
Congratulations! You've achieved all reward levels!
@endif

Next Goal

@if($nextLevel && $nextLevelProgress)
{{ $nextLevel->level_name }}
Team Progress: ${{ number_format($nextLevelProgress['current_progress'], 2) }}
@if($nextLevelProgress['remaining_needed'] > 0) ${{ number_format($nextLevelProgress['remaining_needed'], 2) }} more needed @else Level Complete! @endif
@else
All Goals Completed!
Congratulations! You've achieved all reward levels!
@endif
@if($currentRewardLevel) Level {{ $currentRewardLevel->level }} @elseif($currentWorkingLevel) Level {{ $currentWorkingLevel->level }} @else Level 0 @endif
Progress to next goal {{ $nextLevel && $nextLevelProgress ? number_format($nextLevelProgress['progress_percentage'], 1) . '%' : '100%' }}
{{ $nextLevel ? $nextLevel->level_name : 'All Goals Completed!' }} @if($nextLevel && $nextLevelProgress) @if($nextLevelProgress['progress_percentage'] >= 100) Complete! @elseif($nextLevelProgress['progress_percentage'] >= 75) Almost there! @else In Progress @endif @else Complete! @endif
Next Goal {{ $nextLevel ? $nextLevel->level_name : 'All Complete!' }}
@if($nextLevel && $nextLevelProgress)
Team Progress
${{ number_format($nextLevelProgress['current_progress'], 2) }}
@if($nextLevelProgress['remaining_needed'] > 0) ${{ number_format($nextLevelProgress['remaining_needed'], 2) }} more needed @else Level Complete! @endif ${{ rtrim(rtrim(number_format($nextLevel->investment_required, 2, '.', ''), '0'), '.') }}
@else
All Levels Achieved!
@endif

Rewards Level

Explore all available levels and their exclusive rewards

@foreach($rewardLevels as $levelData) @php $level = $levelData['level']; $isAchieved = $levelData['is_achieved']; $isClaimed = isset($levelData['is_claimed']) && $levelData['is_claimed']; $progressPercentage = $levelData['progress_percentage']; $currentProgress = $levelData['current_progress']; $remainingNeeded = $levelData['remaining_needed']; // Determine icon color class $iconColorClass = 'goals-level-icon-gold-new'; if ($level->icon_color === 'silver') { $iconColorClass = 'goals-level-icon-silver-new'; } elseif ($level->icon_color === 'purple') { $iconColorClass = 'goals-level-icon-purple-new'; } elseif ($level->icon_color === 'red') { $iconColorClass = 'goals-level-icon-red-new'; } @endphp @php $isCurrent = isset($levelData['is_current']) && $levelData['is_current']; @endphp
@if($isClaimed)
Archived
@elseif($isAchieved)
Ready to Claim
@elseif($isCurrent)
Current
@endif @if($level->is_premium)
Premium
@endif

{{ $level->level_name }}

Level {{ $level->level }}
Total Referral Investment ${{ rtrim(rtrim(number_format($level->investment_required, 2, '.', ''), '0'), '.') }}
Reward ${{ rtrim(rtrim(number_format($level->reward_amount, 2, '.', ''), '0'), '.') }}
@if(!$isClaimed)
@if($isCurrent)
{{ number_format($progressPercentage, 1) }}%
@elseif($isAchieved)
Ready to Claim
@endif
@endif @if($isAchieved && !$isClaimed)
@endif
@endforeach
@push('scripts') @endpush @endsection