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

@@ -14,4 +14,18 @@ class CustomerController extends Controller
$data = Customers::editProfile($id);
return view('Shop.Customers.profile', $data);
}
public function modalProfile($id = false)
{
$data['old'] = Customers::get($id);
return view('Shop.Customers.partials.registration', $data);
}
public function storeProfileAjax(Request $request)
{
$data = $request->all();
$customer = Customers::store($data);
return response()->json(['error' => 0]);
}
}

View File

@@ -1,6 +1,27 @@
body {
font-family: 'noto_sanscondensed', sans-serif;
/* line-height: 1em!important; */
/*
background-image: linear-gradient(to right top, #1d382e, #234236, #2a4d3d, #315745, #39624c, #3a634d, #3a654d, #3b664e, #355e48, #2f5543, #2a4d3d, #254537);
*/
background: rgb(52,91,71);
background: linear-gradient(180deg, rgba(52,91,71,1) 0%, rgba(45,81,63,1) 10%, rgba(24,48,39,1) 90%, rgba(28,54,45,1) 100%);
background-size: cover;
background-attachment: fixed;
}
.gradient-green1 {
background: linear-gradient(to right top, #395339, #3c573a, #3f5b3c, #425f3d, #45633e);
}
.gradient-green2 {
background: linear-gradient(to right top, #2c5f45, #25503c, #1e4233, #19342a, #142620);
}
.gradient-yellow1 {
background-image: linear-gradient(to left top, #efeac9, #e3dcb8, #d7cea6, #cbc196, #bfb385);
}
.content-wrapper {
@@ -15,6 +36,19 @@ body {
background-color: #335012;
}
.bg-green-ultra-dark {
background: linear-gradient(to left top, #102723, #112723, #122724, #122724, #132724);
color: #a5b94f;
}
.bg-green-ultra-dark a {
color: #a5b94f;
}
.green-fluo {
color: #a5b94f!important;
}
.bg-green-light {
background-color: #F1F7EE;
}
@@ -52,7 +86,12 @@ a.green-dark:hover {
}
.bg-yellow {
background-color: #F2B90F;
background-color: #f4c234;
color: #19342a;
}
.bg-yellow-light {
background-color: #f9e7b4;
}
.bg-grey {
@@ -60,9 +99,14 @@ a.green-dark:hover {
}
.yellow {
color: #e5c551;
}
.yellow2 {
color: #F2B90F;
}
.light {
color: #F5F5F5;
}

View File

@@ -12,7 +12,7 @@
'data' => $article['offers']['plants'],
'title' => 'Plant',
'model' => 'plants',
'bgClass' => 'bg-green',
'bgClass' => 'bg-green-dark',
])
@endif
@@ -44,7 +44,6 @@
label: '{{ __('Commander') }}',
className: 'btn-success',
callback: function() {
console.log('ici');
window.location = "{{ route('Shop.Basket.basket') }}";
}
},

View File

@@ -1,5 +1,5 @@
<a href="{{ route('Shop.Articles.show', ['id' => $article['semences']['article_id'] ?? false ]) }}" class="{{ ($product_type == 'botanic') ? 'green-dark' : 'green-dark' }}">
<div class="card {{ ($article_nature == 'semences') ? 'bg-yellow' : 'bg-green-light' }}">
<div class="card {{ (($article_nature ?? false) == 'semences') ? 'bg-yellow' : 'bg-green-dark' }}">
<img src="{{ App\Repositories\Shop\Articles::getPreviewSrc($article['image'] ?? false) }}" class="card-img-top" alt="{{ $product_name }}">
<div class="card-body p-2 pb-1">
<div class="row card-title">

View File

@@ -1,36 +1,38 @@
<div class="row">
<div class="col-7">
@if ($article_nature == 'semences')
<strong>Semences</strong><br/>
<small>
{{ $article['semences']['variation'] ?? null }}
</small>
@endif
@if ($article_nature == 'plants')
<strong>Plants</strong><br/>
<small>
{{ $article['plants']['variation'] ?? null }}
</small>
@endif
@if ($article_nature ?? false)
<div class="row">
<div class="col-7">
@if ($article_nature == 'semences')
<strong>Semences</strong><br/>
<small>
{{ $article['semences']['variation'] ?? null }}
</small>
@endif
@if ($article_nature == 'plants')
<strong>Plants</strong><br/>
<small>
{{ $article['plants']['variation'] ?? null }}
</small>
@endif
</div>
<div class="col-5 text-right" style="font-weight: 700; font-size: 1.1em;">
@if ($article_nature == 'semences')
<span style="font-size: 1.4em">
@if ($article['semences'] ?? false)
{{ $article['semences']['price'] ?? null }}</span>
@else
-
@endif
</span><br/>
@endif
@if ($article_nature == 'plants')
<span style="font-size: 1.4em">
@if ($article['plants'] ?? false)
{{ $article['plants']['price'] }}</span>
@else
-
@endif
</span><br/>
@endif
</div>
</div>
<div class="col-5 text-right" style="font-weight: 700; font-size: 1.1em;">
@if ($article_nature == 'semences')
<span style="font-size: 1.4em">
@if ($article['semences'] ?? false)
{{ $article['semences']['price'] ?? null }}</span>
@else
-
@endif
</span><br/>
@endif
@if ($article_nature == 'plants')
<span style="font-size: 1.4em">
@if ($article['plants'] ?? false)
{{ $article['plants']['price'] }}</span>
@else
-
@endif
</span><br/>
@endif
</div>
</div>
@endif

View File

@@ -1,4 +1,4 @@
<div class="row pb-3 bg-light">
<div class="row pb-3">
<div class="col-9">
<div class="row pt-2">
<div class="col-10">

View File

@@ -17,7 +17,7 @@
</div>
</div>
@foreach ($basket as $nature => $items)
<div class="row ml-1 mb-3 p-2 bg-green-light border">
<div class="row ml-1 mb-3 p-2 @if ($nature == 'semences') bg-yellow @else bg-green-dark @endif border rounded-lg">
<div class="col-12">
<h2 style="font-size: 1.6em;" class="text-uppercase">{{ $nature }}</h2>
@foreach ($items as $item)
@@ -28,7 +28,7 @@
@endforeach
</div>
<div class="col-4">
<x-card class='shadow bg-light'>
<x-card class='shadow gradient-green1'>
@include('Shop.Baskets.partials.basketTotal')
<div class="row m-3">
<div class="col-12 text-center">

View File

@@ -1,6 +1,6 @@
<div class="row basket-row mb-3" id="basket_offer-{{ $item['id'] }}" data-id={{ $item['id'] }}>
<div class="col-2 text-center">
<img src="{{ $item['image'] }}" class="img-fluid border border-success">
<img src="{{ $item['image'] }}" class="img-fluid rounded">
</div>
<div class="col-10">
<h3 style="font-size: 1.4em;">{{ $item['name'] }}</h3>

View File

@@ -1,13 +1,14 @@
@foreach ($deliveries as $delivery)
<div class="row mt-3 mb-3">
<div class="col-1">
<div class="col-1 text-right">
@include('components.form.radios.icheck', [
'name' => 'delivery_id',
'id_name' => 'delivery_id_' . $delivery['id'],
'value' => $delivery['id'],
'checked' => $customer['sale_delivery_id'] ?? false,
])
</div>
<div class="col-11">
<div class="col-11 pt-1">
<strong>{{ $delivery['name'] }} - {{ $delivery['sale_channel']['name'] }}</strong><br/>
<p>{{ $delivery['description'] }}</p>
</div>

View File

@@ -1,20 +1,26 @@
<div class="mt-3">
@if ($customer['orders'] ?? false)
@if ($customer['orders'] ?? false)
<table class="table table-striped gradient-green1 green-fluo">
@foreach ($customer['orders'] as $order)
<div class="row mb-3">
<div class="col-1">
</div>
<div class="col-4">
<tr>
<td>
{{ Carbon\Carbon::parse($order['created_at'])->format('d-m-Y') }}
</td>
<td>
Numero facture
</div>
<div class="col-4">
Date facture
</div>
<div class="col-3">
<a href="">Imprimer</a>
<a href="">Télécharger</a>
</div>
</div>
</td>
<td class="text-right">
{{ $order['total_shipped'] }}
</td>
<td class="text-right">
<button class="btn btn-sm btn-secondary" data-id="{{ $order['id'] }}">
<i class="fa fa-fw fa-print" title="Imprimer"></i>
</button>
<button class="btn btn-sm btn-secondary" data-id="{{ $order['id'] }}">
<i class="fa fa-fw fa-file-pdf" title="Télécharger"></i>
</button>
</td>
</tr>
@endforeach
@endif
</div>
</table>
@endif

View File

@@ -0,0 +1,78 @@
<div class="row">
<div class="col-6">
<div class="form-group {{ $errors->has('first_name') ? 'has-error' : '' }}">
{{ Form::text('first_name', old('first_name'), ['class' => 'form-control', 'placeholder' => __('boilerplate::auth.fields.first_name'), 'required', 'autofocus']) }}
{!! $errors->first('first_name','<p class="text-danger"><strong>:message</strong></p>') !!}
</div>
</div>
<div class="col-6">
<div class="form-group {{ $errors->has('last_name') ? 'has-error' : '' }}">
{{ Form::text('last_name', old('last_name'), ['class' => 'form-control', 'placeholder' => __('boilerplate::auth.fields.last_name'), 'required']) }}
{!! $errors->first('last_name','<p class="text-danger"><strong>:message</strong></p>') !!}
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group {{ $errors->has('company') ? 'has-error' : '' }}">
{{ Form::text('company', old('company'), ['class' => 'form-control', 'placeholder' => __('Société'), 'autofocus']) }}
{!! $errors->first('company','<p class="text-danger"><strong>:message</strong></p>') !!}
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group {{ $errors->has('tva') ? 'has-error' : '' }}">
{{ Form::text('tva', old('tva'), ['class' => 'form-control', 'placeholder' => __('N° de TVA'), 'autofocus']) }}
{!! $errors->first('tva','<p class="text-danger"><strong>:message</strong></p>') !!}
</div>
</div>
</div>
<div class="row">
<div class="col-6">
<div class="form-group {{ $errors->has('email') ? 'has-error' : '' }}">
{{ Form::email('email', old('email'), ['class' => 'form-control', 'placeholder' => __('boilerplate::auth.fields.email'), 'required']) }}
{!! $errors->first('email','<p class="text-danger"><strong>:message</strong></p>') !!}
</div>
</div>
<div class="col-6">
<div class="form-group {{ $errors->has('phone') ? 'has-error' : '' }}">
{{ Form::text('phone', old('phone'), ['class' => 'form-control', 'placeholder' => __('phone')]) }}
{!! $errors->first('phone','<p class="text-danger"><strong>:message</strong></p>') !!}
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group {{ $errors->has('address') ? 'has-error' : '' }}">
{{ Form::text('address', old('address'), ['class' => 'form-control', 'placeholder' => __('Adresse de facturation'), 'required']) }}
{!! $errors->first('address','<p class="text-danger"><strong>:message</strong></p>') !!}
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group {{ $errors->has('address2') ? 'has-error' : '' }}">
{{ Form::text('address2', old('address2'), ['class' => 'form-control', 'placeholder' => __('Complément d\'adresse')]) }}
{!! $errors->first('address2','<p class="text-danger"><strong>:message</strong></p>') !!}
</div>
</div>
</div>
<div class="row">
<div class="col-4">
<div class="form-group {{ $errors->has('zipcode') ? 'has-error' : '' }}">
{{ Form::text('zipcode', old('zipcode'), ['class' => 'form-control', 'placeholder' => __('zipcode'), 'required']) }}
{!! $errors->first('zipcode','<p class="text-danger"><strong>:message</strong></p>') !!}
</div>
</div>
<div class="col-8">
<div class="form-group {{ $errors->has('city') ? 'has-error' : '' }}">
{{ Form::text('city', old('city'), ['class' => 'form-control', 'placeholder' => __('city'), 'required']) }}
{!! $errors->first('city','<p class="text-danger"><strong>:message</strong></p>') !!}
</div>
</div>
</div>

View File

@@ -10,10 +10,10 @@
</nav>
<div class="tab-content">
<div class="tab-pane fade show active pt-0 pb-0 pl-2 pr-2" id="deliveries">
<div class="tab-pane fade show active pt-0 pb-0" id="deliveries">
@include('Shop.Customers.partials.deliveries')
</div>
<div class="tab-pane fade show pt-0 pb-0 pl-2 pr-2" id="invoices">
<div class="tab-pane fade show pt-0 pb-0" id="invoices">
@include('Shop.Customers.partials.invoices')
</div>
</div>

View File

@@ -1,10 +1,37 @@
<hr>
<strong>Mes coordonnées</strong><br>
<i class="fa fa-home pr-2"></i> {{ $customer['first_name'] }} {{ $customer['first_name'] }} {{ $customer['company'] }}
<i class="fa fa-home pr-2"></i> {{ $customer['address'] }}<br>
<i class="pr-5"></i> {{ $customer['address2'] }}<br>
<x-card title="Mes coordonnées" class="mb-3 gradient-green1" outline=false classBody="pt-3" tools="<button id='profile_edit' class='btn btn-outline-warning'><i class='fa fa-fw fa-edit'></i></button>">
<i class="fa fa-phone pr-2"></i> {{ $customer['phone'] }}<br>
<i class="fa fa-envelope pr-2"></i> {{ $customer['email'] }}<br>
<hr>
<strong>Compte créé le {{ Carbon\Carbon::parse($customer['created_at'])->format('d-m-Y') }}</strong>
@if ($customer['company'])
<i class="fa fa-building pr-2"></i>
{{ $customer['company'] }}
@endif
<i class="fa fa-fw fa-user pr-2"></i>
{{ $customer['first_name'] }} {{ $customer['last_name'] }}
<hr>
<i class="fa fa-fw fa-home pr-2"></i>
{{ $customer['address'] }}<br>
@if ($customer['address2'])
<i class="fa fa-fw pr-2"></i> {{ $customer['address2'] }}<br>
@endif
<i class="fa fa-fw pr-2"></i> {{ $customer['zipcode'] }} {{ $customer['city'] }}<br>
<hr>
<i class="fa fa-fw fa-phone pr-2"></i> {{ $customer['phone'] }}<br>
<i class="fa fa-fw fa-envelope pr-2"></i> {{ $customer['email'] }}<br>
<hr>
<strong>Compte créé le {{ Carbon\Carbon::parse($customer['created_at'])->format('d-m-Y') }}</strong>
</x-card>
@push('js')
<script>
$('#profile_edit').click(function() {
openModal('Modification de vos coordonnées',
'profile-form',
"{{ route('Shop.Customers.modalProfile') }}/",
"{{ route('Shop.Customers.storeProfile') }}",
);
});
</script>
@endpush

View File

@@ -3,11 +3,14 @@
])
@section('content')
<div class="row">
<div class="col-3">
@include('Shop.Customers.partials.user')
</div>
<div class="col-9">
@include('Shop.Customers.partials.sale')
<div class="row">
<div class="col-3">
@include('Shop.Customers.partials.user')
</div>
<div class="col-9">
@include('Shop.Customers.partials.sale')
</div>
</div>
@endsection
@include('load.layout.modal')

View File

@@ -1,8 +1,8 @@
@if ($shelve['articles'])
<div class="mb-3 bg-green-light">
<div class="mb-3 bg-green-ultra-dark rounded-lg">
<div class="row">
<div class="col-6">
<h1 class="green p-2" style="font-size: 2em;">{{ $shelve['name'] }}</h1>
<h1 class="p-2" style="font-size: 2em;">{{ $shelve['name'] }}</h1>
</div>
<div class="col-6 text-right">
<a class="mt-2 btn btn-green-dark" href="{{ route('Shop.Categories.show', ['id' => $shelve['id']]) }}">Découvrir la sélection</a>
@@ -13,8 +13,8 @@
<div class="col-11 mx-auto shelve_slider_{{ $shelve['id'] }} slider">
@foreach ($shelve['articles'] as $name => $article)
<div class="text-center pr-2 pl-2">
<a class="green-dark" href="{{ route('Shop.Articles.show', ['id' => $article['id']]) }}">
<img data-lazy="{{ App\Repositories\Shop\Articles::getPreviewSrc($article['image'] ?? false) }}" class="d-block w-100" alt="{{ $name }}"/>
<a class="green-fluo" href="{{ route('Shop.Articles.show', ['id' => $article['id']]) }}">
<img data-lazy="{{ App\Repositories\Shop\Articles::getPreviewSrc($article['image'] ?? false) }}" class="d-block w-100 rounded" alt="{{ $name }}"/>
{{ $name }}
</a>
</div>

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

View File

@@ -2,83 +2,8 @@
<div class="row">
<div class="col-12">
<x-card title='Créez votre compte' class='mt-3 mb-3'>
<div class="row">
<div class="col-6">
<div class="form-group {{ $errors->has('first_name') ? 'has-error' : '' }}">
{{ Form::text('first_name', old('first_name'), ['class' => 'form-control', 'placeholder' => __('boilerplate::auth.fields.first_name'), 'required', 'autofocus']) }}
{!! $errors->first('first_name','<p class="text-danger"><strong>:message</strong></p>') !!}
</div>
</div>
<div class="col-6">
<div class="form-group {{ $errors->has('last_name') ? 'has-error' : '' }}">
{{ Form::text('last_name', old('last_name'), ['class' => 'form-control', 'placeholder' => __('boilerplate::auth.fields.last_name'), 'required']) }}
{!! $errors->first('last_name','<p class="text-danger"><strong>:message</strong></p>') !!}
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group {{ $errors->has('company') ? 'has-error' : '' }}">
{{ Form::text('company', old('company'), ['class' => 'form-control', 'placeholder' => __('Société'), 'autofocus']) }}
{!! $errors->first('company','<p class="text-danger"><strong>:message</strong></p>') !!}
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group {{ $errors->has('tva') ? 'has-error' : '' }}">
{{ Form::text('tva', old('tva'), ['class' => 'form-control', 'placeholder' => __('N° de TVA'), 'autofocus']) }}
{!! $errors->first('tva','<p class="text-danger"><strong>:message</strong></p>') !!}
</div>
</div>
</div>
<div class="row">
<div class="col-6">
<div class="form-group {{ $errors->has('email') ? 'has-error' : '' }}">
{{ Form::email('email', old('email'), ['class' => 'form-control', 'placeholder' => __('boilerplate::auth.fields.email'), 'required']) }}
{!! $errors->first('email','<p class="text-danger"><strong>:message</strong></p>') !!}
</div>
</div>
<div class="col-6">
<div class="form-group {{ $errors->has('phone') ? 'has-error' : '' }}">
{{ Form::text('phone', old('phone'), ['class' => 'form-control', 'placeholder' => __('phone')]) }}
{!! $errors->first('phone','<p class="text-danger"><strong>:message</strong></p>') !!}
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group {{ $errors->has('address') ? 'has-error' : '' }}">
{{ Form::text('address', old('address'), ['class' => 'form-control', 'placeholder' => __('Adresse de livraison'), 'required']) }}
{!! $errors->first('address','<p class="text-danger"><strong>:message</strong></p>') !!}
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group {{ $errors->has('address2') ? 'has-error' : '' }}">
{{ Form::text('address2', old('address2'), ['class' => 'form-control', 'placeholder' => __('Complément d\'adresse')]) }}
{!! $errors->first('address2','<p class="text-danger"><strong>:message</strong></p>') !!}
</div>
</div>
</div>
<div class="row">
<div class="col-4">
<div class="form-group {{ $errors->has('zipcode') ? 'has-error' : '' }}">
{{ Form::text('zipcode', old('zipcode'), ['class' => 'form-control', 'placeholder' => __('zipcode'), 'required']) }}
{!! $errors->first('zipcode','<p class="text-danger"><strong>:message</strong></p>') !!}
</div>
</div>
<div class="col-8">
<div class="form-group {{ $errors->has('city') ? 'has-error' : '' }}">
{{ Form::text('city', old('city'), ['class' => 'form-control', 'placeholder' => __('city'), 'required']) }}
{!! $errors->first('city','<p class="text-danger"><strong>:message</strong></p>') !!}
</div>
</div>
</div>
@include('Shop.Customers.partials.registration')
<div class="row">
<div class="col-6">
@@ -97,8 +22,8 @@
<div class="row">
<div class="col-12">
@include('components.form.checkbox', ['name' => 'use_for_invoice', 'value' => false])
Utiliser aussi cette adresse pour la facturation
@include('components.form.checkbox', ['name' => 'use_for_delivery', 'value' => false])
Utiliser une autre adresse pour la livraison
</div>
</div>

View File

@@ -7,7 +7,7 @@
@if (!empty($text))
<div class="row m-0 mb-3">
<div class="col-12 p-3 green-dark bg-yellow rounded drop-shadow" style="font-size: 1.2em;">{!! $text !!}</div>
<div class="col-12 p-3 green-dark bg-yellow-light rounded-lg drop-shadow" style="font-size: 1.2em;">{!! $text !!}</div>
</div>
@endif
@@ -27,7 +27,7 @@
$(document).ready(function() {
$('.slider').slick({
lazyLoad: 'ondemand',
slidesToShow: 6,
slidesToShow: 5,
slidesToScroll: 1,
dots: false,
autoplay: true,

View File

@@ -23,7 +23,7 @@
<body class="bg-green-dark">
<div class="container bg-white" style="min-height: 100vh;">
<div class="container bg-green-ultra-dark" style="min-height: 100vh;">
<main>
@include("Shop.layout.partials.header")
<div class="content-wrapper">

View File

@@ -1,6 +1,6 @@
<div class="row shadow mb-3">
<div class="col-12 pl-0">
<nav class="navbar navbar-expand-lg navbar-light bg-light ">
<div class="col-12 pl-0 pr-0">
<nav class="navbar navbar-expand-lg navbar-light gradient-green1">
<div class="collapse navbar-collapse" id="navbarContent">
<ul class="navbar-nav">
@foreach ($categories as $menu)

View File

@@ -4,16 +4,16 @@
@isset($header)
{{ $header }}
@else
<h3 class="card-title">{{ $title ?? false }}</h3>
@isset($tools)
<div class="card-tools">
<div class="card-tools float-right">
{!! $tools !!}
</div>
@endisset
<h3 class="card-title">{{ $title ?? false }}</h3>
@endisset
</div>
@endif
<div class="card-body {{ $title ?? false ? ($outline ?? config('boilerplate.theme.card.outline', false)) ? 'pt-0' : '' : '' }} {{ $class_body ?? '' }}">
<div class="card-body {{ $title ?? false ? ($outline ?? config('boilerplate.theme.card.outline', false)) ? 'pt-0' : '' : '' }} {{ $class_body ?? '' }} {{ $classBody ?? '' }}">
{{ $slot }}
</div>
@isset($footer)

View File

@@ -1,9 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
</head>
<body>
You canceled the payment.
</body>
</html>
@extends('Shop.layout.layout', [
'title' => __('Paiement annulé'),
])
@section('content')
Le paiement a été annulé.
@endsection

View File

@@ -1,9 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
</head>
<body>
It seems your payment has been refused.
</body>
</html>
@extends('Shop.layout.layout', [
'title' => __('Paiement refusé'),
])
@section('content')
Le paiement a été refusé.
@endsection

View File

@@ -3,4 +3,6 @@
Route::prefix('Clients')->name('Customers.')->group(function () {
Route::get('show/{id}', 'CustomerController@show')->name('show');
Route::get('profile/{id?}', 'CustomerController@profile')->name('profile');
Route::get('modalProfile/{id?}', 'CustomerController@modalProfile')->name('modalProfile');
Route::post('storeProfileAjax', 'CustomerController@storeProfileAjax')->name('storeProfile');
});

View File

@@ -13,6 +13,7 @@
// Auth::routes();
Route::get('login2', 'Shop\Auth\LoginController@showLoginForm')->name('login');
Route::get('', 'Shop\HomeController@index')->name('welcome');
Route::get('home', 'Shop\HomeController@index')->name('home');