1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-11-23 09:32:29 +01:00

@class directive

used @class directive instead if statement
This commit is contained in:
Ibrahim Bougaoua 2024-10-08 20:18:45 +01:00 committed by GitHub
parent acaa6c9ac4
commit d319502904
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,9 +6,9 @@
<div class="col-xs-12">
<div class="nav-tabs-custom nav-tabs-floating">
<ul class="nav nav-tabs">
<li @if($activeTab === 'basic')class="active"@endif><a href="{{ route('admin.settings') }}">General</a></li>
<li @if($activeTab === 'mail')class="active"@endif><a href="{{ route('admin.settings.mail') }}">Mail</a></li>
<li @if($activeTab === 'advanced')class="active"@endif><a href="{{ route('admin.settings.advanced') }}">Advanced</a></li>
<li @class(['active' => $activeTab === 'basic'])><a href="{{ route('admin.settings') }}">General</a></li>
<li @class(['active' => $activeTab === 'mail'])><a href="{{ route('admin.settings.mail') }}">Mail</a></li>
<li @class(['active' => $activeTab === 'advanced'])><a href="{{ route('admin.settings.advanced') }}">Advanced</a></li>
</ul>
</div>
</div>