From f767abe9f11f43450224454443acaff5f9de819f Mon Sep 17 00:00:00 2001 From: Dr Masroor Ehsan Date: Wed, 22 Jan 2025 00:09:56 +0600 Subject: [PATCH] FIX #16 - hide nav tabs from radiologists --- resources/views/staff/worklist/partials/_nav-top.blade.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/views/staff/worklist/partials/_nav-top.blade.php b/resources/views/staff/worklist/partials/_nav-top.blade.php index bc795ca..f64ceab 100644 --- a/resources/views/staff/worklist/partials/_nav-top.blade.php +++ b/resources/views/staff/worklist/partials/_nav-top.blade.php @@ -3,8 +3,10 @@ @include('staff.worklist.partials._nav-item', ['id' => 'nav__unread', 'text' => 'Pending', 'active' => 'active', 'icon' => 'hourglass-2-line', 'tip' => 'Unread studies']) @include('staff.worklist.partials._nav-item', ['id' => 'nav__read', 'text' => 'Complete', 'active' => '', 'icon' => 'flag-2-line', 'tip' => 'Finalized reports']) @include('staff.worklist.partials._nav-item', ['id' => 'nav__progress', 'text' => 'In Progress', 'active' => '', 'icon' => 'heart-pulse-line', 'tip' => 'Read in progress']) - @include('staff.worklist.partials._nav-item', ['id' => 'nav__orphan', 'text' => 'Unassigned', 'active' => '', 'icon' => 'price-tag-3-line', 'tip' => 'Unassigned studies']) - @include('staff.worklist.partials._nav-item', ['id' => 'nav__assigned', 'text' => 'Assigned', 'active' => '', 'icon' => 'team-line', 'tip' => 'Studies assigned to radiologists']) + @if (may(\App\Domain\ACL\Permission::AssignRadiologist)) + @include('staff.worklist.partials._nav-item', ['id' => 'nav__orphan', 'text' => 'Unassigned', 'active' => '', 'icon' => 'price-tag-3-line', 'tip' => 'Unassigned studies']) + @include('staff.worklist.partials._nav-item', ['id' => 'nav__assigned', 'text' => 'Assigned', 'active' => '', 'icon' => 'team-line', 'tip' => 'Studies assigned to radiologists']) + @endif @include('staff.worklist.partials._nav-item', ['id' => 'nav__all', 'text' => 'All', 'active' => '', 'icon' => 'stack-line', 'tip' => 'All studies'])