@extends('layouts.app')
@section('title', 'Treinamentos - GIGAX ARENA')
@section('page_title', 'Treinamentos')
@section('content')
@php
$selectedType = $selectedType ?? request('type', 'all');
$selectedLevel = $selectedLevel ?? request('level', 'all');
$stats = $stats ?? (object) [
'total_trainings' => 0,
'completed_trainings' => 0,
'avg_score' => 0,
];
$trainings = $trainings ?? collect();
$rankingUrl = \Illuminate\Support\Facades\Route::has('gigax.xp-ranking')
? route('gigax.xp-ranking')
: (\Illuminate\Support\Facades\Route::has('ranking') ? route('ranking') : url('/ranking'));
@endphp
CENTRAL DE EVOLUÇÃO GIGAX
Treinos e preparação
Escolha uma atividade, acompanhe sua evolução e mantenha a rotina competitiva sem sair do padrão do dashboard.
Treinos disponíveis
{{ (int) ($stats->total_trainings ?? 0) }}
catálogo atual
Concluídos
{{ (int) ($stats->completed_trainings ?? 0) }}
histórico do jogador
Pontuação média
{{ (int) ($stats->avg_score ?? 0) }}%
desempenho geral
Níveis
4+
iniciante ao profissional
CATÁLOGO
Painel de treinamentos
Training Board
Filtrar por tipo
Filtrar por nível
@forelse($trainings as $training)
@php
$status = $training->user_status ?? null;
$statusLabel = $status === 'completed'
? 'Concluído'
: ($status === 'in_progress' ? 'Em andamento' : 'Disponível');
@endphp
{{ ($training->type ?? '') === 'aim' ? '◎' : (($training->type ?? '') === 'strategy' ? '♟' : (($training->type ?? '') === 'teamwork' ? '⚔' : '▶')) }}
{{ $statusLabel }}
{{ $training->title }}
{{ \Illuminate\Support\Str::limit($training->description ?? 'Treinamento competitivo GIGAX.', 105) }}
🎯 {{ ucfirst(str_replace('_', ' ', $training->type ?? 'treino')) }}
⭐ {{ ucfirst($training->level ?? 'beginner') }}
⏱ {{ (int) ($training->duration_minutes ?? 0) }} min
{{ $status === 'in_progress' ? 'Continuar treinamento' : 'Abrir treinamento' }}
@empty
▤
Nenhum treinamento encontrado
Tente outro filtro ou aguarde novos conteúdos.
Limpar filtros
@endforelse
@php
$isPaginator =
$trainings instanceof \Illuminate\Contracts\Pagination\Paginator ||
$trainings instanceof \Illuminate\Contracts\Pagination\LengthAwarePaginator;
@endphp
@if($isPaginator && $trainings->hasPages())
@endif
@endsection
@push('styles')
@endpush
@push('scripts')
@endpush