radiologist
This commit is contained in:
parent
15949214d4
commit
35a84f9c47
@ -3,7 +3,9 @@
|
||||
namespace App\Http\Controllers\Staff;
|
||||
|
||||
use App\DataTables\WorklistDataTable;
|
||||
use App\Domain\ACL\Role;
|
||||
use App\Http\Controllers\HashidControllerBase;
|
||||
use App\Models\User;
|
||||
use App\Services\SessionHelper;
|
||||
|
||||
class WorklistController extends HashidControllerBase
|
||||
@ -12,7 +14,12 @@ public function index(WorklistDataTable $dataTable)
|
||||
{
|
||||
SessionHelper::setIntendedUrl();
|
||||
$modalities = ['CT', 'MR', 'CR', 'MG', 'US', 'DX', 'XA'];
|
||||
$rads = User::active()
|
||||
->role(Role::Radiologist)
|
||||
->orderBy('display_name')
|
||||
->pluck('display_name', 'id')
|
||||
->toArray();
|
||||
|
||||
return $dataTable->render('staff.worklist.index', compact('modalities'));
|
||||
return $dataTable->render('staff.worklist.index', compact('modalities', 'rads'));
|
||||
}
|
||||
}
|
||||
|
@ -27,7 +27,7 @@
|
||||
</div>
|
||||
|
||||
<div class="row g-2">
|
||||
<div class="col-md p-2">
|
||||
<div class="col-md-3 col-3 mb-4 me-4">
|
||||
<small class="text-light fw-medium d-block">Study Modalities</small>
|
||||
<div class="mt-4">
|
||||
@foreach ($modalities as $modality)
|
||||
@ -35,6 +35,18 @@
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3 col-3 mb-4 me-4">
|
||||
<small class="text-light fw-medium d-block">Reported By</small>
|
||||
<div class="mt-4">
|
||||
<select name="read_by" id="read_by" class="form-select">
|
||||
<option>--</option>
|
||||
@foreach ($rads as $id => $name)
|
||||
<option value="{{ $id }}">{{ $name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row row-bordered g-2">
|
||||
|
Loading…
Reference in New Issue
Block a user