clqms-be/app/Controllers/PagesController.php
mahdahar cb4181dbff refactor: restructure application architecture and consolidate controllers
- Consolidate page controllers into unified PagesController
- Remove deprecated V2 pages, layouts, and controllers (AuthPage, DashboardPage, V2Page)
- Add Edge resource with migration and model (EdgeResModel)
- Implement new main_layout.php for consistent page structure
- Reorganize patient views into dedicated module with dialog form
- Update routing configuration in Routes.php
- Enhance AuthFilter for improved authentication handling
- Clean up unused V2 assets (CSS, JS) and legacy images
- Update README.md with latest project information

This refactoring improves code organization, removes technical debt, and
establishes a cleaner foundation for future development.
2025-12-29 16:57:46 +07:00

68 lines
1.3 KiB
PHP

<?php
namespace App\Controllers;
/**
* PagesController - Serves view pages
*
* This controller only returns views. No business logic.
* All data is fetched via API calls from the frontend.
*/
class PagesController extends BaseController
{
/**
* Dashboard page
*/
public function dashboard()
{
return view('dashboard/dashboard_index', [
'pageTitle' => 'Dashboard',
'activePage' => 'dashboard'
]);
}
/**
* Patients page
*/
public function patients()
{
return view('patients/patients_index', [
'pageTitle' => 'Patients',
'activePage' => 'patients'
]);
}
/**
* Lab Requests page
*/
public function requests()
{
return view('requests/requests_index', [
'pageTitle' => 'Lab Requests',
'activePage' => 'requests'
]);
}
/**
* Settings page
*/
public function settings()
{
return view('settings/settings_index', [
'pageTitle' => 'Settings',
'activePage' => 'settings'
]);
}
/**
* Login page
*/
public function login()
{
return view('auth/login', [
'pageTitle' => 'Login',
'activePage' => ''
]);
}
}