Fix bottom nav: change Videos button to Upload with auth check

This commit is contained in:
ghassan 2026-03-03 19:40:31 +03:00
parent 76b4796ab2
commit 9ed7fb47b9

View File

@ -498,9 +498,9 @@
<i class="bi bi-fire"></i>
<span>Trending</span>
</a>
<a href="{{ route('videos.index') }}" class="yt-bottom-nav-item {{ request()->routeIs('videos.index') ? 'active' : '' }}">
<a href="{{ auth()->check() ? route('videos.create') : route('login') }}" class="yt-bottom-nav-item {{ request()->routeIs('videos.create') ? 'active' : '' }}">
<i class="bi bi-play-circle-fill"></i>
<span>Videos</span>
<span>Upload</span>
</a>
<a href="{{ route('history') }}" class="yt-bottom-nav-item {{ request()->routeIs('history') ? 'active' : '' }}">
<i class="bi bi-collection-play-fill"></i>