From 5847f642d8ce2b25a1208c9335f2f4ee4079cc9a Mon Sep 17 00:00:00 2001 From: DevSoftTech Server Date: Sat, 6 Jun 2026 04:46:17 +0530 Subject: [PATCH] Make discharge preview top panel sticky and add action buttons IMPROVEMENTS: 1. Sticky top panel - stays visible when scrolling 2. Action buttons moved to top panel for easy access 3. Compact layout with better button organization CHANGES: - Added .discharge-preview-sticky-header class with position: sticky - Moved all action buttons to top panel: * Back to Edit button (with edit icon) * Print on Letter Head dropdown (PDF icon) * Print on Plain Paper dropdown (file icon) - Added icons to buttons for better UX - Made buttons smaller (btn-sm) to fit in top panel - Reduced margins and padding for compact layout - Removed duplicate buttons from bottom - Top panel now includes: header, patient info, action buttons, template selector BENEFITS: - Buttons always visible even when scrolling long discharge summary - No need to scroll up/down to access print functions - Better workflow for reviewing and printing --- app/Views/billing/ipd/discharge_preview.php | 177 +++++++++++--------- 1 file changed, 102 insertions(+), 75 deletions(-) diff --git a/app/Views/billing/ipd/discharge_preview.php b/app/Views/billing/ipd/discharge_preview.php index d23822e..ba4d6c2 100644 --- a/app/Views/billing/ipd/discharge_preview.php +++ b/app/Views/billing/ipd/discharge_preview.php @@ -66,47 +66,114 @@ if ($person) { margin: 4px 0 10px 18px; padding: 0; } + + /* Sticky top panel */ + .discharge-preview-sticky-header { + position: sticky; + top: 0; + z-index: 1000; + background: #fff; + box-shadow: 0 2px 8px rgba(0,0,0,0.1); + } + + /* Add padding to body to account for sticky header */ + body { + padding-top: 0; + }
-
-
Discharge Preview
-
- IPD: ipd_code ?? $ipdId) ?> - - | Patient: +
+
+
Discharge Preview
+
+ IPD: ipd_code ?? $ipdId) ?> + + | Patient: + +
+
+ +
+ + + +
+
UHID:
+
Age/Gender: xgender ?? ''))) ?>
+
Admit Date: str_register_date ?? '') ?>
+
Discharge Date: str_discharge_date ?? '') ?>
+
+ +
+
+
+ + Back to Edit + +
+ + +
+
+ + +
+
+
+
+ +
+
+ + +
+
+ +
+
-
- - - - -
-
UHID:
-
Age/Gender: xgender ?? ''))) ?>
-
Admit Date: str_register_date ?? '') ?>
-
Discharge Date: str_discharge_date ?? '') ?>
-
- -
-
- - -
-
- -
-
+
@@ -156,47 +223,7 @@ if ($person) {
-
- Back to Create Discharge Summary -
- - -
-
- - -
-
+