new front end

This commit is contained in:
Mark Gregory
2026-09-09 17:01:28 +01:00
parent 2078dbf637
commit 8f85c41bea
+18 -4
View File
@@ -180,11 +180,25 @@
<a href="{{ route('support') }}">Support</a>
<a href="{{ route('privacy') }}">Privacy</a>
@auth
@if(auth()->user()->hasVerifiedEmail())<a href="{{ route('portal.index') }}">My licences</a>@endif
@if(auth()->user()->is_admin)
@php($supportUnread = auth()->user()->unreadNotifications()->where('type', \App\Notifications\NewSupportTicket::class)->count())
@if (auth()->user()->hasVerifiedEmail())
<a href="{{ route('portal.index') }}">My licences</a>
@endif
@if (auth()->user()->is_admin)
@php
$supportUnread = auth()->user()
->unreadNotifications()
->where('type', \App\Notifications\NewSupportTicket::class)
->count();
@endphp
<a href="{{ route('admin.index') }}">Admin</a>
<a href="{{ route('admin.support.index') }}">Support@if($supportUnread)<span class="nav-alert-count">{{ $supportUnread }}</span>@endif</a>
<a href="{{ route('admin.support.index') }}">
Support
@if ($supportUnread > 0)
<span class="nav-alert-count">{{ $supportUnread }}</span>
@endif
</a>
@endif
@endauth
</div>