Feat: books published

This commit is contained in:
Sallu9007
2025-03-31 22:57:21 +05:30
parent b2060c47e2
commit 2aa0cf0449
11 changed files with 853 additions and 61 deletions

View File

@@ -30,6 +30,9 @@
<x-nav-link :href="route('admin.PublicationsResponses')" :active="request()->routeIs('admin.PublicationsResponses')">
{{ __('Publications') }}
</x-nav-link>
<x-nav-link :href="route('admin.BooksPublishedResponses')" :active="request()->routeIs('admin.BooksPublishedResponses')">
{{ __('Books Published') }}
</x-nav-link>
<!-- Coordinator Routes -->
@elseif(auth()->user()->role->name === 'Coordinator')
@@ -45,6 +48,9 @@
<x-nav-link :href="route('coordinator.PublicationsResponses')" :active="request()->routeIs('coordinator.PublicationsResponses')">
{{ __('Publications') }}
</x-nav-link>
<x-nav-link :href="route('coordinator.BooksPublishedResponses')" :active="request()->routeIs('coordinator.BooksPublishedResponses')">
{{ __('Books Published') }}
</x-nav-link>
<!-- Faculty Routes with Dropdowns -->
@elseif(auth()->user()->role->name === 'Faculty')
@@ -112,6 +118,21 @@
</div>
</div>
</div>
<!-- Books Published Dropdown -->
<div class="relative" x-data="{ open: false }">
<button @click="open = !open" @click.away="open = false" class="inline-flex items-center px-1 pt-1 border-b-2 border-transparent text-sm font-medium leading-5 text-gray-500 hover:text-gray-700 hover:border-gray-300 focus:outline-none focus:text-gray-700 focus:border-gray-300 transition duration-150 ease-in-out">
{{ __('Books Published') }}
<svg class="ml-1 -mr-0.5 h-4 w-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
<path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" />
</svg>
</button>
<div x-show="open" x-transition:enter="transition ease-out duration-100" x-transition:enter-start="transform opacity-0 scale-95" x-transition:enter-end="transform opacity-100 scale-100" x-transition:leave="transition ease-in duration-75" x-transition:leave-start="transform opacity-100 scale-100" x-transition:leave-end="transform opacity-0 scale-95" class="absolute z-50 mt-2 w-48 rounded-md shadow-lg origin-top-right right-0" style="display: none;">
<div class="rounded-md ring-1 ring-black ring-opacity-5 py-1 bg-white">
<a href="{{ route('faculty.BooksPublishedForm') }}" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">{{ __('Submit Response') }}</a>
<a href="{{ route('faculty.BooksPublishedResponses') }}" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">{{ __('View Responses') }}</a>
</div>
</div>
</div>
</div>
@endif
</div>