2026-05-27 21:24:38 +02:00
|
|
|
@php $topbarModSeparator = false; $topbarAdminSeparator = false; @endphp
|
2026-05-20 18:25:15 +02:00
|
|
|
<header id="topbar">
|
|
|
|
|
<button class="mobile-toggle">
|
|
|
|
|
<i data-lucide="menu"></i>
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
|
|
<div class="search-bar">
|
|
|
|
|
<i data-lucide="search" size="18" color="var(--text2)"></i>
|
|
|
|
|
<input type="text">Search</input>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="topbar-actions">
|
2026-05-24 11:47:20 +02:00
|
|
|
|
|
|
|
|
@if( !\Auth::guest() && \Auth::user()->is_admin === 1 )
|
|
|
|
|
@php $topbarAdminSeparator = true; @endphp
|
|
|
|
|
<a href="{{ config('app.forum_url') . '/admin.php' }}" class="btn">
|
|
|
|
|
<i data-lucide="landmark" size="18"></i>
|
|
|
|
|
</a>
|
|
|
|
|
<a href="{{ config('app.url') . '/manage' }}" class="btn">
|
|
|
|
|
<i data-lucide="shield-cog" size="18"></i>
|
|
|
|
|
</a>
|
|
|
|
|
@endif
|
|
|
|
|
|
|
|
|
|
@if( $topbarAdminSeparator )
|
|
|
|
|
<div class="vertical-separator"></div>
|
|
|
|
|
@endif
|
|
|
|
|
|
|
|
|
|
@if( !\Auth::guest() && \Auth::user()->is_moderator === 1 )
|
|
|
|
|
@php $topbarModSeparator = true; @endphp
|
|
|
|
|
<a href="#" class="btn">
|
|
|
|
|
<i data-lucide="siren" size="18"></i>
|
|
|
|
|
</a>
|
|
|
|
|
<a href="{{ xfRoute('approval-queue') }}" class="btn">
|
|
|
|
|
<i data-lucide="message-circle-check" size="18"></i>
|
|
|
|
|
</a>
|
|
|
|
|
<a href="{{ xfRoute('reports') }}" class="btn">
|
|
|
|
|
<i data-lucide="triangle-alert" size="18"></i>
|
|
|
|
|
</a>
|
|
|
|
|
@endif
|
|
|
|
|
|
|
|
|
|
@if( $topbarModSeparator )
|
|
|
|
|
<div class="vertical-separator"></div>
|
|
|
|
|
@endif
|
|
|
|
|
|
|
|
|
|
{{-- Users --}}
|
2026-05-27 21:24:38 +02:00
|
|
|
@can('create','\App\Models\Entry')
|
2026-05-24 11:47:20 +02:00
|
|
|
<a href="#" class="btn">
|
|
|
|
|
<i data-lucide="hard-drive-upload" size="18"></i>
|
|
|
|
|
</a>
|
2026-05-27 21:24:38 +02:00
|
|
|
@endcan
|
2026-05-24 11:47:20 +02:00
|
|
|
@if( !\Auth::guest() )
|
|
|
|
|
<div x-data x-init="$store.notifications.unviewed = {{ \Auth::user()->alerts_unviewed }}" style="position:relative">
|
|
|
|
|
<button type="button" class="btn" :class="{ 'active': $store.notifications.start }" @click="$store.notifications.open($el)" @click.outside="$store.notifications.close()">
|
|
|
|
|
<i data-lucide="bell" size="18"></i>
|
|
|
|
|
<span
|
|
|
|
|
class="topbar-badge"
|
|
|
|
|
:class="$store.notifications.unread > 9 ? 'topbar-badge--overflow' : ''"
|
|
|
|
|
x-show="$store.notifications.unread > 0"
|
|
|
|
|
x-text="$store.notifications.unread > 99 ? '99+' : $store.notifications.unread"
|
|
|
|
|
></span>
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
|
|
@include('components.notifications')
|
|
|
|
|
</div>
|
2026-05-25 09:55:47 +02:00
|
|
|
<div x-data x-init="$store.conversations.unviewed = {{ \Auth::user()->conversations_unread }}" style="position:relative">
|
|
|
|
|
<button type="button" class="btn" :class="{ 'active': $store.conversations.start }" @click="$store.conversations.open($el)" @click.outside="$store.conversations.close()">
|
|
|
|
|
<i data-lucide="mail" size="18"></i>
|
|
|
|
|
<span
|
|
|
|
|
class="topbar-badge"
|
|
|
|
|
:class="$store.conversations.unread > 9 ? 'topbar-badge--overflow' : ''"
|
|
|
|
|
x-show="$store.conversations.unread > 0"
|
|
|
|
|
x-text="$store.conversations.unread > 99 ? '99+' : $store.conversations.unread"
|
|
|
|
|
></span>
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
|
|
@include('components.conversations')
|
|
|
|
|
</div>
|
2026-05-24 11:47:20 +02:00
|
|
|
@endif
|
2026-05-27 21:24:38 +02:00
|
|
|
<div x-data style="position: relative;" x-init="$store.settings.xfUrls = { 'default': '{{ xfStyleVariationUrl( 'default' ) }}', 'alternate': '{{ xfStyleVariationUrl( 'alternate' ) }}' }">
|
|
|
|
|
<button
|
|
|
|
|
type="button"
|
|
|
|
|
class="btn"
|
|
|
|
|
:class="{ 'active': $store.settings.start }"
|
|
|
|
|
@click="$store.settings.open()"
|
|
|
|
|
@click.outside="$store.settings.close()"
|
|
|
|
|
>
|
|
|
|
|
<i data-lucide="settings" size="18"></i>
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
|
|
@include('components.settings-dropdown')
|
|
|
|
|
</div>
|
2026-05-24 11:47:20 +02:00
|
|
|
|
2026-05-20 18:25:15 +02:00
|
|
|
</div>
|
|
|
|
|
</header>
|