Move nav bar options to My Auditions menu to free space

This commit is contained in:
Matt Young 2024-08-08 11:51:50 -05:00
parent 03beecf65e
commit 2c39469592
3 changed files with 24 additions and 20 deletions

View File

@ -20,11 +20,11 @@
--> -->
<div class="absolute left-1/2 z-10 mt-5 flex w-screen max-w-min -translate-x-1/2 px-4" x-show="open" x-cloak> <div class="absolute left-1/2 z-10 mt-5 flex w-screen max-w-min -translate-x-1/2 px-4" x-show="open" x-cloak>
<div class="w-56 shrink rounded-xl bg-white p-4 text-sm font-semibold leading-6 text-gray-900 shadow-lg ring-1 ring-gray-900/5"> <div class="w-56 shrink rounded-xl bg-white p-4 text-sm font-semibold leading-6 text-gray-900 shadow-lg ring-1 ring-gray-900/5">
<a href="/admin" class="block p-2 hover:text-indigo-600">Admin Dashboard</a> <a href="{{route('admin.dashboard')}}" class="block p-2 hover:text-indigo-600">Admin Dashboard</a>
<a href="/admin/users" class="block p-2 hover:text-indigo-600">Users</a> <a href="{{route('admin.users.index')}}" class="block p-2 hover:text-indigo-600">Users</a>
<a href="/admin/schools" class="block p-2 hover:text-indigo-600">Schools</a> <a href="{{route('admin.schools.index')}}" class="block p-2 hover:text-indigo-600">Schools</a>
<a href="/admin/students" class="block p-2 hover:text-indigo-600">Students</a> <a href="{{route('admin.students.index')}}" class="block p-2 hover:text-indigo-600">Students</a>
<a href="/admin/entries" class="block p-2 hover:text-indigo-600">Entries</a> <a href="{{route('admin.entries.index')}}" class="block p-2 hover:text-indigo-600">Entries</a>
<a href="{{route('admin.view_logs')}}" class="block p-2 hover:text-indigo-600">View Logs</a> <a href="{{route('admin.view_logs')}}" class="block p-2 hover:text-indigo-600">View Logs</a>
</div> </div>
</div> </div>

View File

@ -1,7 +1,7 @@
<div x-data="{ open: false }"> <div x-data="{ open: false }" class="relative">
{{-- <button type="button" class="inline-flex items-center gap-x-1 text-sm font-semibold leading-6 text-gray-900" aria-expanded="false" @on:click=" open = ! open">--}} {{-- <button type="button" class="inline-flex items-center gap-x-1 text-sm font-semibold leading-6 text-gray-900" aria-expanded="false" @on:click=" open = ! open">--}}
<button type="button" class="inline-flex items-center gap-x-1 text-white rounded-md px-3 py-2 text-sm font-medium hover:bg-indigo-500 hover:bg-opacity-75" aria-expanded="false" @click=" open = ! open"> <button type="button" class="inline-flex items-center gap-x-1 text-white rounded-md px-3 py-2 text-sm font-medium hover:bg-indigo-500 hover:bg-opacity-75" aria-expanded="false" @click=" open = ! open" @click.outside=" open = false">
<span>My Auditions</span> <span>My Auditions</span>
<svg class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"> <svg class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
<path fill-rule="evenodd" d="M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z" clip-rule="evenodd" /> <path fill-rule="evenodd" d="M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z" clip-rule="evenodd" />
@ -20,14 +20,17 @@
--> -->
<div class="absolute left-1/2 z-10 mt-5 flex w-screen max-w-min -translate-x-1/2 px-4" x-show="open" x-cloak> <div class="absolute left-1/2 z-10 mt-5 flex w-screen max-w-min -translate-x-1/2 px-4" x-show="open" x-cloak>
<div class="w-56 shrink rounded-xl bg-white p-4 text-sm font-semibold leading-6 text-gray-900 shadow-lg ring-1 ring-gray-900/5"> <div class="w-56 shrink rounded-xl bg-white p-4 text-sm font-semibold leading-6 text-gray-900 shadow-lg ring-1 ring-gray-900/5">
<a href="/students" class="block p-2 hover:text-indigo-600">My Students</a> <a href="{{route('dashboard')}}" class="block p-2 hover:text-indigo-600">Dashboard</a>
<a href="/entries" class="block p-2 hover:text-indigo-600">My Entries</a> @if(Auth::user()->school_id)
<a href="my_school" class="block p-2 hover:text-indigo-600">My School</a> <a href="{{route('students.index')}}" class="block p-2 hover:text-indigo-600">My Students</a>
<a href="/profile" class="block p-2 hover:text-indigo-600">My Profile</a> <a href="{{route('entries.index')}}" class="block p-2 hover:text-indigo-600">My Entries</a>
<a href="{{route('my_school')}}" class="block p-2 hover:text-indigo-600">My School</a>
@endif
<a href="{{route('my_profile')}}" class="block p-2 hover:text-indigo-600">My Profile</a>
<form method="POST" action="/logout"> <form method="POST" action="/logout">
@csrf @csrf
<button <button
class="block p-2 hover:text-indigo-600"" class="block p-2 hover:text-indigo-600"
role="menuitem" role="menuitem"
tabindex="-1" tabindex="-1"
id="user-menu-item-2"> id="user-menu-item-2">

View File

@ -14,14 +14,15 @@
</div> </div>
<div class="hidden md:block"> <div class="hidden md:block">
<div class="ml-10 flex items-baseline space-x-4"> <div class="ml-10 flex items-baseline space-x-4">
<x-layout.navbar.nav-link href="{{ route('dashboard') }}" :active="request()->is('dashboard')">Dashboard @include('components.layout.navbar.menus.my_audition')
</x-layout.navbar.nav-link> {{-- <x-layout.navbar.nav-link href="{{ route('dashboard') }}" :active="request()->is('dashboard')">Dashboard--}}
@if(Auth::user()->school_id) {{-- </x-layout.navbar.nav-link>--}}
<x-layout.navbar.nav-link href="{{ route('students.index') }}" :active="request()->is('students')">Students {{-- @if(Auth::user()->school_id)--}}
</x-layout.navbar.nav-link> {{-- <x-layout.navbar.nav-link href="{{ route('students.index') }}" :active="request()->is('students')">Students--}}
<x-layout.navbar.nav-link href="{{ route('entries.index') }}" :active="request()->is('entries')">Entries {{-- </x-layout.navbar.nav-link>--}}
</x-layout.navbar.nav-link> {{-- <x-layout.navbar.nav-link href="{{ route('entries.index') }}" :active="request()->is('entries')">Entries--}}
@endif {{-- </x-layout.navbar.nav-link>--}}
{{-- @endif--}}
@if(Auth::user()->isJudge() AND Settings::get('judging_enabled')) @if(Auth::user()->isJudge() AND Settings::get('judging_enabled'))
<x-layout.navbar.nav-link href="{{ route('judging.index') }}" :active="request()->is('judging')">Judging <x-layout.navbar.nav-link href="{{ route('judging.index') }}" :active="request()->is('judging')">Judging
</x-layout.navbar.nav-link> </x-layout.navbar.nav-link>