restart
This commit is contained in:
@@ -49,9 +49,7 @@
|
||||
$('.basket-quantity').change(function() {
|
||||
var offer_id = $(this).data('id');
|
||||
var quantity = $(this).val();
|
||||
var $row = $(this).parents('.row');
|
||||
console.log("add basket");
|
||||
console.log(quantity);
|
||||
var $row = $(this).closest('.row');
|
||||
updateBasket(offer_id, quantity, function() {
|
||||
calculatePrice($row);
|
||||
calculateTotal();
|
||||
@@ -73,8 +71,6 @@
|
||||
}
|
||||
|
||||
function calculatePrice($that) {
|
||||
console.log('calculatePrice');
|
||||
console.log($that);
|
||||
var quantity = $that.find('.basket-quantity').val();
|
||||
var price = $that.find('.basket-price').text();
|
||||
var total_price = fixNumber(quantity * price);
|
||||
|
||||
15
resources/views/Shop/Customers/partials/deliveries.blade.php
Normal file
15
resources/views/Shop/Customers/partials/deliveries.blade.php
Normal file
@@ -0,0 +1,15 @@
|
||||
@foreach ($deliveries as $delivery)
|
||||
<div class="row mt-3 mb-3">
|
||||
<div class="col-1">
|
||||
@include('components.form.radios.icheck', [
|
||||
'name' => 'delivery_id',
|
||||
'value' => $delivery['id'],
|
||||
'checked' => $customer['sale_delivery_id'] ?? false,
|
||||
])
|
||||
</div>
|
||||
<div class="col-11">
|
||||
<strong>{{ $delivery['name'] }} - {{ $delivery['sale_channel']['name'] }}</strong><br/>
|
||||
<p>{{ $delivery['description'] }}</p>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
20
resources/views/Shop/Customers/partials/invoices.blade.php
Normal file
20
resources/views/Shop/Customers/partials/invoices.blade.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<div class="mt-3">
|
||||
@if ($customer['orders'] ?? false)
|
||||
@foreach ($customer['orders'] as $order)
|
||||
<div class="row mb-3">
|
||||
<div class="col-1">
|
||||
</div>
|
||||
<div class="col-4">
|
||||
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>
|
||||
@endforeach
|
||||
@endif
|
||||
</div>
|
||||
19
resources/views/Shop/Customers/partials/sale.blade.php
Normal file
19
resources/views/Shop/Customers/partials/sale.blade.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<nav>
|
||||
<div class="nav nav-tabs pl-2">
|
||||
<a href="#deliveries" data-toggle="tab" class="nav-item nav-link active" role="tab" aria-controls="deliveries" aria-selected="true">
|
||||
MON MODE D'ACHAT
|
||||
</a>
|
||||
<a href="#invoices" data-toggle="tab" class="nav-item nav-link" role="tab" aria-controls="invoices" aria-selected="false">
|
||||
FACTURES ET SUIVI DE COMMANDES
|
||||
</a>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane fade show active pt-0 pb-0 pl-2 pr-2" id="deliveries">
|
||||
@include('Shop.Customers.partials.deliveries')
|
||||
</div>
|
||||
<div class="tab-pane fade show pt-0 pb-0 pl-2 pr-2" id="invoices">
|
||||
@include('Shop.Customers.partials.invoices')
|
||||
</div>
|
||||
</div>
|
||||
10
resources/views/Shop/Customers/partials/user.blade.php
Normal file
10
resources/views/Shop/Customers/partials/user.blade.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<hr>
|
||||
<strong>Mes coordonnées</strong><br>
|
||||
|
||||
<i class="fa fa-home pr-2"></i> {{ $customer['address'] }}<br>
|
||||
<i class="pr-5"></i> {{ $customer['address2'] }}<br>
|
||||
|
||||
<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 {{ $customer['created_at'] }}</strong>
|
||||
@@ -3,5 +3,11 @@
|
||||
])
|
||||
|
||||
@section('content')
|
||||
Profil
|
||||
<div class="row">
|
||||
<div class="col-3">
|
||||
@include('Shop.Customers.partials.user')
|
||||
</div>
|
||||
<div class="col-9">
|
||||
@include('Shop.Customers.partials.sale')
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@@ -1,13 +1,33 @@
|
||||
<div class="row">
|
||||
<div class="col-12 text-right">
|
||||
@if ($display_by_rows ?? false)
|
||||
@include('components.form.button', ['id' => 'by_cards', 'icon' => 'fa-th', 'class' => 'btn-secondary'])
|
||||
@include('components.form.button', [
|
||||
'id' => 'by_cards',
|
||||
'icon' => 'fa-th',
|
||||
'class' => 'btn-secondary',
|
||||
'title' => 'Vue par vignettes',
|
||||
])
|
||||
@else
|
||||
@include('components.form.button', ['id' => 'by_rows', 'icon' => 'fa-list', 'class' => 'btn-secondary'])
|
||||
@include('components.form.button', [
|
||||
'id' => 'by_rows',
|
||||
'icon' => 'fa-list',
|
||||
'class' => 'btn-secondary',
|
||||
'title' => 'Vue par lignes',
|
||||
])
|
||||
@endif
|
||||
|
||||
@include('components.form.button', ['data_id' => 'botanic', 'icon' => 'fa-leaf', 'class' => 'products bg-yellow yellow-dark'])
|
||||
@include('components.form.button', ['data_id' => 'merchandise', 'icon' => 'fa-seedling', 'class' => 'products bg-green text-white'])
|
||||
@include('components.form.button', [
|
||||
'data_id' => 'botanic',
|
||||
'icon' => 'fa-leaf',
|
||||
'class' => 'products bg-yellow yellow-dark',
|
||||
'title' => 'Par semences',
|
||||
])
|
||||
@include('components.form.button', [
|
||||
'data_id' => 'merchandise',
|
||||
'icon' => 'fa-seedling',
|
||||
'class' => 'products bg-green text-white',
|
||||
'title' => 'Par plants',
|
||||
])
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
@else
|
||||
@include('Shop.Shelves.partials.category_articles')
|
||||
@endif
|
||||
</form>
|
||||
{{ Form::close() }}
|
||||
|
||||
@endsection
|
||||
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
@extends('boilerplate::auth.layout', [
|
||||
'title' => __('boilerplate::auth.firstlogin.title'),
|
||||
'bodyClass' => 'hold-transition login-page'
|
||||
])
|
||||
|
||||
@section('content')
|
||||
@component('boilerplate::auth.loginbox')
|
||||
{{ Form::open(['route' => 'boilerplate.users.firstlogin', 'autocomplete' => 'off']) }}
|
||||
<input type="hidden" name="token" value="{{ $token }}">
|
||||
<div class="alert alert-info">
|
||||
<p>{{ __('boilerplate::auth.firstlogin.intro') }}</p>
|
||||
</div>
|
||||
<div class="form-group {{ $errors->has('password') ? 'has-error' : '' }}">
|
||||
{{ Form::label('password', __('boilerplate::auth.fields.password')) }}
|
||||
{{ Form::input('password', 'password', Request::old('password'), ['class' => 'form-control', 'autofocus']) }}
|
||||
{!! $errors->first('password','<p class="text-danger">:message</p>') !!}
|
||||
</div>
|
||||
<div class="form-group {{ $errors->has('password_confirmation') ? 'has-error' : '' }}">
|
||||
{{ Form::label('password_confirmation', __('boilerplate::auth.fields.password_confirm')) }}
|
||||
{{ Form::input('password', 'password_confirmation', Request::old('password_confirmation'), ['class' => 'form-control']) }}
|
||||
{!! $errors->first('password_confirmation','<p class="text-danger">:message</p>') !!}
|
||||
</div>
|
||||
<div class="form-group text-center">
|
||||
<button type="submit" class="btn btn-primary">
|
||||
{{ __('boilerplate::auth.firstlogin.button') }}
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
@endcomponent
|
||||
@endsection
|
||||
@@ -1,25 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ App::getLocale() }}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="robots" content="noindex, nofollow">
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
<title>{{ $title }} | {{ config('app.name') }}</title>
|
||||
<link rel="stylesheet" href="{{ mix('/adminlte.min.css', '/assets/vendor/boilerplate') }}">
|
||||
@stack('css')
|
||||
</head>
|
||||
<body class="{{ $bodyClass ?? 'login-page'}}">
|
||||
|
||||
<div class="row" style="width: 380px;">
|
||||
<div class="col-12 text-center">
|
||||
<img src="/img/logo.png" height="128">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@yield('content')
|
||||
<script src="{{ mix('/boilerplate.min.js', '/assets/vendor/boilerplate') }}"></script>
|
||||
@stack('js')
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,14 +0,0 @@
|
||||
@extends('Shop.auth.layout', [
|
||||
'title' => __('boilerplate::auth.login.title'),
|
||||
'bodyClass' => 'hold-transition login-page'
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
@include('Shop.auth.partials.login')
|
||||
|
||||
<p class="mt-3">
|
||||
Vous n'avez pas encore de compte ?
|
||||
<a href="{{ route('Shop.register') }}" class="text-center">{{ __('Inscrivez-vous') }}</a>
|
||||
</p>
|
||||
@endsection
|
||||
@@ -1,42 +0,0 @@
|
||||
{!! Form::open(['route' => 'Shop.login.post', 'method' => 'post', 'autocomplete'=> 'off']) !!}
|
||||
|
||||
<div class="form-group has-feedback">
|
||||
<div class="input-group form-group {{ $errors->has('email') ? 'has-error' : '' }}">
|
||||
{{ Form::email('email', old('email'), ['class' => 'form-control', 'placeholder' => __('boilerplate::auth.fields.email'), 'required', 'autofocus']) }}
|
||||
<div class="input-group-append">
|
||||
<button class="btn btn-outline-secondary">
|
||||
<i class="fa fa-at"></i>
|
||||
</button>
|
||||
</div>
|
||||
{!! $errors->first('email','<p class="text-danger"><strong>:message</strong></p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group has-feedback">
|
||||
<div class="input-group form-group {{ $errors->has('password') ? 'has-error' : '' }}">
|
||||
{{ Form::password('password', ['class' => 'form-control', 'placeholder' => __('boilerplate::auth.fields.password')]) }}
|
||||
<div class="input-group-append">
|
||||
<button class="btn btn-outline-secondary">
|
||||
<i class="fa fa-lock"></i>
|
||||
</button>
|
||||
</div>
|
||||
{!! $errors->first('password','<p class="text-danger"><strong>:message</strong></p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-12 col-lg-6 mbs">
|
||||
<button type="submit" class="btn btn-primary btn-block btn-flat">{{ __('Se connecter') }}</button>
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-lg-6">
|
||||
<a href="{{ route('Shop.password.request') }}">{{ __('Mot de passe oublié ?') }}</a><br>
|
||||
<!--
|
||||
<div class="checkbox icheck">
|
||||
<label style="padding-left: 0">
|
||||
<input type="checkbox" name="remember" class="icheck" {{ old('remember') ? 'checked' : '' }}>
|
||||
{{ __('boilerplate::auth.login.rememberme') }}
|
||||
</label>
|
||||
</div>
|
||||
-->
|
||||
</div>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
@@ -1,16 +0,0 @@
|
||||
{!! Form::open(['route' => 'Shop.password.email', 'method' => 'post', 'autocomplete'=> 'off']) !!}
|
||||
<div class="form-group {{ $errors->has('email') ? 'has-error' : '' }}">
|
||||
{{ Form::email('email', old('email'), ['class' => 'form-control', 'placeholder' => __('boilerplate::auth.fields.email'), 'required', 'autofocus']) }}
|
||||
{!! $errors->first('email','<p class="text-danger"><strong>:message</strong></p>') !!}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 text-center">
|
||||
<button type="submit" class="btn btn-primary">
|
||||
{{ __('boilerplate::auth.password.submit') }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
<a href="{{ route('Shop.login') }}">{{ __('boilerplate::auth.password.login_link') }}</a><br>
|
||||
@@ -1,117 +0,0 @@
|
||||
{!! Form::open(['route' => 'Shop.register.post', 'method' => 'post', 'autocomplete'=> 'off']) !!}
|
||||
<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'), 'required']) }}
|
||||
{!! $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>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<div class="form-group {{ $errors->has('password') ? 'has-error' : '' }}">
|
||||
{{ Form::password('password', ['class' => 'form-control', 'placeholder' => __('boilerplate::auth.fields.password'), 'required']) }}
|
||||
{!! $errors->first('password','<p class="text-danger"><strong>:message</strong></p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<div class="form-group {{ $errors->has('password_confirmation') ? 'has-error' : '' }}">
|
||||
{{ Form::password('password_confirmation', ['class' => 'form-control', 'placeholder' => __('boilerplate::auth.fields.password_confirm'), 'required']) }}
|
||||
{!! $errors->first('password_confirmation','<p class="text-danger"><strong>:message</strong></p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
@include('components.form.checkbox', ['name' => 'use_for_invoice', 'value' => false])
|
||||
Utiliser aussi cette adresse pour la facturation
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</x-card>
|
||||
|
||||
<div class="row mbm">
|
||||
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 text-center">
|
||||
<button type="submit" class="btn btn-primary">
|
||||
{{ __('boilerplate::auth.register.register_button') }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
@@ -1,47 +0,0 @@
|
||||
<div class="modal fade" id="changepasswordModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<form role="form" id="password-form-data" method="post" autocomplete="off">
|
||||
{{ csrf_field() }}
|
||||
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="exampleModalLabel">{{ __('change_your_password') }}</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
</div>
|
||||
|
||||
<div class="modal-body">
|
||||
<div class="row" style="padding: 10px 20px;">
|
||||
<div class="col-xs-12 text-center" id="changePasswordMessage"></div>
|
||||
</div>
|
||||
<div class="row" style="padding: 10px 20px;">
|
||||
<label for="new-password" class="col-md-6 control-label text-right">{{ __('current_password') }}</label>
|
||||
<div class="col-md-6">
|
||||
<input id="current-password" type="password" class="form-control" name="current-password" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" style="padding: 10px 20px;">
|
||||
<label for="new-password" class="col-md-6 control-label text-right">{{ __('new_password') }}</label>
|
||||
|
||||
<div class="col-md-6">
|
||||
<input id="new-password" type="password" class="form-control" name="new-password" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" style="padding: 10px 20px;">
|
||||
<label for="new-password-confirm" class="col-md-6 control-label text-right">{{ __('confirm_new_password') }}</label>
|
||||
|
||||
<div class="col-md-6">
|
||||
<input id="new-password-confirm" type="password" class="form-control" name="new-password_confirmation" required>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-primary" id="changePassword-submit">
|
||||
{{ __('save') }}
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,13 +0,0 @@
|
||||
@extends('Shop.auth.layout', ['title' => __('boilerplate::auth.password.title'), 'bodyClass' => 'hold-transition login-page'])
|
||||
|
||||
@section('content')
|
||||
|
||||
<p class="login-box-msg">{{ __('boilerplate::auth.password.intro') }}</p>
|
||||
@if (session('status'))
|
||||
<div class="alert alert-success">
|
||||
{{ session('status') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@include('Shop.auth.partials.lost_password')
|
||||
@endsection
|
||||
@@ -1,30 +0,0 @@
|
||||
@extends('Shop.auth.layout', [
|
||||
'title' => __('boilerplate::auth.password_reset.title'),
|
||||
'bodyClass' => 'hold-transition login-page'
|
||||
])
|
||||
|
||||
@section('content')
|
||||
@component('boilerplate::auth.loginbox')
|
||||
<p class="login-box-msg">{{ __('boilerplate::auth.password_reset.intro') }}</p>
|
||||
{!! Form::open(['route' => 'Shop.password.update', 'method' => 'post', 'autocomplete'=> 'off']) !!}
|
||||
{!! Form::hidden('token', $token) !!}
|
||||
<div class="form-group {{ $errors->has('email') ? 'has-error' : '' }}">
|
||||
{{ Form::email('email', old('email', $email), ['class' => 'form-control', 'placeholder' => __('boilerplate::auth.fields.email'), 'required', 'autofocus']) }}
|
||||
{!! $errors->first('email','<p class="text-danger"><strong>:message</strong></p>') !!}
|
||||
</div>
|
||||
<div class="form-group {{ $errors->has('password') ? 'has-error' : '' }}">
|
||||
{{ Form::password('password', ['class' => 'form-control', 'placeholder' => __('boilerplate::auth.fields.password'), 'required']) }}
|
||||
{!! $errors->first('password','<p class="text-danger"><strong>:message</strong></p>') !!}
|
||||
</div>
|
||||
<div class="form-group {{ $errors->has('password_confirmation') ? 'has-error' : '' }}">
|
||||
{{ Form::password('password_confirmation', ['class' => 'form-control', 'placeholder' => __('boilerplate::auth.fields.password_confirm'), 'required']) }}
|
||||
{!! $errors->first('password_confirmation','<p class="text-danger"><strong>:message</strong></p>') !!}
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 text-center">
|
||||
<button class="btn btn-primary" type="submit">{{ __('boilerplate::auth.password_reset.submit') }}</button>
|
||||
</div>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
@endcomponent
|
||||
@endsection
|
||||
@@ -1,8 +0,0 @@
|
||||
@extends('Shop.layout.layout', [
|
||||
'title' => __('home.title'),
|
||||
'bodyClass' => 'hold-transition login-page'
|
||||
])
|
||||
|
||||
@section('content')
|
||||
@include('Shop.auth.partials.register')
|
||||
@endsection
|
||||
@@ -1,24 +0,0 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-8">
|
||||
<div class="card">
|
||||
<div class="card-header">{{ __('Verify Your Email Address') }}</div>
|
||||
|
||||
<div class="card-body">
|
||||
@if (session('resent'))
|
||||
<div class="alert alert-success" role="alert">
|
||||
{{ __('A fresh verification link has been sent to your email address.') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
{{ __('Before proceeding, please check your email for a verification link.') }}
|
||||
{{ __('If you did not receive the email') }}, <a href="{{ route('verification.resend') }}">{{ __('click here to request another') }}</a>.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@@ -20,19 +20,19 @@
|
||||
Déconnexion
|
||||
</a>
|
||||
|
||||
<form id="logout-form" action="{{ route('Shop.logout') }}" method="POST" style="display: none;">
|
||||
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
|
||||
@csrf
|
||||
</form>
|
||||
|
||||
</li>
|
||||
@else
|
||||
<li class="dropdown-item">
|
||||
<a href="{{ route('Shop.login') }}" title="Identifiez-vous" rel="nofollow">
|
||||
<a href="{{ route('login') }}" title="Identifiez-vous" rel="nofollow">
|
||||
<span>Connexion</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="dropdown-item">
|
||||
<a href="{{ route('Shop.register') }}" title="Enregistrez-vous" rel="nofollow">
|
||||
<a href="{{ route('register') }}" title="Enregistrez-vous" rel="nofollow">
|
||||
<span>Creer votre compte</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user