new front end
This commit is contained in:
@@ -180,11 +180,25 @@
|
|||||||
<a href="{{ route('support') }}">Support</a>
|
<a href="{{ route('support') }}">Support</a>
|
||||||
<a href="{{ route('privacy') }}">Privacy</a>
|
<a href="{{ route('privacy') }}">Privacy</a>
|
||||||
@auth
|
@auth
|
||||||
@if(auth()->user()->hasVerifiedEmail())<a href="{{ route('portal.index') }}">My licences</a>@endif
|
@if (auth()->user()->hasVerifiedEmail())
|
||||||
@if(auth()->user()->is_admin)
|
<a href="{{ route('portal.index') }}">My licences</a>
|
||||||
@php($supportUnread = auth()->user()->unreadNotifications()->where('type', \App\Notifications\NewSupportTicket::class)->count())
|
@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.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
|
@endif
|
||||||
@endauth
|
@endauth
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user