<?php

namespace App\Http\Controllers\Web\Bo;

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

class DashboardController extends Controller
{
    public function __invoke(BoDashboardMetrics $metrics): View
    {
        return view('bo.dashboard', [
            'metrics' => $metrics->summary(),
        ]);
    }
}
