Files
coolify/resources/views/components/settings/layout.blade.php
T
Andras Bacsai 88e710058e refactor(settings): list Authentication before Email and Backup in menus
Reorder the Instance settings links in the navbar and the settings
layout sidebar so Authentication comes first, then Email, then Backup.
The navbar section divider moves to Authentication, since it is now the
first item in the group.
2026-10-15 09:13:57 +02:00

34 lines
1.5 KiB
PHP

@php
$settingsMenuSections = [
'Configuration' => [
['label' => 'General', 'route' => 'settings.index', 'icon' => 'settings'],
['label' => 'Advanced', 'route' => 'settings.advanced', 'icon' => 'grid'],
['label' => 'Updates', 'route' => 'settings.updates', 'icon' => 'refresh3'],
],
'Instance' => [
['label' => 'Authentication', 'route' => 'settings.oauth', 'icon' => 'keys'],
['label' => 'Email', 'route' => 'settings.email', 'icon' => 'mail'],
['label' => 'Backup', 'route' => 'settings.backup', 'icon' => 'database'],
],
];
@endphp
{{-- The pages are in the Settings submenu of the main sidebar (components/navbar.blade.php). --}}
<section class="application-settings-workspace w-full max-w-none">
<header class="settings-mobile-header xl:hidden">
<h1 class="settings-mobile-title">Instance Settings</h1>
<p class="settings-mobile-description">Configure global settings for this Coolify instance.</p>
</header>
{{-- Feeds the page search with the settings pages. --}}
<div hidden data-settings-search-items="{{ json_encode(settingsSearchItems($settingsMenuSections, [])) }}"></div>
@isset($submenu)
{{-- Sub-items of the current page, under its entry in the main sidebar. --}}
@teleport('#main-nav-active-children')
<div>{{ $submenu }}</div>
@endteleport
@endisset
<div class="min-w-0">
{{ $slot }}
</div>
</section>