@extends('layouts.app') @section('title','Dashboard Admin - GIGAX ARENA') @section('page_title','Dashboard Admin') @php use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Schema; $activeMatches = Schema::hasTable('mix_training_matches') ? DB::table('mix_training_matches')->whereIn('status',['waiting','ready_check','veto','in_progress'])->whereNull('ended_at')->count() : 0; $matchesToday = Schema::hasTable('mix_training_matches') && Schema::hasColumn('mix_training_matches','created_at') ? DB::table('mix_training_matches')->whereDate('created_at', today())->count() : 0; $usersTotal = Schema::hasTable('users') ? DB::table('users')->count() : 0; $usersOnline = Schema::hasTable('users') && Schema::hasColumn('users','is_online') ? DB::table('users')->where('is_online',1)->count() : 0; $adminLogs = Schema::hasTable('admin_action_logs') ? DB::table('admin_action_logs')->count() : 0; $queuePlayers = Schema::hasTable('mix_queue_players') ? DB::table('mix_queue_players')->count() : 0; @endphp @push('styles') @endpush @section('content')
Resumo do sistema. O gerenciamento detalhado de partidas fica em uma página separada.