add: Seperate dashboards for all types of users
This commit is contained in:
@@ -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