@extends('layouts.app') @section('title', 'My Dashboard - Game World') @push('styles') @endpush @section('content')

{{ $stats['total_games'] }}

{{ __('Available Games') }}

{{ $stats['total_categories'] }}

{{ __('Categories') }}

{{ $stats['total_posts'] }}

{{ __('Blog Posts') }}

{{ count($stats['class_levels']) }}

{{ __('Class Levels') }}

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

{{ __('Your Games Library') }}

{{ __('All') }} @foreach($userCategories->take(3) as $category) {{ Str::limit($category->name, 10) }} @endforeach {{ __('Featured') }}
@if($featuredGames->count() > 0) @foreach($featuredGames as $game)
@if($game->thumbnail)
{{ $game->title }} @if($game->is_featured)
{{ __('Featured') }}
@endif
@else
@if($game->is_featured)
{{ __('Featured') }}
@endif
@endif
{{ $game->title }}

{{ Str::limit($game->description, 80) }}

{{ $game->plays_count }} {{ __('plays') }} {{ $game->category->name }}
{{ __('Difficulty') }}: @for($i = 1; $i <= 5; $i++) @endfor
@endforeach @endif @foreach($allUserGames->whereNotIn('id', $featuredGames->pluck('id'))->take(6) as $game)
@if($game->thumbnail)
{{ $game->title }} @if($game->is_featured)
{{ __('Featured') }}
@endif
@else
@if($game->is_featured)
{{ __('Featured') }}
@endif
@endif
{{ $game->title }}

{{ Str::limit($game->description, 80) }}

{{ $game->plays_count }} {{ __('plays') }} {{ $game->category->name }}
{{ __('Difficulty') }}: @for($i = 1; $i <= 5; $i++) @endfor
@endforeach
@endif @if($userCategories->count() > 0)

{{ __('Your Learning Categories') }}

@foreach($userCategories as $index => $category)
@php $icons = ['fas fa-gamepad', 'fas fa-puzzle-piece', 'fas fa-brain', 'fas fa-rocket', 'fas fa-star', 'fas fa-trophy', 'fas fa-heart', 'fas fa-magic']; $iconClass = $icons[$index % count($icons)]; @endphp
{{ $category->name }}

{{ $category->class_level }}

{{ $category->games_count }} {{ __('games') }}

{{ __('Explore') }}
@endforeach
@endif @if($recentPosts->count() > 0)

{{ __('Latest Updates for You') }}

@foreach($recentPosts as $post)
@if($post->featured_image) {{ $post->title }} @endif
{{ $post->category->name }} @if($post->is_featured) {{ __('Featured') }} @endif
{{ $post->title }}

{{ Str::limit($post->excerpt ?: strip_tags($post->content), 100) }}

{{ $post->author->name }}
{{ $post->published_at->format('M d, Y') }}
@endforeach
@endif @if($userCategories->count() == 0)

{{ __('No Categories Assigned') }}

{{ __('Please contact your administrator to assign categories to your account.') }}

{{ __('View Account Details') }}
@endif
@push('scripts') @endpush @endsection