Skip to content

Commit

Permalink
Fixed navigation menu
Browse files Browse the repository at this point in the history
  • Loading branch information
nasrulhazim committed Nov 28, 2024
1 parent e070b15 commit d60cb99
Showing 1 changed file with 6 additions and 43 deletions.
49 changes: 6 additions & 43 deletions resources/views/navigation-menu.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,6 @@ class="inline-flex items-center px-3 py-2 border border-transparent text-sm lead

<div class="border-t border-gray-200 dark:border-gray-600"></div>

@can('viewAdmin')
@endcan

<div class="border-t border-gray-200 dark:border-gray-600"></div>

<!-- Authentication -->
<form method="POST" action="{{ route('logout') }}" x-data>
@csrf
Expand Down Expand Up @@ -200,6 +195,12 @@ class="inline-flex items-center justify-center p-2 rounded-md text-gray-400 dark
</x-responsive-nav-link>
@endif

@can('viewAdmin')
<x-responsive-nav-link href="{{ route('administration.index') }}" target="_blank">
{{ __('Administration') }}
</x-responsive-nav-link>
@endcan

<!-- Authentication -->
<form method="POST" action="{{ route('logout') }}" x-data>
@csrf
Expand Down Expand Up @@ -242,44 +243,6 @@ class="inline-flex items-center justify-center p-2 rounded-md text-gray-400 dark
@endforeach
@endif
@endif

@can('viewAdmin')
<div class="border-t border-gray-200 dark:border-gray-600"></div>

<div class="block px-4 py-2 text-xs text-gray-400">
{{ __('Administration') }}
</div>

@can('viewTelescope')
<x-responsive-nav-link href="{{ url(config('telescope.path')) }}" target="_blank">
{{ __('Issues') }}
</x-responsive-nav-link>
@endcan

@can('viewHorizon')
<x-responsive-nav-link href="{{ url(config('horizon.path')) }}" target="_blank">
{{ __('Queues') }}
</x-responsive-nav-link>
@endcan

@can('viewAccessControl')
<x-responsive-nav-link href="{{ route('security.access-control.index') }}">
{{ __('Access Control') }}
</x-responsive-nav-link>
@endcan

@can('viewUser')
<x-responsive-nav-link href="{{ route('security.users.index') }}">
{{ __('User') }}
</x-responsive-nav-link>
@endcan

@can('viewAudit')
<x-responsive-nav-link href="{{ route('security.audit-trail.index') }}">
{{ __('Audit Trail') }}
</x-responsive-nav-link>
@endcan
@endcan
</div>
</div>
</div>
Expand Down

0 comments on commit d60cb99

Please sign in to comment.