diff --git a/resources/views/components/layout/navbar/nav-link-mobile.blade.php b/resources/views/components/layout/navbar/nav-link-mobile.blade.php new file mode 100644 index 0000000..607f3a1 --- /dev/null +++ b/resources/views/components/layout/navbar/nav-link-mobile.blade.php @@ -0,0 +1,7 @@ +@props(['active' => false, 'slot']) +@php($classes = $active ? ' bg-indigo-700 ' : ' hover:bg-indigo-500 hover:bg-opacity-75 ') +@php($classes .= ' block rounded-md px-3 py-2 text-base font-medium text-white ') +merge(['class' => $classes]) }} + aria-current="{{ $active ? 'page':'false' }}" + {{ $attributes }} +>{{ $slot }} diff --git a/resources/views/components/layout/navbar/navbar.blade.php b/resources/views/components/layout/navbar/navbar.blade.php index e50403e..72b5e1c 100644 --- a/resources/views/components/layout/navbar/navbar.blade.php +++ b/resources/views/components/layout/navbar/navbar.blade.php @@ -152,30 +152,50 @@
+{{-- MOBILE MENU ITEMS HERE--}} - Dashboard +{{-- Dashboard--}} + Dashboard + + @if(Auth::user()->school_id) + Students + + Entries + + @endif + @if(Auth::user()->isJudge() AND Settings::get('judging_enabled')) + Judging + + @endif + @if(Auth::user()->is_admin) + @include('components.layout.navbar.menus.admin') + @include('components.layout.navbar.menus.setup') + @endif + @if(Auth::user()->canTab()) + @include('components.layout.navbar.menus.tabulation') + @endif
-
- -
+{{--
--}} +{{-- --}} +{{--
--}}
{{ Auth::user()->full_name() }}
{{ Auth::user()->email }}
- +{{-- --}}