<?php

declare(strict_types=1);

namespace App\Http\Controllers\Backend\Moduly;

use App\Http\Controllers\Controller;
use Nwidart\Modules\Facades\Module;

/**
 * Class ZoznamController
 *
 * @package App\Http\Controllers\Backend\Moduly
 */
final class ZoznamController extends Controller
{
    /**
     * @return void
     */
    public function __invoke()
    {
        $moduly = Module::toCollection();

        return view('pages.sprava.moduly.index')->withModuly($moduly);
    }
}
