[WIP] Order process with interactive methods
This commit is contained in:
@@ -56,7 +56,7 @@ class Shop
|
||||
'route' => 'Admin.Shop.Unities.index',
|
||||
])->activeIfRoute(['Admin.Shop.Unities.*'])->order(14);
|
||||
|
||||
$menu->addTo('shop', 'Accueil', [
|
||||
$menu->addTo('shop', 'Contenus', [
|
||||
'route' => 'Admin.Shop.Homepages.index',
|
||||
])->activeIfRoute(['Admin.Shop.Homepages.*'])->order(15);
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('shop.homepages.title'),
|
||||
'subtitle' => __('shop.homepages.add'),
|
||||
'title' => __('Contenus'),
|
||||
'subtitle' => __('Ajouter un contenu'),
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('shop.homepages.title'),
|
||||
'subtitle' => __('shop.homepages.edit'),
|
||||
'breadcrumb' => [__('shop.homepages.title')]
|
||||
'title' => __('Contenus'),
|
||||
'subtitle' => __('Editer un contenu'),
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('shop.homepages.title'),
|
||||
'subtitle' => __('shop.homepages.list'),
|
||||
'breadcrumb' => [__('shop.homepages.title')]
|
||||
'title' => __('Contenus'),
|
||||
'subtitle' => __('Liste des contenus'),
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
@@ -6,14 +6,16 @@
|
||||
<div class="row">
|
||||
<div class="col-8">
|
||||
@if (!App\Repositories\Shop\Customers::isConnected())
|
||||
Déja client ?
|
||||
<button class="btn">Créez mon compte</button>
|
||||
<p>
|
||||
<a href="#" id="customer" class="pr-5">Déja client ?</a>
|
||||
<button class="btn btn-secondary" id="register">Créez mon compte</button>
|
||||
</p>
|
||||
|
||||
<x-layout.collapse id="identification" title="Déjà client">
|
||||
<x-layout.collapse id="identification" title="Déjà client" class="d-none identification">
|
||||
@include('Shop.auth.partials.login')
|
||||
</x-layout.collapse>
|
||||
|
||||
<x-layout.collapse id="personal_data" title="Informations personnelles">
|
||||
<x-layout.collapse id="personal_data" title="Informations personnelles" class="d-none personal_data">
|
||||
@include('Shop.auth.partials.register')
|
||||
</x-layout.collapse>
|
||||
@endif
|
||||
@@ -43,5 +45,15 @@
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$('#customer').click(function() {
|
||||
$(".personal_data").addClass('d-none');
|
||||
$('.identification').removeClass('d-none');
|
||||
$('#identification').collapse('show');
|
||||
})
|
||||
$('#register').click(function() {
|
||||
$('.identification').addClass('d-none');
|
||||
$(".personal_data").removeClass('d-none');
|
||||
$('#personal_data').collapse('show');
|
||||
})
|
||||
</script>
|
||||
@endpush
|
||||
@@ -16,9 +16,14 @@
|
||||
</a>
|
||||
</li>
|
||||
<li class="dropdown-item">
|
||||
<a href="{{ route('Shop.logout') }}" title="Vous déconnectez" rel="nofollow">
|
||||
<span>Se déconnecter</span>
|
||||
<a href="#" onclick="event.preventDefault(); document.getElementById('logout-form').submit();">
|
||||
Déconnexion
|
||||
</a>
|
||||
|
||||
<form id="logout-form" action="{{ route('Shop.logout') }}" method="POST" style="display: none;">
|
||||
@csrf
|
||||
</form>
|
||||
|
||||
</li>
|
||||
@else
|
||||
<li class="dropdown-item">
|
||||
|
||||
Reference in New Issue
Block a user