gdc_cmod/app/Controllers/Pages/LabController.php
mahdahar 2aa2ef50f2 feat: add v2 dashboards and server-side request pagination
Introduces v2 role routes/views and moves request list filtering, sorting, and pagination to the backend for better performance. Also switches shared pages to a generated Tailwind CSS bundle with supporting npm assets.
2026-04-02 13:02:29 +07:00

34 lines
669 B
PHP

<?php
namespace App\Controllers\Pages;
use App\Controllers\BaseController;
class LabController extends BaseController
{
public function __construct()
{
helper(['url', 'form', 'text']);
}
public function index()
{
$config = require APPPATH . 'Views/shared/config.php';
return view('lab/index', ['roleConfig' => $config['lab']]);
}
public function indexV2()
{
$config = require APPPATH . 'Views/shared/config.php';
return view('v2/lab/index', ['roleConfig' => $config['lab']]);
}
public function validationPage()
{
$config = require APPPATH . 'Views/shared/config.php';
return view('lab/validate', ['roleConfig' => $config['lab']]);
}
}