<?php

namespace App\Http\Controllers\Api;

use App\Http\Controllers\Controller;
use App\Services\BoDashboardMetrics;
use Illuminate\Http\JsonResponse;

class AdminDashboardController extends Controller
{
    public function __invoke(BoDashboardMetrics $metrics): JsonResponse
    {
        return response()->json([
            'data' => $metrics->summary(),
        ]);
    }
}
