diff --git a/app/DataTables/WorklistDataTable.php b/app/DataTables/WorklistDataTable.php index 6e049b3..2f09c24 100644 --- a/app/DataTables/WorklistDataTable.php +++ b/app/DataTables/WorklistDataTable.php @@ -57,9 +57,9 @@ public function dataTable(QueryBuilder $query): EloquentDataTable }) ->editColumn('history', function (Study $study) { return sprintf(' - - - + + + ', blank($study->body_part_examined) ? 'text-muted' : 'text-primary'); }) ->orderColumn('patient_name', 'patient_name $1') diff --git a/app/Http/Controllers/Staff/StudiesController.php b/app/Http/Controllers/Staff/StudiesController.php index 3e80528..28c30b5 100644 --- a/app/Http/Controllers/Staff/StudiesController.php +++ b/app/Http/Controllers/Staff/StudiesController.php @@ -3,6 +3,7 @@ namespace App\Http\Controllers\Staff; use App\Http\Controllers\HashidControllerBase; +use App\Models\Enums\Permission; use App\Models\Study; use App\Services\AuditTrail\Activity; @@ -51,6 +52,15 @@ public function show() $data['Station'] = $properties->get('station_name'); $data['Operator'] = $properties->get('operators_name'); - return view('staff.studies.show-details', compact('data')); + return view('staff.studies.show-details', compact('data', 'study')); + } + + public function attachments() + { + $this->decodeKeys(); + $study = Study::findOrFail($this->key); + $allow_delete = auth()->user()->may(Permission::AttachmentUpload); + + return view('staff.history.partials._uploaded-studies-list', compact('study', 'allow_delete')); } } diff --git a/resources/views/staff/history/edit.blade.php b/resources/views/staff/history/edit.blade.php index 3973b4d..268aba4 100644 --- a/resources/views/staff/history/edit.blade.php +++ b/resources/views/staff/history/edit.blade.php @@ -94,6 +94,8 @@ @section('content') + @include('staff.worklist.partials._study-info-header', ['study' => $study]) +