diff --git a/app/Controllers/Api/v1/DoctorApi.php b/app/Controllers/Api/v1/DoctorApi.php index 0ee5208..402f773 100644 --- a/app/Controllers/Api/v1/DoctorApi.php +++ b/app/Controllers/Api/v1/DoctorApi.php @@ -823,41 +823,47 @@ class DoctorApi extends BaseController $allTrackers = array_merge($docTokens, $deptTokens); // 3. Hospital Advertisements & Doctor Showcase Slides - $ads = [ - [ - 'id' => 1, + $ads = []; + $adId = 1; + + // Dynamic Doctor Profile Slides for all doctors on duty + foreach ($docTokens as $dt) { + $ads[] = [ + 'id' => $adId++, 'type' => 'doctor_profile', 'title' => 'Our Medical Experts', - 'doctor_name' => $docTokens[0]['name'] ?? 'Dr. Prakash Chandwani', - 'specialization' => $docTokens[0]['specialization'] ?? 'Cardiologist & Physician', - 'designation' => 'Chief Managing Director & Senior Consultant', + 'doctor_name' => $dt['name'], + 'specialization' => $dt['specialization'], + 'designation' => $dt['designation'] ?? 'Consultant Doctor', 'image_url' => base_url('assets/img/profile-img.jpg'), - 'description' => 'Available for OPD Consultations (10:00 AM - 4:00 PM). Specializing in Advanced Heart Care & Critical Management.' - ], - [ - 'id' => 2, - 'type' => 'hospital_ad', - 'title' => 'In-House 24/7 Pharmacy', - 'tagline' => '100% Genuine Medicines & Fastest Counter Dispense', - 'image_url' => base_url('assets/img/slides-1.jpg'), - 'description' => 'Discounts on prescription billing. Doorstep delivery available for senior citizens and admitted patients.' - ], - [ - 'id' => 3, - 'type' => 'hospital_ad', - 'title' => 'Advanced Radiology & Imaging Center', - 'tagline' => 'Digital X-Ray, 32-Slice CT Scan & 4D Ultrasound', - 'image_url' => base_url('assets/img/slides-2.jpg'), - 'description' => 'Accurate high-precision diagnostic imaging with immediate digital report generation.' - ], - [ - 'id' => 4, - 'type' => 'hospital_ad', - 'title' => '24x7 Emergency & Critical Care ICU', - 'tagline' => 'Fully Equipped Ventilators, Cardiac Monitors & Trauma Team', - 'image_url' => base_url('assets/img/slides-3.jpg'), - 'description' => 'Round-the-clock emergency medical services with dedicated ICU & Operation Theater.' - ] + 'description' => 'Available for OPD Consultations (' . $dt['room'] . '). Specializing in ' . $dt['specialization'] . '.' + ]; + } + + // Hospital Service Advertisements + $ads[] = [ + 'id' => $adId++, + 'type' => 'hospital_ad', + 'title' => 'In-House 24/7 Pharmacy', + 'tagline' => '100% Genuine Medicines & Fastest Counter Dispense', + 'image_url' => base_url('assets/img/slides-1.jpg'), + 'description' => 'Discounts on prescription billing. Doorstep delivery available for senior citizens and admitted patients.' + ]; + $ads[] = [ + 'id' => $adId++, + 'type' => 'hospital_ad', + 'title' => 'Advanced Radiology & Imaging Center', + 'tagline' => 'Digital X-Ray, 32-Slice CT Scan & 4D Ultrasound', + 'image_url' => base_url('assets/img/slides-2.jpg'), + 'description' => 'Accurate high-precision diagnostic imaging with immediate digital report generation.' + ]; + $ads[] = [ + 'id' => $adId++, + 'type' => 'hospital_ad', + 'title' => '24x7 Emergency & Critical Care ICU', + 'tagline' => 'Fully Equipped Ventilators, Cardiac Monitors & Trauma Team', + 'image_url' => base_url('assets/img/slides-3.jpg'), + 'description' => 'Round-the-clock emergency medical services with dedicated ICU & Operation Theater.' ]; return $this->response->setJSON([ diff --git a/public/App/Queue/index.html b/public/App/Queue/index.html index 0c92c77..3f0fd75 100644 --- a/public/App/Queue/index.html +++ b/public/App/Queue/index.html @@ -67,6 +67,7 @@ overflow: hidden; display: flex; flex-direction: column; + position: relative; } .tracker-header { @@ -79,15 +80,32 @@ font-weight: 800; font-size: 20px; letter-spacing: 0.5px; + z-index: 10; } - .tracker-list { + .tracker-viewport { + flex: 1; + overflow: hidden; + position: relative; + width: 100%; + } + + .tracker-slider { + display: flex; + width: 100%; + height: 100%; + transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); + } + + .tracker-page-slide { + flex: 0 0 100%; + width: 100%; padding: 12px; + box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; - flex: 1; - overflow-y: auto; + justify-content: flex-start; } /* Individual Token Tracker Item Card */ @@ -142,6 +160,16 @@ text-shadow: 0 2px 4px rgba(0,0,0,0.3); } + .tracker-footer { + padding: 8px 16px; + background: #f8fafc; + border-top: 1px solid #e2e8f0; + display: flex; + align-items: center; + justify-content: center; + gap: 6px; + } + /* Hospital Ads & Doctor Showcase Column (Right) */ .showcase-column { background: #ffffff; @@ -247,14 +275,23 @@
- +
Token Tracker - Live Queue + Page 1 of 1
-
- + + +
+
+ +
+
+ + +
@@ -277,12 +314,14 @@
- +