-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbilling.html
More file actions
120 lines (115 loc) · 5.6 KB
/
billing.html
File metadata and controls
120 lines (115 loc) · 5.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="MedCare HMS — Billing System">
<title>Billing — MedCare HMS</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="app-layout">
<div id="sidebarPlaceholder"></div>
<main class="main-content">
<div class="page-header">
<div class="page-title">
<p class="breadcrumb">Home / Billing</p>
<h1>Billing System</h1>
<p>Generate bills, manage payments & track revenue</p>
</div>
<div style="display:flex;gap:10px;flex-wrap:wrap;align-items:center;">
<div style="background:var(--bg-surface);border:1px solid var(--border);border-radius:var(--radius-md);padding:9px 16px;font-size:13px;">
💰 Total Revenue: <strong id="totalRevenue" style="color:var(--success);">₹0</strong>
</div>
<button class="btn btn-outline" id="exportBillsBtn">⬇ Export CSV</button>
<button class="btn btn-primary" id="addBillBtn">➕ New Bill</button>
</div>
</div>
<div class="page-body">
<div class="card">
<div class="card-header">
<h2>💳 All Bills <span class="badge badge-primary" id="billCount">0</span></h2>
<div class="search-wrapper">
<span class="search-icon">🔍</span>
<input type="text" class="search-input" id="billSearch" placeholder="Search patient, bill ID…">
</div>
</div>
<div class="table-wrapper">
<table>
<thead>
<tr><th>Bill ID</th><th>Patient</th><th>Services</th><th>Total</th><th>Status</th><th>Date</th><th>Actions</th></tr>
</thead>
<tbody id="billTableBody">
<tr><td colspan="7" class="empty-row"><div class="empty-state"><span class="empty-icon">💳</span><p>Loading…</p></div></td></tr>
</tbody>
</table>
</div>
</div>
</div>
</main>
</div>
<!-- GENERATE / EDIT BILL MODAL -->
<div class="modal-overlay" id="billModal">
<div class="modal modal-lg">
<div class="modal-header">
<h2 id="billModalTitle">Generate New Bill</h2>
<button class="modal-close" data-close-modal="billModal">✕</button>
</div>
<div class="modal-body">
<form id="billForm" novalidate>
<div class="form-group">
<label class="form-label" for="billPatient">Patient *</label>
<select class="form-select" id="billPatient" required><option value="">Select Patient</option></select>
</div>
<div class="form-group">
<label class="form-label">Quick Add Services</label>
<div class="preset-services">
<button type="button" class="preset-service-btn" data-name="Consultation" data-price="500">💊 Consultation ₹500</button>
<button type="button" class="preset-service-btn" data-name="X-Ray" data-price="1200">🔬 X-Ray ₹1,200</button>
<button type="button" class="preset-service-btn" data-name="Blood Test" data-price="400">🩸 Blood Test ₹400</button>
<button type="button" class="preset-service-btn" data-name="MRI Scan" data-price="5000">🧲 MRI ₹5,000</button>
<button type="button" class="preset-service-btn" data-name="CT Scan" data-price="4000">📷 CT Scan ₹4,000</button>
<button type="button" class="preset-service-btn" data-name="ECG" data-price="600">💓 ECG ₹600</button>
<button type="button" class="preset-service-btn" data-name="Ultrasound" data-price="1500">📡 Ultrasound ₹1,500</button>
<button type="button" class="preset-service-btn" data-name="Physiotherapy" data-price="800">🏃 Physio ₹800</button>
<button type="button" class="preset-service-btn" data-name="Room Charges (per day)" data-price="2000">🛏 Room ₹2,000/day</button>
<button type="button" class="preset-service-btn" data-name="Surgery (Minor)" data-price="15000">🔪 Minor Surgery ₹15,000</button>
<button type="button" class="preset-service-btn" data-name="ICU (per day)" data-price="8000">🏥 ICU ₹8,000/day</button>
</div>
</div>
<div class="form-group">
<label class="form-label">Services & Charges</label>
<div id="servicesContainer"></div>
<button type="button" class="btn btn-outline btn-sm" id="addServiceBtn" style="margin-top:8px;">+ Add Service</button>
</div>
<div class="bill-total-bar">
<span class="total-label">Grand Total</span>
<span id="billTotal">₹0</span>
</div>
</form>
</div>
<div class="modal-footer">
<button class="btn btn-outline" data-close-modal="billModal">Cancel</button>
<button class="btn btn-primary" onclick="document.getElementById('billForm').requestSubmit()">Save Bill</button>
</div>
</div>
</div>
<!-- VIEW BILL MODAL -->
<div class="modal-overlay" id="billViewModal">
<div class="modal modal-lg">
<div class="modal-header">
<h2>Bill Details</h2>
<button class="modal-close" data-close-modal="billViewModal">✕</button>
</div>
<div class="modal-body" id="billViewContent"></div>
<div class="modal-footer">
<button class="btn btn-outline" data-close-modal="billViewModal">Close</button>
<button class="btn btn-primary" onclick="window.print()">🖨 Print</button>
</div>
</div>
</div>
<script src="js/utils.js"></script>
<script src="js/sidebar.js"></script>
<script src="js/billing.js"></script>
</body>
</html>