<?php

declare(strict_types=1);

/*
 * Chill is a software for social workers
 *
 * For the full copyright and license information, please view
 * the LICENSE file that was distributed with this source code.
 */

namespace Chill\PersonBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;

/**
 * Class AdminController.
 */
class AdminController extends AbstractController
{
    #[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/admin/accompanying-course', name: 'chill_accompanying-course_admin_index')]
    public function indexAccompanyingCourseAdminAction(): \Symfony\Component\HttpFoundation\Response
    {
        return $this->render('@ChillPerson/Admin/indexAccompanyingCourse.html.twig');
    }

    #[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/admin/household', name: 'chill_household_admin_index')]
    public function indexHouseholdAdminAction(): \Symfony\Component\HttpFoundation\Response
    {
        return $this->render('@ChillPerson/Admin/indexHousehold.html.twig');
    }

    #[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/admin/person', name: 'chill_person_admin_index')]
    public function indexPersonAdminAction(): \Symfony\Component\HttpFoundation\Response
    {
        return $this->render('@ChillPerson/Admin/indexPerson.html.twig');
    }

    #[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/admin/social-work', name: 'chill_social-work_admin_index')]
    public function indexSocialWorkAdminAction(): \Symfony\Component\HttpFoundation\Response
    {
        return $this->render('@ChillPerson/Admin/indexSocialWork.html.twig');
    }

    /**
     * @return \Symfony\Component\HttpFoundation\RedirectResponse
     */
    #[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/admin/person_redirect_to_main', name: 'chill_person_admin_redirect_to_admin_index', options: [null])]
    public function redirectToAdminIndexAction(): \Symfony\Component\HttpFoundation\RedirectResponse
    {
        return $this->redirectToRoute('chill_main_admin_central');
    }
}
