FleetCart/Modules/Admin/Resources/views/partials/top_nav.blade.php
2023-12-03 14:07:47 +00:00

42 lines
2.8 KiB
PHP

<nav class="navbar navbar-static-top clearfix">
<ul class="nav navbar-nav clearfix">
<li class="visit-store hidden-sm hidden-xs">
<a href="{{ route('home') }}" target="_blank">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<title>storefront-outline</title>
<path d="M5.06 3C4.63 3 4.22 3.14 3.84 3.42S3.24 4.06 3.14 4.5L2.11 8.91C1.86 10 2.06 10.95 2.72 11.77L3 12.05V19C3 19.5 3.2 20 3.61 20.39S4.5 21 5 21H19C19.5 21 20 20.8 20.39 20.39S21 19.5 21 19V12.05L21.28 11.77C21.94 10.95 22.14 10 21.89 8.91L20.86 4.5C20.73 4.06 20.5 3.7 20.13 3.42C19.77 3.14 19.38 3 18.94 3H5.06M18.89 4.97L19.97 9.38C20.06 9.81 19.97 10.2 19.69 10.55C19.44 10.86 19.13 11 18.75 11C18.44 11 18.17 10.9 17.95 10.66C17.73 10.43 17.61 10.16 17.58 9.84L16.97 5L18.89 4.97M5.06 5H7.03L6.42 9.84C6.3 10.63 5.91 11 5.25 11C4.84 11 4.53 10.86 4.31 10.55C4.03 10.2 3.94 9.81 4.03 9.38L5.06 5M9.05 5H11V9.7C11 10.05 10.89 10.35 10.64 10.62C10.39 10.88 10.08 11 9.7 11C9.36 11 9.07 10.88 8.84 10.59S8.5 10 8.5 9.66V9.5L9.05 5M13 5H14.95L15.5 9.5C15.58 9.92 15.5 10.27 15.21 10.57C14.95 10.87 14.61 11 14.2 11C13.89 11 13.61 10.88 13.36 10.62C13.11 10.35 13 10.05 13 9.7V5M7.45 12.05C8.08 12.67 8.86 13 9.8 13C10.64 13 11.38 12.67 12 12.05C12.69 12.67 13.45 13 14.3 13C15.17 13 15.92 12.67 16.55 12.05C17.11 12.67 17.86 13 18.8 13H19.03V19H5V13H5.25C6.16 13 6.89 12.67 7.45 12.05Z" />
</svg>
{{ trans('admin::admin.visit_store') }}
</a>
</li>
<li class="user dropdown top-nav-menu pull-right">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-user-circle-o"></i><span>{{ $currentUser->first_name }}</span>
</a>
<ul class="dropdown-menu">
<li><a href="{{ route('admin.profile.edit') }}">{{ trans('user::users.profile') }}</a></li>
<li><a href="{{ route('admin.logout') }}">{{ trans('user::auth.logout') }}</a></li>
</ul>
</li>
@if (count(supported_locales()) > 1)
<li class="language dropdown top-nav-menu pull-right">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<span>{{ strtoupper(locale()) }}</span>
</a>
<ul class="dropdown-menu">
@foreach (supported_locales() as $locale => $language)
<li class="{{ $locale === locale() ? 'active' : '' }}">
<a href="{{ localized_url($locale) }}">{{ $language['name'] }}</a>
</li>
@endforeach
</ul>
</li>
@endif
</ul>
</nav>