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