<?php
/**
 * Gamification Profile
 * GET /v1/gamification/profile
 * Returns user's points, level, badges, and progress.
 */

use App\Services\GamificationService;
use App\Middleware\AuthMiddleware;

$decoded = AuthMiddleware::check();

$profile = GamificationService::getProfile($decoded['user_id'], $decoded['tenant_id']);

json_success($profile, 'ملفك التنافسي');
