diff --git a/app/DataTables/WorklistDataTable.php b/app/DataTables/WorklistDataTable.php index 2f09c24..bfeda79 100644 --- a/app/DataTables/WorklistDataTable.php +++ b/app/DataTables/WorklistDataTable.php @@ -51,6 +51,7 @@ public function dataTable(QueryBuilder $query): EloquentDataTable ->editColumn('show_study', function (Study $study) { $btn = 'Show'; $btn .= 'Edit'; + $btn .= ' Assign'; $btn .= ' Delete'; return $btn; diff --git a/app/Http/Controllers/Staff/StudiesController.php b/app/Http/Controllers/Staff/StudiesController.php index 28c30b5..2e33388 100644 --- a/app/Http/Controllers/Staff/StudiesController.php +++ b/app/Http/Controllers/Staff/StudiesController.php @@ -4,6 +4,7 @@ use App\Http\Controllers\HashidControllerBase; use App\Models\Enums\Permission; +use App\Models\Enums\UserRole; use App\Models\Study; use App\Services\AuditTrail\Activity; @@ -63,4 +64,13 @@ public function attachments() return view('staff.history.partials._uploaded-studies-list', compact('study', 'allow_delete')); } + + public function assignmentShow() + { + $this->decodeKeys(); + $study = Study::findOrFail($this->key); + $rads = User::active()->role(UserRole::Radiologist)->get(); + + return view('staff.studies.assign-form', compact('study', 'rads')); + } } diff --git a/resources/views/staff/history/partials/_history.blade.php b/resources/views/staff/history/partials/_history.blade.php index 1f3fc96..a048f72 100644 --- a/resources/views/staff/history/partials/_history.blade.php +++ b/resources/views/staff/history/partials/_history.blade.php @@ -5,7 +5,7 @@ -@if(!blank($details->surgical_history)) +@if (!blank($details->surgical_history))
{{ $doc->display_name }} | +X | +