<?php

namespace Modules\Finance\Http\Controllers;

use App\Http\Controllers\Controller;
use Illuminate\View\View;
use Modules\Finance\Clients\FinanceModuleClient;

class DashboardController extends Controller
{
    public function __invoke(FinanceModuleClient $finance): View
    {
        $this->authorize('finance.dashboard.view');

        return view('finance::dashboard.index', $finance->dashboard());
    }
}
