mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-28 17:01:16 +00:00
Fix multiple issues and enhance templates
This commit is contained in:
@@ -20,6 +20,10 @@
|
||||
<i class="fa fa-film fa-fw mr-2"></i>
|
||||
<span>Movies</span>
|
||||
</a>
|
||||
<a href="{{ route('trending-movies') }}" class="flex items-center px-4 py-2 text-gray-300 hover:text-white hover:bg-gray-800 rounded transition">
|
||||
<i class="fa fa-fire fa-fw mr-2"></i>
|
||||
<span>Trending Movies</span>
|
||||
</a>
|
||||
@endif
|
||||
@if(auth()->check() && auth()->user()->musicview && auth()->user()->can('view audio'))
|
||||
<a href="{{ route('Audio') }}" class="flex items-center px-4 py-2 text-gray-300 hover:text-white hover:bg-gray-800 rounded transition">
|
||||
@@ -38,6 +42,10 @@
|
||||
<i class="fa fa-television fa-fw mr-2"></i>
|
||||
<span>TV</span>
|
||||
</a>
|
||||
<a href="{{ route('trending-tv') }}" class="flex items-center px-4 py-2 text-gray-300 hover:text-white hover:bg-gray-800 rounded transition">
|
||||
<i class="fa fa-fire fa-fw mr-2"></i>
|
||||
<span>Trending TV</span>
|
||||
</a>
|
||||
@endif
|
||||
@if(auth()->check() && auth()->user()->xxxview && auth()->user()->can('view adult'))
|
||||
<a href="{{ route('XXX') }}" class="flex items-center px-4 py-2 text-gray-300 hover:text-white hover:bg-gray-800 rounded transition">
|
||||
@@ -103,6 +111,26 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Extend/Upgrade Account -->
|
||||
@auth
|
||||
@php
|
||||
$userRole = auth()->user()->roles->first()?->name ?? 'user';
|
||||
@endphp
|
||||
@if($userRole !== 'Admin')
|
||||
@if($userRole === 'User')
|
||||
<a href="https://simplegate.space/apps/3MjgKvosMZtc2sSxiRBwadDCn1zA/pos" target="_blank" class="flex items-center px-4 py-3 text-white hover:bg-gray-800 rounded transition mt-4">
|
||||
<i class="fa fa-arrow-up fa-fw mr-3"></i>
|
||||
<span>Upgrade Your Account</span>
|
||||
</a>
|
||||
@else
|
||||
<a href="https://simplegate.space/apps/3MjgKvosMZtc2sSxiRBwadDCn1zA/pos" target="_blank" class="flex items-center px-4 py-3 text-white hover:bg-gray-800 rounded transition mt-4">
|
||||
<i class="fa fa-clock fa-fw mr-3"></i>
|
||||
<span>Extend Your Account</span>
|
||||
</a>
|
||||
@endif
|
||||
@endif
|
||||
@endauth
|
||||
|
||||
<!-- Sign Out -->
|
||||
@auth
|
||||
<a href="{{ route('logout') }}" data-logout class="flex items-center px-4 py-3 text-white hover:bg-gray-800 rounded transition mt-4">
|
||||
|
||||
Reference in New Issue
Block a user