From dee9a0f2dfa0c4eb1704a375220ac8538b326c08 Mon Sep 17 00:00:00 2001 From: isaacclad Date: Sat, 18 Jul 2026 11:24:44 +0000 Subject: [PATCH] Hide specialty department roster from the module overview. Departments still provision in the background; the list added no operational value on the page. Co-authored-by: Cursor --- .../Care/SpecialtyModuleController.php | 1 - .../care/specialty/sections/overview.blade.php | 16 +--------------- tests/Feature/CareSpecialtyModulesTest.php | 1 - 3 files changed, 1 insertion(+), 17 deletions(-) diff --git a/app/Http/Controllers/Care/SpecialtyModuleController.php b/app/Http/Controllers/Care/SpecialtyModuleController.php index 4c6d79e..b611d79 100644 --- a/app/Http/Controllers/Care/SpecialtyModuleController.php +++ b/app/Http/Controllers/Care/SpecialtyModuleController.php @@ -387,7 +387,6 @@ class SpecialtyModuleController extends Controller 'definition' => $shellDefinition, 'section' => $section, 'navItems' => $shell->navItems($module), - 'departments' => $departments, 'waiting' => $waiting, 'openVisits' => $openVisits, 'visitHistory' => $visitHistory, diff --git a/resources/views/care/specialty/sections/overview.blade.php b/resources/views/care/specialty/sections/overview.blade.php index f64d05c..4e0e749 100644 --- a/resources/views/care/specialty/sections/overview.blade.php +++ b/resources/views/care/specialty/sections/overview.blade.php @@ -29,21 +29,7 @@ @endif
-
-

Departments

-
    - @forelse ($departments as $department) -
  • - {{ $department->name }} - {{ $department->branch?->name }} -
  • - @empty -
  • No active departments for this module at your branch.
  • - @endforelse -
-
- -
+

Waiting patients

All visits diff --git a/tests/Feature/CareSpecialtyModulesTest.php b/tests/Feature/CareSpecialtyModulesTest.php index 635dbb1..e120f3a 100644 --- a/tests/Feature/CareSpecialtyModulesTest.php +++ b/tests/Feature/CareSpecialtyModulesTest.php @@ -220,7 +220,6 @@ class CareSpecialtyModulesTest extends TestCase ->get(route('care.specialty.show', 'dentistry')) ->assertOk() ->assertSee('Dentistry') - ->assertSee('Departments') ->assertSee('Overview') ->assertSee('Stage map'); }