<?php
namespace Modules\GlobalApplication\Controller;

use Helpers\Ariane\Ariane;
use Skeleton\Controller\Controller;
use Helpers\Trad\Trad;

class ParametrageController extends Controller
{
    public function indexAction() : string
    {
        $trad = $this->getTranslationService();
        $listeMenu[] = [
            'lien' => "window.location.href = '".$this->router->generateUri('Tables.Index.menuIntermediaireTables')."'",
            'titre' => $trad->t('Tables'),
        ];

        $listeMenu[] = [
            'lien' => "window.location.href = '".$this->router->generateUri('Parametrage.Parametrage.index')."'",
            'titre' => $trad->t('Paramétrage'),
        ];

        Ariane::generate(0, $trad->t('Paramétrage'));
        
        return $this->renderer->render('@GlobalApplication/Parametrage/index', [
            'menuActive' => 'Parametrage',
            'menuLeft' => 'Tables',
            'titre' => $trad->t('Tables'),
            'menus' => $listeMenu,
        ]);
    }
}
