Skinbase.org Skinbase.org @php $navSection = match(true) { request()->is('discover', 'discover/*') => 'discover', request()->is('browse', 'photography', 'wallpapers', 'skins', 'other', 'tags', 'tags/*') => 'browse', request()->is('creators', 'creators/*', 'stories', 'stories/*', 'following') => 'creators', request()->is('forum', 'forum/*', 'news', 'news/*') => 'community', default => null, }; @endphp
@auth
@php $toolbarUsername = strtolower((string) (Auth::user()->username ?? '')); $routeUpload = Route::has('upload') ? route('upload') : '/upload'; $routeDashboardGallery = Route::has('dashboard.gallery') ? route('dashboard.gallery') : '/dashboard/gallery'; $routeDashboardArtworks = Route::has('dashboard.artworks.index') ? route('dashboard.artworks.index') : (Route::has('dashboard.artworks') ? route('dashboard.artworks') : '/dashboard/artworks'); $routeDashboardStats = Route::has('legacy.statistics') ? route('legacy.statistics') : '/statistics'; $routeDashboardFavorites = Route::has('dashboard.favorites') ? route('dashboard.favorites') : '/dashboard/favorites'; $routeDashboardAwards = Route::has('dashboard.awards') ? route('dashboard.awards') : '/dashboard/awards'; $routeDashboardFollowers = Route::has('dashboard.followers') ? route('dashboard.followers') : '/dashboard/followers'; $routeDashboardFollowing = Route::has('dashboard.following') ? route('dashboard.following') : '/dashboard/following'; $routeDashboardComments = Route::has('dashboard.comments') ? route('dashboard.comments') : '/dashboard/comments'; $routeDashboardProfile = Route::has('dashboard.profile') ? route('dashboard.profile') : '/dashboard/profile'; $routeEditProfile = Route::has('settings') ? route('settings') : '/settings'; $routePublicProfile = Route::has('profile.show') ? route('profile.show', ['username' => $toolbarUsername]) : '/@'.$toolbarUsername; @endphp {{-- My Content --}}
My Content
Upload My Gallery My Favorites My Awards Statistics {{-- Community --}}
Community
Followers Following My Activity {{-- Account --}}
Account
View Profile Edit Profile Settings @if(in_array(strtolower((string) (Auth::user()->role ?? '')), ['admin', 'moderator'], true)) Moderation @endif
@csrf
@else @endauth