<?php

namespace App\Http\Controllers\Web;

use App\Http\Controllers\Controller;
use App\Services\Web\WebDashboardService;
use Illuminate\Http\Request;
use Illuminate\View\View;

final class DashboardController extends Controller
{
    public function __construct(
        private readonly WebDashboardService $dashboard,
    ) {}

    public function index(Request $request): View
    {
        return view('web.dashboard.index', [
            'overview' => $this->dashboard->overview($request->user()),
        ]);
    }
}
