+ {/* MOBILE PROFESSIONAL CARDS LIST (Phones < 768px - NO Left-Right Scroll Needed!) */}
+
+ {filteredOpdAppointments.length === 0 ? (
+
+ No OPD appointments found for selected filter.
+
+ ) : (
+ filteredOpdAppointments.map(app => {
+ const statusBadgeClass = app.status_key === 'waiting' ? 'bg-primary'
+ : app.status_key === 'visited' ? 'bg-info text-dark'
+ : app.status_key === 'booked' ? 'bg-secondary' : 'bg-danger';
+
+ return (
+
+
+
+ Q #{app.queue_no || app.opd_no || '1'}
+
+ {app.status_label}
+
+
+
{app.opd_code}
+
+
+
+
{app.patient_display_name}
+
+
+ {app.age_display || '47 Year'} / {app.gender_label}
+
+
+ {app.uhid || '-'}
+
+
+ {app.opd_type || 'Cash'}
+
+
+
+
+
+
+
+
+ );
+ })
+ )}
+
+
+ {/* DESKTOP TABLE VIEW (Monitors >= 768px) */}
+