elektronikamaster blade auth
This commit is contained in:
parent
95aa2ec6e8
commit
2dbd2af067
|
|
@ -7,10 +7,9 @@
|
|||
}
|
||||
$cart = cart()->getCart();
|
||||
?>
|
||||
|
||||
<my-mobile-nav></my-mobile-nav>
|
||||
|
||||
@push('scripts')
|
||||
@auth('customer')
|
||||
<script type="text/x-template" id="profile-btn-template">
|
||||
<div class="login logged-true logged" @click.prevent="toggleProfileDropdown">
|
||||
<button type="button" class="nav-link">
|
||||
|
|
@ -21,7 +20,18 @@
|
|||
</button>
|
||||
</div>
|
||||
</script>
|
||||
|
||||
<script>
|
||||
Vue.component('profile-btn', {
|
||||
template: '#profile-btn-template',
|
||||
methods: {
|
||||
toggleProfileDropdown() {
|
||||
let obj = document.querySelector('.profile-dropdown')
|
||||
obj.classList.toggle('shown')
|
||||
}
|
||||
}
|
||||
})
|
||||
</script>
|
||||
@endauth
|
||||
<script type="text/x-template" id="my-mobile-nav-template">
|
||||
<nav class="nav-block container">
|
||||
<div class="burger-mobile" @click.capture="closeMobileMenu($event)">
|
||||
|
|
@ -313,21 +323,8 @@
|
|||
</div>
|
||||
</nav>
|
||||
</script>
|
||||
<script>
|
||||
|
||||
</script>
|
||||
|
||||
<script>
|
||||
Vue.component('profile-btn', {
|
||||
template: '#profile-btn-template',
|
||||
methods: {
|
||||
toggleProfileDropdown() {
|
||||
let obj = document.querySelector('.profile-dropdown')
|
||||
obj.classList.toggle('shown')
|
||||
}
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<script>
|
||||
Vue.component('my-mobile-nav', {
|
||||
|
|
|
|||
|
|
@ -19,19 +19,16 @@
|
|||
<div class="flag-wrapper">
|
||||
<img src="{{ core()->getCurrentLocale()->image_url }}" alt="" width="30" height="20" />
|
||||
</div>
|
||||
|
||||
<div class="language-wrapper">
|
||||
<span class="language">{{ core()->getCurrentLocale()->name }}</span>
|
||||
<ul class="language-list hidden" id="locale-switcher" onchange="window.location.href = this.value"
|
||||
@if (count(core()->getCurrentChannel()->locales) == 1) disabled="disabled" @endif>
|
||||
|
||||
@foreach (core()->getCurrentChannel()->locales as $locale)
|
||||
@if (isset($serachQuery))
|
||||
<li class="language-el" {{ $locale->code == app()->getLocale() ? 'selected' : '' }}><a href="?{{ $serachQuery }}&locale={{ $locale->code }}">{{ $locale->name }}</a></li>
|
||||
@else
|
||||
<li class="language-el" {{ $locale->code == app()->getLocale() ? 'selected' : '' }}><a href="?locale={{ $locale->code }}">{{ $locale->name }}</a></li>
|
||||
@endif
|
||||
@endforeach
|
||||
<ul class="language-list hidden" id="locale-switcher" onchange="window.location.href = this.value">
|
||||
@foreach (core()->getCurrentChannel()->locales as $locale)
|
||||
@if (isset($serachQuery))
|
||||
<li class="language-el" {{ $locale->code == app()->getLocale() ? 'selected' : '' }}><a href="?{{ $serachQuery }}&locale={{ $locale->code }}">{{ $locale->name }}</a></li>
|
||||
@else
|
||||
<li class="language-el" {{ $locale->code == app()->getLocale() ? 'selected' : '' }}><a href="?locale={{ $locale->code }}">{{ $locale->name }}</a></li>
|
||||
@endif
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -9,24 +9,23 @@
|
|||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
<meta http-equiv="content-language" content="{{ app()->getLocale() }}">
|
||||
<meta name="format-detection" content="telephone=no">
|
||||
@if ($favicon = core()->getCurrentChannel()->favicon_url)
|
||||
<link rel="icon" sizes="16x16" href="{{ $favicon }}" />
|
||||
@else
|
||||
<link rel="icon" sizes="16x16" href="{{ bagisto_asset('images/favicon.ico') }}" />
|
||||
@if ($favicon = core()->getCurrentChannel()->favicon_url)
|
||||
<link rel="icon" sizes="16x16" href="{{ $favicon }}" />
|
||||
@else
|
||||
<link rel="icon" sizes="16x16" href="{{ bagisto_asset('images/favicon.ico') }}" />
|
||||
@endif
|
||||
@yield('head')
|
||||
@section('seo')
|
||||
@if (! request()->is('/'))
|
||||
<meta name="description" content="{{ core()->getCurrentChannel()->description }}"/>
|
||||
@endif
|
||||
@yield('head')
|
||||
@section('seo')
|
||||
@if (! request()->is('/'))
|
||||
<meta name="description" content="{{ core()->getCurrentChannel()->description }}"/>
|
||||
@endif
|
||||
@show
|
||||
@stack('css_before')
|
||||
@show
|
||||
@stack('css_before')
|
||||
<link rel="stylesheet" href="{{bagisto_asset('styles/style.css')}}" />
|
||||
@stack('css')
|
||||
<style>
|
||||
{!! core()->getConfigData('general.content.custom_scripts.custom_css') !!}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
<body style="scroll-behavior: smooth;">
|
||||
@include('shop::layouts.header.top-nav')
|
||||
|
|
|
|||
Loading…
Reference in New Issue