add: Seperate dashboards for all types of users
This commit is contained in:
@@ -19,17 +19,17 @@
|
||||
@include('layouts.navigation')
|
||||
|
||||
<!-- Page Heading -->
|
||||
@isset($header)
|
||||
@hasSection('header')
|
||||
<header class="bg-white shadow">
|
||||
<div class="max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8">
|
||||
{{ $header }}
|
||||
@yield('header')
|
||||
</div>
|
||||
</header>
|
||||
@endisset
|
||||
@endif
|
||||
|
||||
<!-- Page Content -->
|
||||
<main>
|
||||
{{ $slot }}
|
||||
@yield('content')
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
@@ -15,6 +15,28 @@
|
||||
<x-nav-link :href="route('dashboard')" :active="request()->routeIs('dashboard')">
|
||||
{{ __('Dashboard') }}
|
||||
</x-nav-link>
|
||||
|
||||
<!-- <x-nav-link :href="route('admin.responses')" :active="request()->routeIs('admin.responses')">
|
||||
{{ __('View Form Responses') }}
|
||||
</x-nav-link> -->
|
||||
<!-- Role-specific Links -->
|
||||
@can('isAdmin')
|
||||
<x-nav-link :href="route('admin.responses')" :active="request()->routeIs('admin.responses')">
|
||||
{{ __('View Form Responses') }}
|
||||
</x-nav-link>
|
||||
@endcan
|
||||
|
||||
@can('isCoordinator')
|
||||
<x-nav-link :href="route('coordinator.responses')" :active="request()->routeIs('coordinator.responses')">
|
||||
{{ __('View Form Responses') }}
|
||||
</x-nav-link>
|
||||
@endcan
|
||||
|
||||
@can('isFaculty')
|
||||
<x-nav-link :href="route('faculty.responseForm')" :active="request()->routeIs('faculty.responseForm')">
|
||||
{{ __('Respond to a Form') }}
|
||||
</x-nav-link>
|
||||
@endcan
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -70,6 +92,25 @@
|
||||
<x-responsive-nav-link :href="route('dashboard')" :active="request()->routeIs('dashboard')">
|
||||
{{ __('Dashboard') }}
|
||||
</x-responsive-nav-link>
|
||||
|
||||
<!-- Role-specific Links -->
|
||||
@can('isAdmin')
|
||||
<x-responsive-nav-link :href="route('admin.responses')" :active="request()->routeIs('admin.responses')">
|
||||
{{ __('View Form Responses') }}
|
||||
</x-responsive-nav-link>
|
||||
@endcan
|
||||
|
||||
@can('isCoordinator')
|
||||
<x-responsive-nav-link :href="route('coordinator.responses')" :active="request()->routeIs('coordinator.responses')">
|
||||
{{ __('View Form Responses') }}
|
||||
</x-responsive-nav-link>
|
||||
@endcan
|
||||
|
||||
@can('isFaculty')
|
||||
<x-responsive-nav-link :href="route('faculty.responseForm')" :active="request()->routeIs('faculty.responseForm')">
|
||||
{{ __('Respond to a Form') }}
|
||||
</x-responsive-nav-link>
|
||||
@endcan
|
||||
</div>
|
||||
|
||||
<!-- Responsive Settings Options -->
|
||||
|
||||
Reference in New Issue
Block a user