@foreach ($groupItems as $menuItem)
@php $sections = $pageSections[$menuItem['route']] ?? []; @endphp
-
+
@endif
- @if (filled($sections))
-
@foreach ($sections as $section)
- @if ($menuItem['active'])
-
- @else
-
- @endif
+
@endforeach
@endif
@endforeach
+
@endforeach
diff --git a/resources/views/components/database-status-info.blade.php b/resources/views/components/database-status-info.blade.php
index b9298e2689..1ff2473f78 100644
--- a/resources/views/components/database-status-info.blade.php
+++ b/resources/views/components/database-status-info.blade.php
@@ -23,10 +23,10 @@
@else
-
@if ($dbUrlPublic)
-
@elseif ($showPublicUrlPlaceholder)
values())
->filter(fn ($items) => $items->isNotEmpty());
+ // Group that holds the current page — the only one expanded by default.
+ $activeGroup = (string) $groupedItems->search(fn ($items) => $items->contains(fn ($item) => $item['active'] ?? false));
+
$pageSections = $database->type() === 'standalone-postgresql'
? [
['id' => 'database-details-section', 'label' => 'Database details'],
@@ -62,12 +65,22 @@
@endforeach