Extra spaces are removed now

This commit is contained in:
Sayan Das 2026-03-30 16:20:25 +05:30
parent b40e49ad61
commit a3f7ff19e6
3 changed files with 3 additions and 38 deletions

View File

@ -7,19 +7,12 @@ use CodeIgniter\Router\RouteCollection;
*/
// $routes->get('/', 'Home::index');
$routes->get('/', 'Auth::login');
$routes->post('/login', 'Auth::loginProcess');
$routes->get('/register', 'Auth::register');
$routes->post('/register', 'Auth::registerProcess');
$routes->get('/logout', 'Auth::logout');
$routes->get('/admin/dashboard', 'Admin::dashboard');
$routes->get('/admin/patients', 'Admin::patients');
$routes->get('/admin/deletePatient/(:num)', 'Admin::deletePatient/$1');
$routes->get('/patient/dashboard', 'Patient::dashboard');
$routes->post('/book-appointment', 'Patient::bookAppointment');

View File

@ -12,19 +12,11 @@ class Admin extends BaseController
if ($r = $this->requireRole('admin')) {
return $r;
}
$patientModel = new PatientModel();
$patientModel = new PatientModel();
$data['totalPatients'] = $patientModel->countAll();
return view('admin/dashboard', $data);
}
public function patients()
{
if ($r = $this->requireRole('admin')) {
@ -44,7 +36,7 @@ class Admin extends BaseController
return view('admin/patients', $data);
}
public function deletePatient($id)
{
if ($r = $this->requireRole('admin')) {

View File

@ -1,7 +1,3 @@
/**
* Doctor Appointment System global styles
* Load after Bootstrap.
*/
:root {
--app-primary: #0d9488;
@ -18,18 +14,12 @@
--app-shadow-lg: 0 1rem 2rem rgba(15, 23, 42, 0.1);
}
/* -------------------------------------------------------------------------
Base
------------------------------------------------------------------------- */
body.app-body {
font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
color: var(--app-text);
margin: 0;
}
/* -------------------------------------------------------------------------
Auth (login / register)
------------------------------------------------------------------------- */
.app-page--auth {
min-height: 100vh;
display: flex;
@ -58,7 +48,6 @@ body.app-body {
letter-spacing: -0.02em;
}
/* Primary CTA — always visible */
.btn-app-primary {
border-radius: 999px;
font-weight: 600;
@ -86,7 +75,6 @@ a.btn-app-outline {
display: inline-block;
}
/* Secondary link button — visible on white (fixes outline-light issue) */
.btn-app-secondary {
display: inline-block;
width: 100%;
@ -113,13 +101,11 @@ a.btn-app-outline {
font-size: 0.9rem;
}
/* Alerts — no empty box; compact */
.app-alert {
border-radius: 10px;
border: none;
}
/* Remove default browser red outline on invalid controls until submit */
.app-form .form-control:invalid {
box-shadow: none;
}
@ -128,9 +114,6 @@ a.btn-app-outline {
border-color: #dc3545;
}
/* -------------------------------------------------------------------------
Dashboard shells
------------------------------------------------------------------------- */
.app-page--patient {
min-height: 100vh;
padding-bottom: 2rem;
@ -204,7 +187,6 @@ a.btn-app-outline {
background: #0f3d3a;
}
/* Secondary primary (e.g. admin dashboard) */
.btn-app-accent {
border-radius: 999px;
font-weight: 600;
@ -223,13 +205,11 @@ a.btn-app-outline {
background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
}
/* Admin stat cards */
.app-stat-card {
border-radius: var(--app-radius);
border: none;
}
/* Tables */
.app-table-wrap {
background: var(--app-surface);
border-radius: var(--app-radius);