From eb92cd64d657a06291c3f99c3c380bdeb1e20876 Mon Sep 17 00:00:00 2001 From: Dr Masroor Ehsan Date: Mon, 20 Jan 2025 13:08:21 +0600 Subject: [PATCH] wip filtering --- .../views/staff/worklist/index.blade.php | 72 +++++++++++-------- .../worklist/partials/_check-inline.blade.php | 9 +++ .../worklist/partials/_date-range.blade.php | 6 ++ .../worklist/partials/_filter-panel.blade.php | 57 +++++++++++---- 4 files changed, 102 insertions(+), 42 deletions(-) create mode 100644 resources/views/staff/worklist/partials/_check-inline.blade.php create mode 100644 resources/views/staff/worklist/partials/_date-range.blade.php diff --git a/resources/views/staff/worklist/index.blade.php b/resources/views/staff/worklist/index.blade.php index 627e457..7e67522 100644 --- a/resources/views/staff/worklist/index.blade.php +++ b/resources/views/staff/worklist/index.blade.php @@ -99,28 +99,53 @@ diff --git a/resources/views/staff/worklist/partials/_check-inline.blade.php b/resources/views/staff/worklist/partials/_check-inline.blade.php new file mode 100644 index 0000000..aee303c --- /dev/null +++ b/resources/views/staff/worklist/partials/_check-inline.blade.php @@ -0,0 +1,9 @@ +@php + if (!isset($id)) { + $id = 'chk_' . $value . '_' . random_int(100, 999); + } +@endphp +
+ + +
diff --git a/resources/views/staff/worklist/partials/_date-range.blade.php b/resources/views/staff/worklist/partials/_date-range.blade.php new file mode 100644 index 0000000..b316303 --- /dev/null +++ b/resources/views/staff/worklist/partials/_date-range.blade.php @@ -0,0 +1,6 @@ +
+
+ + +
+
diff --git a/resources/views/staff/worklist/partials/_filter-panel.blade.php b/resources/views/staff/worklist/partials/_filter-panel.blade.php index 53903f7..66ed2e5 100644 --- a/resources/views/staff/worklist/partials/_filter-panel.blade.php +++ b/resources/views/staff/worklist/partials/_filter-panel.blade.php @@ -1,28 +1,57 @@ -
+
- -
-
-
Filter
+
+
+
Filter Studies
+
+ +
+
+ +
-
+
+ @include('staff.worklist.partials._date-range', ['id' => 'study_date_range', 'label' => 'Study Date']) + @include('staff.worklist.partials._date-range', ['id' => 'receive_date_range', 'label' => 'Receive Date']) +
-
-
- - +
+
+ Study Modalities +
+ @include('staff.worklist.partials._check-inline', ['value' => 'CT']) + @include('staff.worklist.partials._check-inline', ['value' => 'MR']) + @include('staff.worklist.partials._check-inline', ['value' => 'CR']) + @include('staff.worklist.partials._check-inline', ['value' => 'DX']) + @include('staff.worklist.partials._check-inline', ['value' => 'US']) + @include('staff.worklist.partials._check-inline', ['value' => 'MG'])
+
-
- +
+
+
+
+