This commit is contained in:
Ludovic CANDELLIER
2022-12-22 01:09:11 +01:00
parent ae39681cb0
commit 9698ba54d0
25 changed files with 298 additions and 195 deletions

View File

@@ -11,11 +11,11 @@
<button class="btn btn-secondary" id="register">Créez mon compte</button>
</p>
<x-layout.collapse id="identification" title="Déjà client" class="d-none identification">
<x-layout.collapse id="identification" title="Déjà client" class="d-none identification gradient-green1 rounded-lg">
@include('Shop.auth.partials.login')
</x-layout.collapse>
<x-layout.collapse id="personal_data" title="Informations personnelles" class="d-none personal_data">
<x-layout.collapse id="personal_data" title="Informations personnelles" class="d-none personal_data gradient-green1 rounded-lg">
@include('Shop.auth.partials.register')
</x-layout.collapse>
@endif
@@ -23,15 +23,15 @@
{{ Form::open(['route' => 'Shop.Orders.store', 'id' => 'order-form', 'autocomplete' => 'off']) }}
<div id="registred" @if (!App\Repositories\Shop\Customers::isConnected()) class="d-none" @endif>
<x-layout.collapse id="adresses" title="Adresses">
<x-layout.collapse id="adresses" title="Adresses" class="gradient-green1 rounded-lg">
@include('Shop.Orders.partials.addresses')
</x-layout.collapse>
<x-layout.collapse id="delivery_mode" title="Mode de livraison">
<x-layout.collapse id="delivery_mode" title="Mode de livraison" class="gradient-green1 rounded-lg">
@include('Shop.Orders.partials.deliveries')
</x-layout.collapse>
<x-layout.collapse id="payment" title="Paiement">
<x-layout.collapse id="payment" title="Paiement" class="gradient-green1 rounded-lg">
@include('Shop.Orders.partials.payments')
</x-layout.collapse>
</div>
@@ -40,24 +40,29 @@
</div>
<div class="col-4">
<x-card class='shadow bg-light'>
<x-card class='shadow gradient-green1'>
@include('Shop.Baskets.partials.basketTotal')
</x-card>
</div>
</div>
@endsection
@include('load.layout.chevron')
@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');
})
});
initChevron();
</script>
@endpush