service-captcha/resources/views/private/layout/_navigation.blade.php

35 lines
1.9 KiB
PHP
Raw Normal View History

<ul class="nav flex-column pt-3 pt-md-0">
<li class="nav-item">
<a href="{{ route('home') }}" class="nav-link d-flex align-items-center">
<span class="sidebar-icon">
<img src="{{ Vite::asset('resources/volt/images/brand/dark.png') }}" height="20" width="20" alt="Captcha service Logo">
</span>
<span class="mt-1 ms-1 sidebar-text">Captcha service</span>
</a>
</li>
<li @class([
'nav-item',
'active' => request()->route()->named('home')
])>
<a href="{{ route('home') }}" class="nav-link">
<span class="sidebar-icon">
<svg class="icon icon-xs me-2" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 10a8 8 0 018-8v8h8a8 8 0 11-16 0z"></path><path d="M12 2.252A8.014 8.014 0 0117.748 8H12V2.252z"></path></svg>
</span>
<span class="sidebar-text">{{ __('sections.Dashboard') }}</span>
</a>
</li>
@can('viewAny', \App\Models\Role::class)
<li @class([
'nav-item',
'active' => request()->route()->named('roles.*'),
])>
<a href="{{ route('roles.index') }}" class="nav-link">
<span class="sidebar-icon">
<svg class="icon icon-xs me-2" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9 2a1 1 0 000 2h2a1 1 0 100-2H9z"></path><path fill-rule="evenodd" d="M4 5a2 2 0 012-2 3 3 0 003 3h2a3 3 0 003-3 2 2 0 012 2v11a2 2 0 01-2 2H6a2 2 0 01-2-2V5zm3 4a1 1 0 000 2h.01a1 1 0 100-2H7zm3 0a1 1 0 000 2h3a1 1 0 100-2h-3zm-3 4a1 1 0 100 2h.01a1 1 0 100-2H7zm3 0a1 1 0 100 2h3a1 1 0 100-2h-3z" clip-rule="evenodd"></path></svg>
</span>
<span class="sidebar-text">{{ __('sections.User group') }}</span>
</a>
</li>
@endcan
</ul>