<?php
namespace App\Controller;
use Hardy\Finder\OxygenIcu;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
#[Route(path: '/oxygen-icu')]
class OxygenIcuController extends AbstractController
{
#[Route(path: '/', name: 'oxygen_icu_index')]
public function index(): Response
{
return $this->render('oxygen_icu/index.html.twig', [
'beds' => (new OxygenIcu())->getAllSummary()
]);
}
#[Route(path: '/by-district', name: 'oxygen_icu_district')]
public function district(): Response
{
return $this->render('oxygen_icu/district.html.twig', [
'beds' => (new OxygenIcu())->getDetailsByDistrictId()
]);
}
#[Route(path: '/by-hospital', name: 'oxygen_icu_hospital')]
public function hospital(): Response
{
return $this->render('oxygen_icu/hospital.html.twig', [
'beds' => (new OxygenIcu())->getDetailsByHospitalId()
]);
}
#[Route(path: '/by-department', name: 'oxygen_icu_department')]
public function department(): Response
{
return $this->render('oxygen_icu/department.html.twig', [
'bed' => (new OxygenIcu())->getDetailsByDepartmentId()
]);
}
}