diff --git a/app/Views/shared/dialog_sample.php b/app/Views/shared/dialog_sample.php
index 710a484..7af3c3f 100644
--- a/app/Views/shared/dialog_sample.php
+++ b/app/Views/shared/dialog_sample.php
@@ -3,16 +3,8 @@
-
-
-
-
-
-
+
+
@@ -28,7 +20,7 @@
-
+
@@ -56,8 +48,18 @@
| Sample Name |
Collected |
Received |
- Action |
- |
+
+
+ Action
+
+
+ |
+ |
diff --git a/app/Views/shared/script_requests.php b/app/Views/shared/script_requests.php
index 25c283c..9d76690 100644
--- a/app/Views/shared/script_requests.php
+++ b/app/Views/shared/script_requests.php
@@ -7,7 +7,13 @@ document.addEventListener('alpine:init', () => {
isLoading: false,
counters: { Pend: 0, Coll: 0, Recv: 0, Inc: 0, Fin: 0, Total: 0 },
- selectedPrinter: 'lab',
+ selectedPrinter: localStorage.getItem('selectedPrinter') || 'zebracs2',
+
+ initSelectedPrinter() {
+ this.$watch('selectedPrinter', value => {
+ localStorage.setItem('selectedPrinter', value);
+ });
+ },
// PDF Generation Dialog
isGenerateDialogOpen: false,
generateAccessnumber: null,
@@ -142,8 +148,7 @@ document.addEventListener('alpine:init', () => {
this.filter.date1 = this.today;
this.filter.date2 = this.today;
- const defaultPrinter = '= $config[session()->get("userrole")]["sampleDialog"]["defaultPrinter"] ?? "lab" ?>';
- this.selectedPrinter = defaultPrinter || 'lab';
+ this.initSelectedPrinter();
// Initial load only - no auto-refresh
this.fetchList();
diff --git a/public/file.txt b/public/file.txt
index 09bf430..a50a2a0 100644
--- a/public/file.txt
+++ b/public/file.txt
@@ -5,80 +5,14 @@ q400
Q224,24+0
I8,A,001
D10
-A10,3,0,3,1,1,N," CHRISTINA TANJUNG, MS"
-A10,27,0,2,1,1,N,"F 26/Nov/1995 29Y"
-A225,27,0,3,1,1,N,"5111825322"
-B120,50,0,1,2,8,90,N,"5111825322"
-A80,150,0,2,2,1,N,"01251101328"
-A10,195,0,1,1,1,N,"HIS : 01251101328"
-A190,190,0,2,1,1,N,"18/Nov/2025 09:11"
-P1
-][
-N
-OD
-q400
-Q224,24+0
-I8,A,001
-D10
-A10,3,0,3,1,1,N," CHRISTINA TANJUNG, MS "
-A10,27,0,2,1,1,N,"F 29Y"
-B130,50,0,1,2,8,90,N,"10125322"
-A380,27,5,3,1,1,N,"10125322"
+A10,3,0,3,1,1,N," DANIEL GANADI, MR "
+A10,27,0,2,1,1,N,"M 70Y"
+B130,50,0,1,2,8,90,N,"10133381"
+A380,27,5,3,1,1,N,"10133381"
A10,80,0,2,1,2,R,"EDTA"
-A10,150,0,2,1,1,N,"G6PD,DL"
-A10,180,0,1,1,1,N,"LIS : 5111825322"
-A10,195,0,1,1,1,N,"HIS : 01251101328"
-A190,190,0,2,1,1,N,"18/Nov/2025 09:11"
-P1
-][
-N
-OD
-q400
-Q224,24+0
-I8,A,001
-D10
-A10,3,0,3,1,1,N," CHRISTINA TANJUNG, MS "
-A10,27,0,2,1,1,N,"F 29Y"
-B130,50,0,1,2,8,90,N,"25025322"
-A380,27,5,3,1,1,N,"25025322"
-A10,80,0,2,1,2,R,"Serum"
-A10,150,0,2,1,1,N,"TOXM,RUBM,TPHA,VD25,AHBSM"
-A10,180,0,1,1,1,N,"LIS : 5111825322"
-A10,195,0,1,1,1,N,"HIS : 01251101328"
-A190,190,0,2,1,1,N,"18/Nov/2025 09:11"
-P1
-][
-N
-OD
-q400
-Q224,24+0
-I8,A,001
-D10
-A10,3,0,3,1,1,N," CHRISTINA TANJUNG, MS "
-A10,27,0,2,1,1,N,"F 29Y"
-B130,50,0,1,2,8,90,N,"35025322"
-A380,27,5,3,1,1,N,"35025322"
-A10,80,0,2,1,2,R,"Urin"
-A10,150,0,2,1,1,N,"UL"
-A10,180,0,1,1,1,N,"LIS : 5111825322"
-A10,195,0,1,1,1,N,"HIS : 01251101328"
-A190,190,0,2,1,1,N,"18/Nov/2025 09:11"
-P1
-][
-N
-OD
-q400
-Q224,24+0
-I8,A,001
-D10
-A10,3,0,3,1,1,N," CHRISTINA TANJUNG, MS "
-A10,27,0,2,1,1,N,"F 29Y"
-B130,50,0,1,2,8,90,N,"90025322"
-A380,27,5,3,1,1,N,"90025322"
-A10,80,0,2,1,2,R,"Other"
-A10,150,0,2,1,1,N,"SFPL"
-A10,180,0,1,1,1,N,"LIS : 5111825322"
-A10,195,0,1,1,1,N,"HIS : 01251101328"
-A190,190,0,2,1,1,N,"18/Nov/2025 09:11"
+A10,150,0,2,1,1,N,"HBA1C"
+A10,180,0,1,1,1,N,"LIS : 6022633381"
+A10,195,0,1,1,1,N,"HIS : 01260201721"
+A190,190,0,2,1,1,N,"26/Feb/2026 05:21"
P1
]
\ No newline at end of file