podcastartgenerator/site/resources/views/partials/nav/main.blade.php

26 lines
979 B
PHP
Raw Normal View History

2023-12-14 23:47:10 -05:00
<li>
<a {!! request()->routeIs('home') ? 'class="active"' : '' !!} href="/">Home</a>
</li>
<li>
<a {!! request()->is(['artworks', 'artworks/*']) ? 'class="active"' : '' !!} href="/artworks">Submitted</a>
</li>
<li>
<a {!! request()->is(['artists', 'artists/*', 'artist', 'artist/*', 'profile']) ? 'class="active"' : '' !!} href="/artists">Artists</a>
2023-12-14 23:47:10 -05:00
</li>
@if (auth()->user())
<li>
<a {!! request()->is(['create-artwork', 'create-artwork/*']) ? 'class="active"' : '' !!} href="/create-artwork">Create</a>
</li>
@can('approve', App\Models\Artwork::class)
<li>
<a {!! request()->is(['approve-artworks']) ? 'class="active"' : '' !!} href="/approve-artworks">Approve</a>
</li>
@endcan
2023-12-14 23:47:10 -05:00
@endif
<li>
<a rel="me" {!! request()->is(['support*']) ? 'class="active"' : '' !!} href="/support-development">History & Support</a>
2023-12-14 23:47:10 -05:00
<li>
<a {!! request()->is(['leaderboards', 'leaderboards/*']) ? 'class="active"' : '' !!} href="/leaderboards">Leaderboards</a>
</li>