Current state with latest updates
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
@if(request()->hasSession() && ! request()->attributes->get('skinbase.session_skipped'))
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}" />
|
||||
@endif
|
||||
@vite(['resources/js/academy.jsx'])
|
||||
<script type="module" src="{{ Vite::asset('resources/js/academy.jsx') }}"></script>
|
||||
<style>
|
||||
body.page-academy main { padding-top: 4rem; }
|
||||
</style>
|
||||
|
||||
@@ -52,6 +52,7 @@
|
||||
request()->is(...array_merge(['browse', 'tags', 'tags/*'], $toolbarContentTypeSlugs)) => 'browse',
|
||||
request()->is('groups', 'groups/*') => 'groups',
|
||||
request()->is('creators', 'creators/*', 'stories', 'stories/*', 'following', 'leaderboard') => 'creators',
|
||||
request()->is('academy', 'academy/*') => 'academy',
|
||||
request()->is('forum', 'forum/*', 'news', 'news/*') => 'community',
|
||||
default => null,
|
||||
};
|
||||
@@ -193,6 +194,40 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if(config('academy.enabled', true))
|
||||
<div class="relative">
|
||||
<button class="inline-flex items-center gap-1 px-3 py-2 rounded-lg transition-colors {{ $navSection === 'academy' ? 'text-white bg-white/10' : 'hover:text-white hover:bg-white/5' }}"
|
||||
data-dd="academy"
|
||||
{{ $navSection === 'academy' ? 'aria-current=page' : '' }}>
|
||||
Academy
|
||||
<svg class="w-4 h-4 opacity-70" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M6 9l6 6 6-6" /></svg>
|
||||
</button>
|
||||
<div id="dd-academy" class="dd-menu absolute left-0 mt-1 w-56 rounded-xl bg-panel border border-panel shadow-sb overflow-hidden">
|
||||
<a class="flex items-center gap-3 px-4 py-2.5 text-sm hover:bg-white/5" href="{{ route('academy.index') }}">
|
||||
<i class="fa-solid fa-graduation-cap w-4 text-center text-sb-muted"></i>Academy Home
|
||||
</a>
|
||||
<a class="flex items-center gap-3 px-4 py-2.5 text-sm hover:bg-white/5" href="{{ route('academy.courses.index') }}">
|
||||
<i class="fa-solid fa-road w-4 text-center text-sb-muted"></i>Courses
|
||||
</a>
|
||||
<a class="flex items-center gap-3 px-4 py-2.5 text-sm hover:bg-white/5" href="{{ route('academy.lessons.index') }}">
|
||||
<i class="fa-solid fa-book-open w-4 text-center text-sb-muted"></i>Lessons
|
||||
</a>
|
||||
<a class="flex items-center gap-3 px-4 py-2.5 text-sm hover:bg-white/5" href="{{ route('academy.prompts.index') }}">
|
||||
<i class="fa-solid fa-wand-magic-sparkles w-4 text-center text-sb-muted"></i>Prompts
|
||||
</a>
|
||||
<a class="flex items-center gap-3 px-4 py-2.5 text-sm hover:bg-white/5" href="{{ route('academy.packs.index') }}">
|
||||
<i class="fa-solid fa-box-archive w-4 text-center text-sb-muted"></i>Packs
|
||||
</a>
|
||||
<a class="flex items-center gap-3 px-4 py-2.5 text-sm hover:bg-white/5" href="{{ route('academy.challenges.index') }}">
|
||||
<i class="fa-solid fa-trophy w-4 text-center text-sb-muted"></i>Challenges
|
||||
</a>
|
||||
<a class="flex items-center gap-3 px-4 py-2.5 text-sm border-t border-white/5 bg-white/[0.02] hover:bg-white/5" href="{{ route('academy.pricing') }}">
|
||||
<i class="fa-solid fa-credit-card w-4 text-center text-amber-200"></i>Pricing
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
{{-- COMMUNITY --}}
|
||||
<div class="relative">
|
||||
<button class="inline-flex items-center gap-1 px-3 py-2 rounded-lg transition-colors {{ $navSection === 'community' ? 'text-white bg-white/10' : 'hover:text-white hover:bg-white/5' }}"
|
||||
@@ -578,6 +613,24 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if(config('academy.enabled', true))
|
||||
<div class="pt-1">
|
||||
<button type="button" data-mobile-section-toggle aria-controls="mobileSectionAcademy" aria-expanded="{{ request()->is('academy', 'academy/*') ? 'true' : 'false' }}" class="w-full flex items-center justify-between py-2.5 px-3 rounded-lg text-[11px] font-semibold uppercase tracking-widest text-sb-muted hover:bg-white/5">
|
||||
<span>Academy</span>
|
||||
<i data-mobile-section-icon class="fa-solid fa-chevron-down text-xs transition-transform {{ request()->is('academy', 'academy/*') ? 'rotate-180' : '' }}"></i>
|
||||
</button>
|
||||
<div id="mobileSectionAcademy" data-mobile-section-panel class="{{ request()->is('academy', 'academy/*') ? '' : 'hidden ' }}mt-0.5 space-y-0.5">
|
||||
<a class="flex items-center gap-3 py-2.5 px-3 rounded-lg {{ request()->routeIs('academy.index') ? 'bg-white/10 text-white' : 'hover:bg-white/5' }}" href="{{ route('academy.index') }}"><i class="fa-solid fa-graduation-cap w-4 text-center text-sb-muted"></i>Academy Home</a>
|
||||
<a class="flex items-center gap-3 py-2.5 px-3 rounded-lg {{ request()->routeIs('academy.courses.*') ? 'bg-white/10 text-white' : 'hover:bg-white/5' }}" href="{{ route('academy.courses.index') }}"><i class="fa-solid fa-road w-4 text-center text-sb-muted"></i>Courses</a>
|
||||
<a class="flex items-center gap-3 py-2.5 px-3 rounded-lg {{ request()->routeIs('academy.lessons.*') ? 'bg-white/10 text-white' : 'hover:bg-white/5' }}" href="{{ route('academy.lessons.index') }}"><i class="fa-solid fa-book-open w-4 text-center text-sb-muted"></i>Lessons</a>
|
||||
<a class="flex items-center gap-3 py-2.5 px-3 rounded-lg {{ request()->routeIs('academy.prompts.*') ? 'bg-white/10 text-white' : 'hover:bg-white/5' }}" href="{{ route('academy.prompts.index') }}"><i class="fa-solid fa-wand-magic-sparkles w-4 text-center text-sb-muted"></i>Prompts</a>
|
||||
<a class="flex items-center gap-3 py-2.5 px-3 rounded-lg {{ request()->routeIs('academy.packs.*') ? 'bg-white/10 text-white' : 'hover:bg-white/5' }}" href="{{ route('academy.packs.index') }}"><i class="fa-solid fa-box-archive w-4 text-center text-sb-muted"></i>Packs</a>
|
||||
<a class="flex items-center gap-3 py-2.5 px-3 rounded-lg {{ request()->routeIs('academy.challenges.*') ? 'bg-white/10 text-white' : 'hover:bg-white/5' }}" href="{{ route('academy.challenges.index') }}"><i class="fa-solid fa-trophy w-4 text-center text-sb-muted"></i>Challenges</a>
|
||||
<a class="flex items-center gap-3 py-2.5 px-3 rounded-lg {{ request()->routeIs('academy.pricing', 'academy.billing.pricing') ? 'bg-white/10 text-white' : 'hover:bg-white/5' }}" href="{{ route('academy.pricing') }}"><i class="fa-solid fa-credit-card w-4 text-center text-sb-muted"></i>Pricing</a>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="pt-1">
|
||||
<button type="button" data-mobile-section-toggle aria-controls="mobileSectionCommunity" aria-expanded="false" class="w-full flex items-center justify-between py-2.5 px-3 rounded-lg text-[11px] font-semibold uppercase tracking-widest text-sb-muted hover:bg-white/5">
|
||||
<span>Community</span>
|
||||
|
||||
Reference in New Issue
Block a user