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.
38 lines
770 B
PHP
38 lines
770 B
PHP
<?php
|
|
|
|
namespace App\Controllers\Pages;
|
|
|
|
use App\Controllers\BaseController;
|
|
|
|
class PhlebotomistController extends BaseController
|
|
{
|
|
|
|
public function __construct()
|
|
{
|
|
helper(['url', 'form', 'text']);
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$config = require APPPATH . 'Views/shared/config.php';
|
|
return view('phlebo/index', ['roleConfig' => $config['phlebo']]);
|
|
}
|
|
|
|
public function indexV2()
|
|
{
|
|
$config = require APPPATH . 'Views/shared/config.php';
|
|
return view('v2/phlebo/index', ['roleConfig' => $config['phlebo']]);
|
|
}
|
|
|
|
|
|
public function collect()
|
|
{
|
|
$config = require APPPATH . 'Views/shared/config.php';
|
|
|
|
return view('phlebo/collect', [
|
|
'roleConfig' => $config['phlebo']
|
|
]);
|
|
}
|
|
|
|
}
|