Compare commits
No commits in common. "master" and "develop-laileoulacuisse" have entirely different histories.
master
...
develop-la
10
README.txt
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
Thème pour la boutique du laileoulacuisse
|
||||
nom recommandé de dossier pour le checkout : laileoulacuisse
|
||||
|
||||
se placer dans le dossier : resources\views\front\laileoulacuisse
|
||||
|
||||
puis :
|
||||
git init
|
||||
git remote add origin https://ldc-web:phaeZ6ej@voight001.lesidc.com/boutique-cnc-themes
|
||||
git fetch origin
|
||||
git checkout -b laileoulacuisse --track origin/laileoulacuisse
|
||||
18
auth/activate.blade.php
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
@extends('layouts.layout')
|
||||
|
||||
@section('title', __('Inscription'))
|
||||
|
||||
@section('content')
|
||||
<div class="hero-banner">
|
||||
<div class="hero-banner__wrapper wrapper">
|
||||
<img src="{{ asset(config('app.theme').'/img/hero_login.jpg') }}" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="login-page section">
|
||||
<h1 class="login-page__title title">Inscription</h1>
|
||||
<div class="auth-form auth-form_register">
|
||||
<p>{{ $message }}</p>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
50
auth/login-bo.blade.php
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
@extends('layouts.layout')
|
||||
|
||||
@section('title', __('Connexion'))
|
||||
|
||||
@section('content')
|
||||
<div class="hero-banner">
|
||||
<div class="hero-banner__wrapper wrapper">
|
||||
<img src="{{ asset(config('app.theme').'/img/hero_login.jpg') }}" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="login-page section">
|
||||
<h1 class="login-page__title title">Connexion BO</h1>
|
||||
|
||||
<div class="auth-form">
|
||||
<form action="{{ route('auth.login.post') }}" method="POST">
|
||||
@csrf
|
||||
@if ($errors->any())
|
||||
<div class="form__error">
|
||||
<ul>
|
||||
@foreach ($errors->all() as $error)
|
||||
<li>{{ $error }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
<div class="form__field">
|
||||
<input class="form__input" type="text" name="email" placeholder="Email*" required />
|
||||
</div>
|
||||
<div class="form__field">
|
||||
<input class="form__input" type="password" name="password" placeholder="Mot de passe*" required />
|
||||
</div>
|
||||
<div class="form__field">
|
||||
<label class="custom-input custom-input_checkbox">
|
||||
<input type="checkbox" name="remember" />
|
||||
<span class="checkmark"></span>
|
||||
<span>Se souvenir de moi</span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="form__field form__submit">
|
||||
<button class="form__btn btn btn_blue">Connexion</button>
|
||||
</div>
|
||||
|
||||
<div class="form__links">
|
||||
<a href="#}">J’ai oublié mon mot de passe</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
55
auth/login.blade.php
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
@extends('layouts.layout')
|
||||
|
||||
@section('title', __('Connexion'))
|
||||
|
||||
@section('content')
|
||||
<div class="hero-banner">
|
||||
<div class="hero-banner__wrapper wrapper">
|
||||
<img src="{{ asset(config('app.theme').'/img/hero_login.jpg') }}" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="login-page section">
|
||||
<h1 class="login-page__title title">Connexion</h1>
|
||||
|
||||
<div class="auth-form">
|
||||
<form action="{{ route('auth.connexion.post') }}" method="POST">
|
||||
@csrf
|
||||
@if ($errors->any())
|
||||
<div class="form__error">
|
||||
<ul>
|
||||
@foreach ($errors->all() as $error)
|
||||
<li>{{ $error }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
<div class="form__field">
|
||||
<input class="form__input" type="text" name="email" placeholder="Email*" required />
|
||||
</div>
|
||||
<div class="form__field">
|
||||
<input class="form__input" type="password" name="password" placeholder="Mot de passe*" required />
|
||||
</div>
|
||||
<div class="form__field">
|
||||
<label class="custom-input custom-input_checkbox">
|
||||
<input type="checkbox" name="remember" />
|
||||
<span class="checkmark"></span>
|
||||
<span>Se souvenir de moi</span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="form__field form__submit">
|
||||
<button class="form__btn btn btn_blue">Connexion</button>
|
||||
</div>
|
||||
|
||||
<div class="form__links">
|
||||
<a href="{{ route('auth.forgot-password') }}">J’ai oublié mon mot de passe</a>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div class="auth-form__links">
|
||||
<a href="{{ route('auth.register') }}">Pas encore de compte ?</a>
|
||||
<a class="btn btn_blue" href="{{ route('auth.register') }}">Inscrivez-vous</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
43
auth/passwords/forgot.blade.php
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
@extends('layouts.layout')
|
||||
|
||||
@section('title', 'Mot de passe oublié')
|
||||
|
||||
@section('content')
|
||||
<div class="hero-banner">
|
||||
<div class="hero-banner__wrapper wrapper">
|
||||
<img src="{{ asset(config('app.theme').'/img/hero_login.jpg') }}" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="login-page section">
|
||||
<h1 class="login-page__title title">Mot de passe oublié</h1>
|
||||
<div class="auth-form auth-form_register">
|
||||
<form method="post" action="{{ route('auth.reinit-mdp') }}">
|
||||
@csrf
|
||||
@if ($errors->any())
|
||||
<div class="form__error">
|
||||
<ul>
|
||||
@foreach ($errors->all() as $error)
|
||||
<li>{{ $error }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
@if (session('success'))
|
||||
<div class="form__success">
|
||||
{{ session('success') }}
|
||||
</div>
|
||||
@endif
|
||||
<div class="form__row">
|
||||
<p>Pour que nous puissions vous envoyer un lien de réinitialisation de votre mot de passe, merci de nous indiquer l'adresse e-mail saisie lors de votre inscription.</p>
|
||||
</div>
|
||||
<div class="form__row">
|
||||
<div class="form__field">
|
||||
<input class="form__input" name="email" type="email" placeholder="Votre adresse email *" pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}$" required>
|
||||
</div>
|
||||
</div>
|
||||
<input class="form__btn btn btn_blue" type="submit" value="Je valide">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
18
auth/passwords/reset-ok.blade.php
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
@extends('layouts.layout')
|
||||
|
||||
@section('title', 'Mot de passe modifié')
|
||||
|
||||
@section('content')
|
||||
<div class="hero-banner">
|
||||
<div class="hero-banner__wrapper wrapper">
|
||||
<img src="{{ asset(config('app.theme').'/img/hero_login.jpg') }}" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="login-page section">
|
||||
<h1 class="login-page__title title">Changement de votre mot de passe</h1>
|
||||
<div class="auth-form">
|
||||
<p>Votre Mot de passe a bien été modifié.</p>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
46
auth/passwords/reset.blade.php
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
@extends('layouts.layout')
|
||||
|
||||
@section('title', 'Changement de votre mot de passe')
|
||||
|
||||
@section('content')
|
||||
<div class="hero-banner">
|
||||
<div class="hero-banner__wrapper wrapper">
|
||||
<img src="{{ asset(config('app.theme').'/img/hero_login.jpg') }}" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="login-page section">
|
||||
<h1 class="login-page__title title">Changement de votre mot de passe</h1>
|
||||
<div class="auth-form auth-form_register">
|
||||
<form method="POST" action="{{ route('auth.change-password', $token) }}">
|
||||
@csrf
|
||||
@if ($errors->any())
|
||||
<div class="form__error">
|
||||
<ul>
|
||||
@foreach ($errors->all() as $error)
|
||||
<li>{{ $error }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
@if (session('success'))
|
||||
<div class="form__success">
|
||||
{{ session('success') }}
|
||||
</div>
|
||||
@endif
|
||||
<div class="form__row">
|
||||
<div class="form__field">
|
||||
<input class="form__input" type="password" name="password" placeholder="Votre nouveau mot de passe*" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form__row">
|
||||
<div class="form__field">
|
||||
<input class="form__input" id="password_confirmation" type="password" name="password_confirmation" required autocomplete="new-password" placeholder="Confirmer votre nouveau mot de passe*">
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" name="token" value="{{$token}}">
|
||||
<input type="submit" class="form__btn btn btn_blue" value="Envoyer">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
21
auth/register-success.blade.php
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
@extends('layouts.layout')
|
||||
|
||||
@section('title', __('Inscription'))
|
||||
|
||||
@section('content')
|
||||
<div class="hero-banner">
|
||||
<div class="hero-banner__wrapper wrapper">
|
||||
<img src="{{ asset(config('app.theme').'/img/hero_login.jpg') }}" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="login-page section">
|
||||
<div class="auth-form auth-form_register">
|
||||
<div class="">
|
||||
<div class="form-message__title title">Félicitations</div>
|
||||
<div class="form-message__text">Votre compte a bien été créé !<br>Vous allez recevoir un mail de confirmation<br>sur l’adresse {{ $mail }}</div>
|
||||
<a class="form-message__btn btn btn_blue" href="{{ route('auth.connexion') }}">Connexion</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
117
auth/register.blade.php
Normal file
|
|
@ -0,0 +1,117 @@
|
|||
@extends('layouts.layout')
|
||||
|
||||
@section('title', __('Inscription'))
|
||||
|
||||
@section('content')
|
||||
<div class="hero-banner">
|
||||
<div class="hero-banner__wrapper wrapper">
|
||||
<img src="{{ asset(config('app.theme').'/img/hero_login.jpg') }}" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="login-page section">
|
||||
<h1 class="login-page__title title">Inscription</h1>
|
||||
|
||||
<div class="auth-form auth-form_register">
|
||||
@if (session('success'))
|
||||
<div class="form-message">
|
||||
<div class="form-message__title title">Félicitations</div>
|
||||
<div class="form-message__text">Votre compte a bien été créé !<br>Vous allez recevoir un mail de confirmation<br>sur l’adresse exemple@mail.fr</div>
|
||||
<a class="form-message__btn btn btn_blue" href="login.php">Connexion</a>
|
||||
</div>
|
||||
@else
|
||||
<form action="{{ route('auth.register.post') }}" method="POST" class="auth-form__form form">
|
||||
@csrf
|
||||
@if ($errors->any())
|
||||
<div class="form__error">
|
||||
<ul>
|
||||
@foreach ($errors->all() as $error)
|
||||
<li>{{ $error }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
<div class="form__row">
|
||||
<div class="form__field">
|
||||
<input class="form__input" type="text" name="lastname" placeholder="Nom*" required value="{{ old('lastname') }}" />
|
||||
</div>
|
||||
<div class="form__field">
|
||||
<input class="form__input" type="text" name="firstname" placeholder="Prénom*" required value="{{ old('firstname') }}"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form__row">
|
||||
<div class="form__field">
|
||||
<label for="birth_date" class="form__input">Date de naissance *</label>
|
||||
</div>
|
||||
<div class="form__field">
|
||||
<input class="form__input" type="date" name="birth_date" placeholder="Date de naissance*" value="{{ old('birth_date') }}" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form__row">
|
||||
<div class="form__field">
|
||||
<input class="form__input" name="email" type="email" placeholder="Votre adresse email *" pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}$" required value="{{ old('email') }}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form__row">
|
||||
<div class="form__field">
|
||||
<input class="form__input" type="password" name="password" placeholder="Mot de passe*" required />
|
||||
</div>
|
||||
<div class="form__field">
|
||||
<input class="form__input" type="password" name="password_confirmation" placeholder="Confirmer votre mot de passe *" required />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form__row">
|
||||
<div class="form__field">
|
||||
<input class="form__input" type="tel" name="phone" id="phone" autocomplete="tel" placeholder="Téléphone" value="{{ old('phone') }}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form__row">
|
||||
<div class="form__field">
|
||||
<input class="form__input" name="address" type="text" placeholder="Adresse" value="{{ old('address') }}">
|
||||
</div>
|
||||
<div class="form__field">
|
||||
<input class="form__input" type="number" name="postal_code" id="postal_code" required autocomplete="postal-code" placeholder="Code postal *" value="{{ old('postal_code') }}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form__row">
|
||||
<div class="form__field">
|
||||
<input class="form__input" type="text" name="town" id="town" required autocomplete="address-level2" placeholder="Ville *" value="{{ old('town') }}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form__field">
|
||||
<label class="custom-input custom-input_checkbox">
|
||||
<input type="checkbox" name="ok_cgv" id="ok_cgv" />
|
||||
<span class="checkmark"></span>
|
||||
<span>J’ai lu et accepte les <a href="{{ route('terms') }}" target="mentions">conditions générales</a> et la <a href="{{ route('privacy') }}" target="mentions">politique de gestion des données personnelles.</a></span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="form__field">
|
||||
<label class="custom-input custom-input_checkbox">
|
||||
<input id="checknews" type="checkbox" name="optin" id="optin">
|
||||
<span class="checkmark"></span>
|
||||
<span>Je souhaite m'inscrire à la newsletter {{ Config::get('theme.site_name') }}</span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="form__field form__submit">
|
||||
<button class="form__btn btn btn_blue">S’inscrire</button>
|
||||
</div>
|
||||
|
||||
<div class="form__text mb0">*Champs obligatoires</div>
|
||||
|
||||
</form>
|
||||
|
||||
<div class="auth-form__links-wrap">
|
||||
<div class="auth-form__links">
|
||||
<a href="{{ route('auth.login') }}">Déjà inscrit ?</a>
|
||||
<a class="btn btn_blue" href="{{ route('auth.login') }}">Connectez-vous</a>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
6
basket.blade.php
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{{-- not used --}}
|
||||
@extends('layouts.layout')
|
||||
|
||||
@section('content')
|
||||
<h1>Mon panier</h1>
|
||||
@endsection
|
||||
7
breadcrumb/breadcrumb-body.blade.php
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
@hasSection('breadcrumb')
|
||||
@if(Breadcrumbs::exists(app()->view->getSections()['breadcrumb']))
|
||||
{{ Breadcrumbs::render(app()->view->getSections()['breadcrumb'], $brParam ?? null) }}
|
||||
@endif
|
||||
@elseif(Breadcrumbs::exists(request()->route()->getName()))
|
||||
{{ Breadcrumbs::render(request()->route()->getName()) }}
|
||||
@endif
|
||||
7
breadcrumb/breadcrumb-head.blade.php
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
@hasSection('breadcrumb')
|
||||
@if(Breadcrumbs::exists(app()->view->getSections()['breadcrumb']))
|
||||
{{ Breadcrumbs::view('breadcrumbs::json-ld', app()->view->getSections()['breadcrumb'], $brParam ?? null) }}
|
||||
@endif
|
||||
@elseif(Breadcrumbs::exists(request()->route()->getName()))
|
||||
{{ Breadcrumbs::view('breadcrumbs::json-ld', request()->route()->getName()) }}
|
||||
@endif
|
||||
22
breadcrumb/layout.blade.php
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
@unless ($breadcrumbs->isEmpty())
|
||||
<div class="breadrumbs content">
|
||||
<div class="breadrumbs__wrapper wrapper">
|
||||
<div class="left__offset"></div>
|
||||
<div class="breadrumbs__inner">
|
||||
@foreach ($breadcrumbs as $breadcrumb)
|
||||
|
||||
@if (!is_null($breadcrumb->url) && !$loop->last)
|
||||
<a href="{{ $breadcrumb->url }}">{{ $breadcrumb->title }}</a>
|
||||
@else
|
||||
<span>{{ $breadcrumb->title }}</span>
|
||||
@endif
|
||||
|
||||
@if(count($breadcrumbs) > 1 and !$loop->last)
|
||||
<span class="breadrumbs__arrow">></span>
|
||||
@endif
|
||||
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endunless
|
||||
179
contact.blade.php
Normal file
|
|
@ -0,0 +1,179 @@
|
|||
@extends('layouts.layout')
|
||||
|
||||
@section('title', __('Contactez-nous'))
|
||||
|
||||
@section('content')
|
||||
|
||||
|
||||
|
||||
<div class="hero-banner">
|
||||
<div class="hero-banner__wrapper wrapper">
|
||||
@if ($content->banner !== null)
|
||||
<img src="{{ asset('/images/content/'.$content->banner) }}" />
|
||||
@else
|
||||
<img src="{{ asset(config('app.theme').'/img/hero_contacts.jpg') }}" />
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="contact-page section">
|
||||
<h1 class="contact-page__title title">{{ __('Contactez-nous') }} {{-- $content->title --}}</h1>
|
||||
@if ($errors->any())
|
||||
<div class="errors">
|
||||
<i class="fa fa-exclamation-triangle"></i>
|
||||
@foreach ($errors->all() as $error)
|
||||
<p class="error">• {{ $error }}</p>
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="contact-page__content">
|
||||
<div class="contact-page__wrapper wrapper">
|
||||
<div class="contact-page__row">
|
||||
<div class="contact-page__row-block">
|
||||
<div class="contacts__text">
|
||||
@if ($content !== null)
|
||||
{!!$content->value!!}
|
||||
@else
|
||||
<p>{{ __('Bonjour,') }}</p>
|
||||
<p>{{ __('Si vous avez une question à nous poser ou des remarques à formuler sur notre site, n\'hésitez pas à les inscrire dans le formulaire ci-contre. Merci d\'indiquer vos coordonnées exactes pour que nous puissions vous répondre prochainement.') }}</p>
|
||||
<p>{{ __('Les informations qui vous concernent sont destinées à un usage interne et ne seront en aucun cas transmises à des tiers. Vous disposez d\'un droit d\'accès, de modification, de rectification et de suppression des données qui vous concernent (art. 34 de la loi "Informatique et Libertés").') }}</p>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="contacts__blocks">
|
||||
<div class="contacts__block title title_small">
|
||||
<div class="contacts__block-name">Téléphone : </div>
|
||||
<div class="contacts__block-value">{{$magasin->phone}}</div>
|
||||
</div>
|
||||
<div class="contacts__block title title_small">
|
||||
<div class="contacts__block-name">Adresse :</div>
|
||||
<div class="contacts__block-value">{{$magasin->address}}<br>{{$magasin->postcode}} {{$magasin->city}}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="contacts__map">
|
||||
<iframe src="{!!$magasin->gmaps_embed_href!!}" width="100%" height="450" frameborder="0" style="border:0;" allowfullscreen="" loading="lazy" aria-hidden="false" tabindex="0"></iframe>
|
||||
</div>
|
||||
</div>
|
||||
<div class="contact-page__row-block">
|
||||
<form id="contact-form" class="contacts__form form" action="{{ route('contact-us.submit') }}"method="post" enctype="multipart/form-data">
|
||||
@csrf
|
||||
<div class="form__row">
|
||||
<div class="form__field">
|
||||
<input class="form__input @if ($errors->has('last_name')) error @endif" type="text" name="last_name" placeholder="Nom*" value="{{ old('last_name') }}" req />
|
||||
@foreach ($errors->get('last_name') as $message)
|
||||
<div class="field__error">{{ $message }}</div>
|
||||
@endforeach
|
||||
</div>
|
||||
<div class="form__field">
|
||||
<input class="form__input @if ($errors->has('first_name')) error @endif" type="text" name="first_name" placeholder="Prénom*" value="{{ old('first_name') }}" req />
|
||||
@foreach ($errors->get('first_name') as $message)
|
||||
<div class="field__error">{{ $message }}</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form__field">
|
||||
<input class="form__input @if ($errors->has('email')) error @endif" type="email" name="email" placeholder="Email*" value="{{ old('email') }}" req />
|
||||
@foreach ($errors->get('email') as $message)
|
||||
<div class="field__error">{{ $message }}</div>
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
<div class="form__field select">
|
||||
<select class="form__input" name="shop" id="shop-select">
|
||||
<option value="">Indiquez un magasin à contacter</option>
|
||||
@foreach ($magasins as $shop)
|
||||
<option value="{{ $shop->name }}">{{ $shop->name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form__field">
|
||||
<input class="form__input @if ($errors->has('subject')) error @endif" type="text" name="subject" placeholder="Objet*" value="{{ old('subject') }}" req />
|
||||
@foreach ($errors->get('subject') as $message)
|
||||
<div class="field__error">{{ $message }}</div>
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
<div class="form__field">
|
||||
<input class="form__input @if ($errors->has('order_ref')) error @endif" type="text" name="order_ref" placeholder="Numéro de commande" value="{{ old('order_ref') }}" />
|
||||
@foreach ($errors->get('order_ref') as $message)
|
||||
<div class="field__error">{{ $message }}</div>
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
<div class="form__field">
|
||||
<textarea class="form__input @if ($errors->has('message')) error @endif" name="message" placeholder="Message**">{{ old('message') }}</textarea>
|
||||
@foreach ($errors->get('message') as $message)
|
||||
<div class="field__error">{{ $message }}</div>
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
<div class="form__field form__file">
|
||||
<div class="form__upload-field">
|
||||
<input class="file-name form__input form__input_file @if ($errors->has('file')) error @endif" type="text" readonly="" placeholder="Pièce jointe (pdf, jpeg, png, 5Mo max)">
|
||||
<label for="file" class="form__upload-button btn btn_blue">Choisir un fichier</label>
|
||||
<input class="file-source" id="file" name="file" type="file" accept=".jpg,.jpeg,.png,.gif,.pdf">
|
||||
</div>
|
||||
@foreach ($errors->get('file') as $message)
|
||||
<div class="field__error">{{ $message }}</div>
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
<div class="form__field">
|
||||
<label class="custom-input custom-input_checkbox">
|
||||
<input type="checkbox" name="ok_cgv" />
|
||||
<span class="checkmark"></span>
|
||||
<span @if ($errors->has('message')) class="error" @else class="rgpd_text" @endif>J'ai lu et accepte les conditions générales et la politique de gestion des données personnelles.</span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="form__field form__submit">
|
||||
<div class="g-recaptcha" data-sitekey="{{ config('services.google.recaptcha.public') }}"></div>
|
||||
<button class="form__btn btn btn_blue">Envoyer</button>
|
||||
</div>
|
||||
|
||||
<div class="form__text mb0">* {{ __('mandatory_fields') }}</div>
|
||||
|
||||
{{-- IF MAIL IS SENT --}}
|
||||
@if(!is_null($status))
|
||||
@if(session()->get('status'))
|
||||
<div class="form-result form-result_confirm">
|
||||
<div class="form-result__image"><img src="{{ asset(config('app.theme').'/img/form_confirm.png') }}"></div>
|
||||
<div class="form-result__title title title_small">Votre message a bien été envoyé !</div>
|
||||
<div class="form-result__text">Nos services mettent tout en oeuvre pour y répondre au plus vite.</div>
|
||||
</div>
|
||||
@else
|
||||
<div class="form-result form-result_fail">
|
||||
<div class="form-result__image"><img src="{{ asset(config('app.theme').'/img/form_fail.png') }}"></div>
|
||||
<div class="form-result__title title">Oups ! Une erreur s'est produite...</div>
|
||||
<div class="form-result__text">Votre message n'a pas pu être envoyé.<br>Nous en sommes désolés et vous prions<br>de bien vouloir réessayer plus tard.</div>
|
||||
</div>
|
||||
@endif
|
||||
@endif
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script>
|
||||
window.__LDC_CN_Recaptcha = function() {
|
||||
(function(d, t) {
|
||||
let g = d.createElement(t),
|
||||
s = d.getElementsByTagName(t)[0];
|
||||
g.src = 'https://www.google.com/recaptcha/api.js';
|
||||
s.parentNode.insertBefore(g, s)
|
||||
}(document, 'script'));
|
||||
};
|
||||
|
||||
function onSubmit(token) {
|
||||
document.getElementById("contact-form").submit();
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
130
customer/dashboard.blade.php
Normal file
|
|
@ -0,0 +1,130 @@
|
|||
@extends('layouts.layout')
|
||||
|
||||
@section('title', __('Mon Compte'))
|
||||
|
||||
@section('content')
|
||||
<div class="account-page section">
|
||||
<h1 class="title">{{ __('Mon Compte') }}</h1>
|
||||
|
||||
<div class="profile-actions flex">
|
||||
<div class="my-orders flex">
|
||||
<a href="{{ route('account.my-orders') }}">
|
||||
<span class="header-actions__item-icon icon">@include('icons.orders')</span>
|
||||
</a>
|
||||
<a href="{{ route('account.my-orders') }}">
|
||||
<span class="header-actions__item-title">Mes commandes</span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="disconnect flex">
|
||||
{{-- route de déconnexion --}}
|
||||
<a href="{{ route('auth.deconnexion') }}">
|
||||
<span class="header-actions__item-icon icon">@include('icons.close')</span>
|
||||
</a>
|
||||
<a href="{{ route('auth.deconnexion') }}">
|
||||
<span class="header-actions__item-title">Deconnexion</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if ($errors->any())
|
||||
<div class="form__error">
|
||||
@foreach ($errors->all() as $error)
|
||||
<div>{{ $error }}</div>
|
||||
@endforeach
|
||||
</div>
|
||||
@elseif (session('success'))
|
||||
<div class="form__success">
|
||||
{{ session('success') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="profile_form">
|
||||
<h2 class="top-block__title title_xs mb0">Coordonnées</h2>
|
||||
<p>Pour modifier vos informations personnelles, rien de plus facile : il vous suffit de renseigner vos nouvelles données dans le formulaire ci-dessous !</p>
|
||||
<form action="{{ route('account.update-infos') }}" method="POST" class="form">
|
||||
@csrf
|
||||
<div class="form__row">
|
||||
<div class="form__field">
|
||||
<label for="firstname" class="form__input">Prénom *</label>
|
||||
<input class="form__input" type="text" name="firstname" placeholder="Prénom *" value="{{ $crmInfos->firstname }}" required >
|
||||
</div>
|
||||
<div class="form__field">
|
||||
<label for="lastname" class="form__input">Nom *</label>
|
||||
<input class="form__input" type="text" name="lastname" placeholder="Nom *" value="{{ $crmInfos->lastname }}" required >
|
||||
</div>
|
||||
</div>
|
||||
<div class="form__row">
|
||||
<div class="form__field">
|
||||
<label for="address" class="form__input">Adresse</label>
|
||||
<input class="form__input" type="text" name="address" placeholder="Adresse" value="{{ $crmInfos->address }}" >
|
||||
</div>
|
||||
<div class="form__field">
|
||||
<label for="postcode" class="form__input">Code postal *</label>
|
||||
<input class="form__input" type="text" name="postcode" placeholder="Code postal *" value="{{ $crmInfos->postcode }}" required >
|
||||
</div>
|
||||
</div>
|
||||
<div class="form__row">
|
||||
<div class="form__field">
|
||||
<label for="city" class="form__input">Ville *</label>
|
||||
<input class="form__input" type="text" name="city" placeholder="Ville *" value="{{ $crmInfos->city }}" required >
|
||||
</div>
|
||||
<div class="form__field">
|
||||
<label for="phone" class="form__input">Téléphone</label>
|
||||
<input class="form__input" type="text" name="phone" placeholder="Téléphone" value="{{ $crmInfos->phone }}" >
|
||||
</div>
|
||||
</div>
|
||||
<div class="form__row">
|
||||
<div class="form__field">
|
||||
<label for="email" class="form__input">Email *</label>
|
||||
<input class="form__input" type="text" name="email" value="{{ $customer->email }}" disabled>
|
||||
</div>
|
||||
<div class="form__field">
|
||||
<label for="birth_date" class="form__input">Date de naissance *</label>
|
||||
<span class="select-group">
|
||||
<select name="day" class="form__input">
|
||||
@for ($i = 1; $i <= 31; $i++)
|
||||
<option value="{{ $i < 10 ? '0' . $i : $i }}" @if($birthDate[2] == $i) selected @endif>{{ $i < 10 ? '0' . $i : $i }}</option>
|
||||
@endfor
|
||||
</select>
|
||||
<select name="month" class="form__input">
|
||||
@for ($i = 1; $i <= 12; $i++)
|
||||
<option value="{{ $i < 10 ? '0' . $i : $i }}" @if($birthDate[1] == $i) selected @endif>{{ $i < 10 ? '0' . $i : $i }}</option>
|
||||
@endfor
|
||||
</select>
|
||||
<select name="year" class="form__input">
|
||||
@for ($i = date('Y'); $i >= date('Y') - 100; $i--)
|
||||
<option value="{{ $i }}" @if($birthDate[0] == $i) selected @endif>{{ $i }}</option>
|
||||
@endfor
|
||||
</select>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form__field">
|
||||
<label class="custom-input custom-input_checkbox">
|
||||
<input id="checknews" type="checkbox" name="optin" id="optin" @if($crmInfos->opt_in === 1)checked @endif>
|
||||
<span class="checkmark"></span>
|
||||
<span>J’accepte de recevoir les actualités et bons plans {{ Config::get('theme.site_name') }}</span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="form__field form__submit">
|
||||
<button class="form__btn btn btn_blue">Enregistrer</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="profile_form">
|
||||
<h2 class="top-block__title title_xs mb0">Modifier le mot de passe</h2>
|
||||
<form method="post" action="{{ route('account.change-password') }}" class="form">
|
||||
@csrf
|
||||
<div class="form__field">
|
||||
<input class="form__input" type="password" name="password" placeholder="Nouveau mot de passe">
|
||||
</div>
|
||||
<div class="form__field">
|
||||
<input class="form__input" type="password" name="password_confirmation" placeholder="Confirmer le nouveau mot de passe">
|
||||
</div>
|
||||
<div class="form__field form__submit">
|
||||
<button class="form__btn btn btn_blue">Modifier</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
41
customer/my-orders.blade.php
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
@extends('layouts.layout')
|
||||
|
||||
@section('title', __('Mes Commandes'))
|
||||
|
||||
@section('content')
|
||||
<div class="wrapper">
|
||||
<h1 class="title">Mes Commandes</h1>
|
||||
<div class="section section_white">
|
||||
<div class="wrapper-inner">
|
||||
<div class="order_recap visu_orders">
|
||||
<!--start header-->
|
||||
<div class="order_recap__header order_recap_action"></div>
|
||||
<div class="order_recap__header order_recap_designation">Référence</div>
|
||||
<div class="order_recap__header order_recap_quantite">Date</div>
|
||||
<div class="order_recap__header order_recap_unitprice">Total en €</div>
|
||||
<div class="order_recap__header order_recap_totalprice">Statut</div>
|
||||
<div class="order_recap__header order_recap_action">Action</div>
|
||||
<!--end header-->
|
||||
@foreach ($orders as $order)
|
||||
<div class="order_recap__row order_recap_action">
|
||||
{{--<a href="{{route('account.order-detail', $order->reference)}}" class="btn btn-sm btn-primary">Détails</a>--}}
|
||||
</div>
|
||||
<div class="order_recap__row order_recap_designation">
|
||||
<a href="{{route('account.order-detail', $order->reference)}}" class="btn btn-sm btn-primary">{{$order->reference}}</a>
|
||||
</div>
|
||||
<div class="order_recap__row order_recap_quantite">
|
||||
{{\Carbon\Carbon::parse($order->date)->format('d/m/Y')}}
|
||||
</div>
|
||||
<div class="order_recap__row order_recap_unitprice">@fmt_currency($order->total)</div>
|
||||
<div class="order_recap__row order_recap_totalprice">{{$order->status->label}}</div>
|
||||
<div class="order_recap__row order_recap_action">
|
||||
@if ($order->status_id < 6)
|
||||
<a href="{{route('account.cancel-order', $order->reference)}}" class="btn btn-sm btn-primary" onclick="return confirm('Êtes-vous sûr(e) de vouloir annuler votre commande ?')">Annuler la commande</a>
|
||||
@endif
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
44
customer/order-detail.blade.php
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
@extends('layouts.layout',['brParam' => $order->reference])
|
||||
|
||||
@section('title', __('Détail Commande'))
|
||||
|
||||
@section('breadcrumb', request()->route()->getName())
|
||||
|
||||
@section('content')
|
||||
<div class="wrapper">
|
||||
<h1 class="title">Détail de votre commande du {{\Carbon\Carbon::parse($order->date)->format('d/m/Y')}}</h1>
|
||||
<div class="section">
|
||||
<div class="wrapper-inner">
|
||||
<div class="recap_order">
|
||||
<div class="message center">Etat de votre commande : {{$order->status->label}}</div>
|
||||
<div class="order__identification">Rappel de votre commande ref: {{ $order->reference }}</div>
|
||||
@foreach ($order->lines as $line)
|
||||
<div class="order__line">
|
||||
<div class="qtt">{{ $line->quantity }} x</div>
|
||||
<div class="designation">{{ $line->product->name }}</div>
|
||||
<div class="price">{{ $line->formattedTotalTtc }}</div>
|
||||
</div>
|
||||
@endforeach
|
||||
<div class="order_total">
|
||||
<div>Total</div>
|
||||
<div>{{ $order->formattedTotalTtc }}</div>
|
||||
</div>
|
||||
@if (!empty($order->timeslot))
|
||||
<div class="message">
|
||||
A retirer le <b>{{$order->timeslot->day}} à {{$order->timeslot->time}}</b>, à l’adresse suivante :</br>
|
||||
<b>Mon point de retrait {{$magasin->name}}, {{$magasin->address}}, {{$magasin->postcode}} {{$magasin->city}}</b>
|
||||
</div>
|
||||
@else
|
||||
<div class="message">
|
||||
<a href="{{ route('sales.pick-slot', ['reference' => $order->reference]) }}" class="btn btn-sm btn-primary">Choisir où et quand retirer votre commande</a>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
|
||||
|
||||
{{--<a class="btn btn_blue" href="#">Voir l'itinéraire</a>--}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
42
faq.blade.php
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
@extends('layouts.layout')
|
||||
|
||||
@section('title', __('FAQ'))
|
||||
|
||||
@section('content')
|
||||
|
||||
|
||||
|
||||
<div class="hero-banner">
|
||||
<div class="hero-banner__wrapper wrapper">
|
||||
@if ($content->banner !== null)
|
||||
<img src="{{ asset('/images/content/'.$content->banner) }}" />
|
||||
@else
|
||||
<img src="{{ asset(config('app.theme').'/img/hero_mentios.jpg') }}" />
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mentios-page section">
|
||||
<h1 class="mentios-page__title title">{{ __('FAQ') }}</h1>
|
||||
|
||||
<div class="mentios-page__content">
|
||||
<div class="mentios-page__wrapper wrapper">
|
||||
<div class="mentios-page__wrapper-inner">
|
||||
<div class="description">
|
||||
@foreach ($faq as $f)
|
||||
<h4>{{$f->question}}</h4>
|
||||
<p>{{$f->answer}}</p>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{--
|
||||
<h1>FAQ</h1><br/>
|
||||
@foreach ($faq as $f)
|
||||
<h3>{{$f->question}}</h3>
|
||||
<p>{{$f->answer}}</p>
|
||||
@endforeach --}}
|
||||
@endsection
|
||||
BIN
fonts/Gotham-Bold.otf
Normal file
BIN
fonts/Satisfy-Regular.ttf
Normal file
43
home.blade.php
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
@extends('layouts.layout')
|
||||
|
||||
@section('title', __('Accueil'))
|
||||
|
||||
@section('breadcrumb', 'no')
|
||||
|
||||
@section('content')
|
||||
|
||||
|
||||
<div class="breadrumbs content"><div class="breadrumbs__inner"></div></div> {{-- sert de spacer car ici pas de breadcrumb --}}
|
||||
|
||||
{{-- Slider --}}
|
||||
@include('partials.main-slider')
|
||||
{{-- Fin du Slider --}}
|
||||
|
||||
<div class="tc-text content section">
|
||||
<div class="tc-text__wrapper wrapper">
|
||||
<div class="tc-text__wrapper-inner wrapper-inner">
|
||||
<h2 class="tc-text__title title">{{ $content->title }}</h2>
|
||||
<div class="tc-text__text description">
|
||||
@if ($content !== null)
|
||||
{!! $content->value !!}
|
||||
@endif
|
||||
</div>
|
||||
<div class="tc-text__readmore btn btn_blue mobile">{{ __('Lire la suite') }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@yield('steps', view('partials.steps'))
|
||||
@include('partials.ranges-slider')
|
||||
@include('partials.products-selection')
|
||||
@yield('engagements', view('partials.engagements'))
|
||||
@include('partials.subscribe')
|
||||
@yield('subscribe')
|
||||
|
||||
{{--
|
||||
<h1>Home</h1>
|
||||
@if ($content !== null)
|
||||
{!!$content->value!!}
|
||||
@endif
|
||||
--}}
|
||||
@endsection
|
||||
6
icons/close.blade.php
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" ?><!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'>
|
||||
<svg id="Layer_1" style="enable-background:new 0 0 512 512;" version="1.1" viewBox="0 0 512 512" xml:space="preserve"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M443.6,387.1L312.4,255.4l131.5-130c5.4-5.4,5.4-14.2,0-19.6l-37.4-37.6c-2.6-2.6-6.1-4-9.8-4c-3.7,0-7.2,1.5-9.8,4 L256,197.8L124.9,68.3c-2.6-2.6-6.1-4-9.8-4c-3.7,0-7.2,1.5-9.8,4L68,105.9c-5.4,5.4-5.4,14.2,0,19.6l131.5,130L68.4,387.1 c-2.6,2.6-4.1,6.1-4.1,9.8c0,3.7,1.4,7.2,4.1,9.8l37.4,37.6c2.7,2.7,6.2,4.1,9.8,4.1c3.5,0,7.1-1.3,9.8-4.1L256,313.1l130.7,131.1 c2.7,2.7,6.2,4.1,9.8,4.1c3.5,0,7.1-1.3,9.8-4.1l37.4-37.6c2.6-2.6,4.1-6.1,4.1-9.8C447.7,393.2,446.2,389.7,443.6,387.1z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 829 B |
15
icons/orders.blade.php
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0" ?>
|
||||
<svg data-name="Layer 1" id="Layer_1" viewBox="0 0 64 64"
|
||||
xmlns="http://www.w3.org/2000/svg">
|
||||
<title/>
|
||||
<path d="M46.922,15H41v1.141a.86.86,0,0,1-.859.859H24.859A.86.86,0,0,1,24,16.141V15H18.078A2.052,2.052,0,0,0,16,17.026V51.974A2.052,2.052,0,0,0,18.078,54H46.922A2.052,2.052,0,0,0,49,51.974V17.026A2.052,2.052,0,0,0,46.922,15Z" style="fill:none;stroke:#000;stroke-miterlimit:10;stroke-width:2px"/>
|
||||
<path d="M39.984,13H35v-.372a2.529,2.529,0,0,0-1.88-2.488A2.491,2.491,0,0,0,30,12.511V13H25.016A1.016,1.016,0,0,0,24,14.016v1.968A1.016,1.016,0,0,0,25.016,17H39.984A1.016,1.016,0,0,0,41,15.984V14.016A1.016,1.016,0,0,0,39.984,13Z" style="fill:none;stroke:#000;stroke-linecap:round;stroke-miterlimit:10;stroke-width:2px"/>
|
||||
<path d="M25,24H43" style="fill:none;stroke:#000;stroke-linecap:round;stroke-miterlimit:10;stroke-width:2px"/>
|
||||
<polyline points="19 23 20 24 23 20" style="fill:none;stroke:#000;stroke-linecap:round;stroke-miterlimit:10;stroke-width:2px"/>
|
||||
<path d="M25,32H43" style="fill:none;stroke:#000;stroke-linecap:round;stroke-miterlimit:10;stroke-width:2px"/>
|
||||
<polyline points="19 31 20 32 23 28" style="fill:none;stroke:#000;stroke-linecap:round;stroke-miterlimit:10;stroke-width:2px"/>
|
||||
<path d="M25,40H43" style="fill:none;stroke:#000;stroke-linecap:round;stroke-miterlimit:10;stroke-width:2px"/>
|
||||
<polyline points="19 39 20 40 23 36" style="fill:none;stroke:#000;stroke-linecap:round;stroke-miterlimit:10;stroke-width:2px"/>
|
||||
<path d="M25,48H43" style="fill:none;stroke:#000;stroke-linecap:round;stroke-miterlimit:10;stroke-width:2px"/>
|
||||
<polyline points="19 47 20 48 23 44" style="fill:none;stroke:#000;stroke-linecap:round;stroke-miterlimit:10;stroke-width:2px"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.7 KiB |
BIN
img/accordeon__arrow.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
img/arrow-yellow.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
img/arrow_next.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
img/arrow_prev.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
7
img/chevron_down.svg
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>
|
||||
<g fill="#fff"
|
||||
transform="rotate(180 12 12)
|
||||
translate(0 -2)">
|
||||
<path id="chevron" d='M5 17.4c.5.5 1.2.5 1.7 0l5.9-5.8 5.8 5.8c.5.5 1.2.5 1.7 0s.5-1.2 0-1.7l-6.6-6.6c-.2-.2-.5-.3-.8-.3-.3 0-.6.1-.8.3l-6.6 6.6c-.7.5-.7 1.3-.3 1.7z'/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 348 B |
7
img/chevron_next.svg
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>
|
||||
<g fill="#fff"
|
||||
transform="rotate(90 12 12)
|
||||
translate(0 -2)">
|
||||
<path id="chevron" d='M5 17.4c.5.5 1.2.5 1.7 0l5.9-5.8 5.8 5.8c.5.5 1.2.5 1.7 0s.5-1.2 0-1.7l-6.6-6.6c-.2-.2-.5-.3-.8-.3-.3 0-.6.1-.8.3l-6.6 6.6c-.7.5-.7 1.3-.3 1.7z'/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 347 B |
7
img/chevron_prev.svg
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>
|
||||
<g fill="#fff"
|
||||
transform="rotate(-90 12 12)
|
||||
translate(-1 -2)">
|
||||
<path id="chevron" d='M5 17.4c.5.5 1.2.5 1.7 0l5.9-5.8 5.8 5.8c.5.5 1.2.5 1.7 0s.5-1.2 0-1.7l-6.6-6.6c-.2-.2-.5-.3-.8-.3-.3 0-.6.1-.8.3l-6.6 6.6c-.7.5-.7 1.3-.3 1.7z'/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 349 B |
6
img/chevron_up.svg
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>
|
||||
<g fill="#fff"
|
||||
transform="translate(0 -2)">
|
||||
<path id="chevron" d='M5 17.4c.5.5 1.2.5 1.7 0l5.9-5.8 5.8 5.8c.5.5 1.2.5 1.7 0s.5-1.2 0-1.7l-6.6-6.6c-.2-.2-.5-.3-.8-.3-.3 0-.6.1-.8.3l-6.6 6.6c-.7.5-.7 1.3-.3 1.7z'/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 310 B |
17
img/crosshair.svg
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
width="34px" height="34px">
|
||||
<path fill-rule="evenodd" stroke="rgb(255, 255, 255)" stroke-width="2px" stroke-linecap="butt" stroke-linejoin="miter" fill="none"
|
||||
d="M16.500,5.000 C22.851,5.000 28.000,10.149 28.000,16.500 C28.000,22.851 22.851,28.000 16.500,28.000 C10.149,28.000 5.000,22.851 5.000,16.500 C5.000,10.149 10.149,5.000 16.500,5.000 Z"/>
|
||||
<path fill-rule="evenodd" fill="rgb(255, 255, 255)"
|
||||
d="M-0.000,17.000 L-0.000,16.000 L10.000,16.000 L10.000,17.000 L-0.000,17.000 Z"/>
|
||||
<path fill-rule="evenodd" fill="rgb(255, 255, 255)"
|
||||
d="M23.000,17.000 L23.000,16.000 L33.000,16.000 L33.000,17.000 L23.000,17.000 Z"/>
|
||||
<path fill-rule="evenodd" fill="rgb(255, 255, 255)"
|
||||
d="M16.000,10.000 L16.000,-0.000 L17.000,-0.000 L17.000,10.000 L16.000,10.000 Z"/>
|
||||
<path fill-rule="evenodd" fill="rgb(255, 255, 255)"
|
||||
d="M16.000,33.000 L16.000,23.000 L17.000,23.000 L17.000,33.000 L16.000,33.000 Z"/>
|
||||
<path fill-rule="evenodd" stroke="rgb(255, 255, 255)" stroke-width="1px" stroke-linecap="butt" stroke-linejoin="miter" fill="none"
|
||||
d="M16.000,16.000 L17.000,16.000 L16.000,16.000 Z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
BIN
img/demo/category_img.jpg
Normal file
|
After Width: | Height: | Size: 88 KiB |
BIN
img/demo/mainslider_demo.jpg
Normal file
|
After Width: | Height: | Size: 233 KiB |
BIN
img/demo/mp_1.jpg
Normal file
|
After Width: | Height: | Size: 68 KiB |
BIN
img/demo/mp_1.png
Normal file
|
After Width: | Height: | Size: 45 KiB |
BIN
img/demo/mp_2.jpg
Normal file
|
After Width: | Height: | Size: 46 KiB |
BIN
img/demo/mp_2.png
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
img/demo/mp_3.jpg
Normal file
|
After Width: | Height: | Size: 88 KiB |
BIN
img/demo/mp_3.png
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
img/demo/mp_4.png
Normal file
|
After Width: | Height: | Size: 41 KiB |
BIN
img/demo/mp_5.png
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
img/demo/mp_6.png
Normal file
|
After Width: | Height: | Size: 45 KiB |
BIN
img/demo/pl_1.png
Normal file
|
After Width: | Height: | Size: 45 KiB |
BIN
img/demo/pl_2.png
Normal file
|
After Width: | Height: | Size: 41 KiB |
BIN
img/demo/pl_3.png
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
img/demo/product_1.png
Normal file
|
After Width: | Height: | Size: 305 KiB |
BIN
img/demo/product_wide.png
Normal file
|
After Width: | Height: | Size: 50 KiB |
BIN
img/demo/recipe_1.png
Normal file
|
After Width: | Height: | Size: 127 KiB |
BIN
img/demo/rp_1.jpg
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/demo/rp_2.jpg
Normal file
|
After Width: | Height: | Size: 27 KiB |
BIN
img/demo/rp_3.jpg
Normal file
|
After Width: | Height: | Size: 36 KiB |
BIN
img/demo/rp_4.jpg
Normal file
|
After Width: | Height: | Size: 34 KiB |
BIN
img/eng_1.png
Normal file
|
After Width: | Height: | Size: 6.2 KiB |
BIN
img/eng_2.png
Normal file
|
After Width: | Height: | Size: 8.5 KiB |
BIN
img/eng_3.png
Normal file
|
After Width: | Height: | Size: 6.9 KiB |
BIN
img/eng_4.png
Normal file
|
After Width: | Height: | Size: 8.1 KiB |
BIN
img/form_confirm.png
Normal file
|
After Width: | Height: | Size: 4.1 KiB |
BIN
img/form_fail.png
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
BIN
img/hero_contacts.jpg
Normal file
|
After Width: | Height: | Size: 473 KiB |
BIN
img/hero_login.jpg
Normal file
|
After Width: | Height: | Size: 473 KiB |
BIN
img/hero_mentios.jpg
Normal file
|
After Width: | Height: | Size: 473 KiB |
BIN
img/icon_cart-white.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
img/icon_cart.png
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
img/icon_date.jpg
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
img/icon_date.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
img/icon_profile.png
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
img/icon_search.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
img/logo.png
Normal file
|
After Width: | Height: | Size: 26 KiB |
7
img/loyalty.svg
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
|
||||
<svg version="1.0" xmlns="http://www.w3.org/2000/svg" width="77px" height="83px" viewBox="0 0 77 83" preserveAspectRatio="xMidYMid meet">
|
||||
<g fill="#1A3441">
|
||||
<path d="M30 79.4 c-1.4 -0.7 -3.4 -1.4 -4.5 -1.4 -1.1 -0.1 -3.6 -0.9 -5.5 -1.9 l-3.5 -1.9 4 -0.6 c9.4 -1.5 12 -6.1 5.8 -10.1 -1.8 -1.1 -5.7 -3.5 -8.6 -5.3 -7.7 -4.9 -10.2 -9 -10.2 -17.2 0 -5.8 0.4 -7.3 3.2 -11.6 1.8 -2.7 4 -6.4 5 -8.3 1.7 -3.3 1.7 -3.3 -0.6 -5.2 -1.6 -1.3 -3.9 -1.9 -7.2 -1.9 -4.9 0 -6.6 -1.3 -3.1 -2.4 1 -0.3 3.7 -2.4 6.1 -4.6 4.7 -4.4 5.3 -4.5 10 -2.9 5 1.8 6.4 5.6 5.6 15.5 l-0.7 8.3 3.9 0.6 c10.4 1.8 16.6 3.7 24.3 7.4 4.6 2.3 9.2 4.1 10.2 4.1 1 0 1.8 0.5 1.8 1.2 0 0.6 2.1 3.1 4.7 5.5 l4.7 4.3 -3.4 -1 c-4.9 -1.4 -4.9 -1.3 -1 2 l3.4 3 -2.9 0 c-7.2 0 -24.4 6.8 -29 11.4 -1.7 1.7 -2.5 3.6 -2.5 6.1 0 2.5 -0.8 4.4 -2.5 6 -2.7 2.8 -3.9 2.9 -7.5 0.9z m6.2 -6.1 c2.6 -3 3.1 -7.1 1.1 -8.1 -3.1 -1.6 -4.3 -0.3 -4.3 4.9 0 5.2 0.8 6 3.2 3.2z"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
BIN
img/menu-arrow.png
Normal file
|
After Width: | Height: | Size: 1 KiB |
BIN
img/mp_3.jpg
Normal file
|
After Width: | Height: | Size: 88 KiB |
BIN
img/nav_next.png
Normal file
|
After Width: | Height: | Size: 1 KiB |
BIN
img/nav_prev.png
Normal file
|
After Width: | Height: | Size: 1 KiB |
9
img/order-step-active.svg
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
width="142px" height="22px">
|
||||
<path fill-rule="evenodd" fill="#1a3441"
|
||||
d="M-0.000,10.000 L119.955,10.000 L119.955,12.000 L-0.000,12.000 L-0.000,10.000 Z"/>
|
||||
<path fill-rule="evenodd" fill="#a8be36"
|
||||
d="M130.951,-0.000 C137.024,-0.000 141.947,4.925 141.947,11.000 C141.947,17.075 137.024,22.000 130.951,22.000 C124.878,22.000 119.955,17.075 119.955,11.000 C119.955,4.925 124.878,-0.000 130.951,-0.000 Z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 499 B |
10
img/order-step-done.svg
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
width="142px" height="22px">
|
||||
<path fill-rule="evenodd" fill="#1a3441"
|
||||
d="M-0.000,10.000 L119.955,10.000 L119.955,12.000 L-0.000,12.000 L-0.000,10.000 Z"/>
|
||||
<path fill-rule="evenodd" fill="#1a3441"
|
||||
d="M130.951,-0.000 C137.024,-0.000 141.947,4.925 141.947,11.000 C141.947,17.075 137.024,22.000 130.951,22.000 C124.878,22.000 119.955,17.075 119.955,11.000 C119.955,4.925 124.878,-0.000 130.951,-0.000 Z"/>
|
||||
</svg>
|
||||
|
||||
|
After Width: | Height: | Size: 500 B |
10
img/order-step-inactive.svg
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
width="142px" height="22px">
|
||||
<path fill-rule="evenodd" fill="#89959a"
|
||||
d="M-0.000,10.000 L119.955,10.000 L119.955,12.000 L-0.000,12.000 L-0.000,10.000 Z"/>
|
||||
<path fill-rule="evenodd" fill="#89959a"
|
||||
d="M130.951,-0.000 C137.024,-0.000 141.947,4.925 141.947,11.000 C141.947,17.075 137.024,22.000 130.951,22.000 C124.878,22.000 119.955,17.075 119.955,11.000 C119.955,4.925 124.878,-0.000 130.951,-0.000 Z"/>
|
||||
</svg>
|
||||
|
||||
|
After Width: | Height: | Size: 500 B |
BIN
img/p-benefit_1.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
img/p-benefit_2.png
Normal file
|
After Width: | Height: | Size: 2 KiB |
BIN
img/p-benefit_3.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
img/pl_nophoto.png
Normal file
|
After Width: | Height: | Size: 5 KiB |
BIN
img/step_1.png
Normal file
|
After Width: | Height: | Size: 6.8 KiB |
BIN
img/step_2.png
Normal file
|
After Width: | Height: | Size: 6.7 KiB |
BIN
img/step_3.png
Normal file
|
After Width: | Height: | Size: 5.2 KiB |
BIN
img/step_4.png
Normal file
|
After Width: | Height: | Size: 8.7 KiB |
BIN
img/steps-arrow.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
244
js/app.js
Normal file
|
|
@ -0,0 +1,244 @@
|
|||
import { isWindow } from 'jquery';
|
||||
import Swiper from 'swiper/swiper-bundle';
|
||||
import Toastify from "toastify-js";
|
||||
require('./bootstrap');
|
||||
// cookie notice
|
||||
import { LdcwebCn } from "./ldcweb-cn.js";
|
||||
window.LdcwebCn = LdcwebCn;
|
||||
require('./cart.js');
|
||||
|
||||
window.Toastify = Toastify;
|
||||
window.Vue = require('vue');
|
||||
|
||||
// Vuex
|
||||
import Vuex from 'vuex';
|
||||
|
||||
Vue.component('timeslot-picker', require('./components/TimeSlotPicker.vue').default);
|
||||
Vue.component('basket-panel', require('./components/BasketPanel.vue').default);
|
||||
Vue.component('basket-counter', {
|
||||
computed: {
|
||||
count() {
|
||||
return this.$store.state.cartTotals.countItems;
|
||||
// let panier;
|
||||
// panier = this.$store.state.panier;
|
||||
// console.log(this.$store.state.panier);
|
||||
// console.log(panier);
|
||||
// console.log(panier.length);
|
||||
// return panier[panier.length - 1].countItems;
|
||||
}
|
||||
},
|
||||
mounted: function() {
|
||||
console.log('Basket Counter Component mounted.');
|
||||
},
|
||||
template: '<span class="header-actions__item-icon icon icon_cart"><span class="icon__count">{{ count }}</span></span>'
|
||||
});
|
||||
|
||||
const store = new Vuex.Store({
|
||||
state: {
|
||||
panier: {},
|
||||
cartTotals: {},
|
||||
},
|
||||
mutations: {
|
||||
Reload (state,payload) {
|
||||
state.reload = payload.reload;
|
||||
},
|
||||
updatePanier (state, payload) {
|
||||
state.panier = payload.panier;
|
||||
},
|
||||
updateCartTotals (state, payload) {
|
||||
state.cartTotals = payload.cartTotals;
|
||||
},
|
||||
}
|
||||
});
|
||||
|
||||
const app = new Vue({
|
||||
el: '#app',
|
||||
store,
|
||||
data: {
|
||||
num: 1 //for the numeric stepper on product pages
|
||||
},
|
||||
methods: {
|
||||
addtocart(product,qtty) {
|
||||
console.log('root add');
|
||||
this.$refs.basketpanel.addtocart(product,qtty);
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
$(document).ready(function(){
|
||||
//document is ready we can free css transitions
|
||||
$('.preload').removeClass("preload");
|
||||
|
||||
var mainslider = new Swiper ('.mainslider .swiper-container', {
|
||||
speed:1000,
|
||||
direction: 'horizontal',
|
||||
zoom: true,
|
||||
keyboard:
|
||||
{
|
||||
enabled: true,
|
||||
onlyInViewport: false,
|
||||
},
|
||||
mousewheel:
|
||||
{
|
||||
invert: true,
|
||||
},
|
||||
autoplay:
|
||||
{
|
||||
delay: 5000,
|
||||
},
|
||||
loop: true,
|
||||
pagination: {
|
||||
el: '.mainslider__pagination',
|
||||
bulletClass: 'slider-bullet',
|
||||
bulletActiveClass: 'slider-bullet_active',
|
||||
clickable: true
|
||||
},
|
||||
});
|
||||
|
||||
var rp_slider = new Swiper ('.rp-slider .swiper-container', {
|
||||
slidesPerView: 4,
|
||||
spaceBetween: 40,
|
||||
navigation: {
|
||||
nextEl: '.rp-slider .swiper-nav__arrow_next',
|
||||
prevEl: '.rp-slider .swiper-nav__arrow_prev',
|
||||
disabledClass: 'disabled'
|
||||
},
|
||||
breakpoints: {
|
||||
/* 320: {
|
||||
spaceBetween: 20
|
||||
},
|
||||
480: {
|
||||
spaceBetween: 30
|
||||
},*/
|
||||
480: {
|
||||
slidesPerView: 'auto',
|
||||
spaceBetween: 12
|
||||
},
|
||||
768: {
|
||||
slidesPerView: 'auto',
|
||||
spaceBetween: 16
|
||||
},
|
||||
1000: {
|
||||
spaceBetween: 25,
|
||||
slidesPerView: 3
|
||||
},
|
||||
1180: {
|
||||
spaceBetween: 30
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
var rp_slider_mobile = new Swiper ('.related-products-mobile .swiper-container', {
|
||||
slidesPerView: 4,
|
||||
spaceBetween: 20,
|
||||
navigation: {
|
||||
nextEl: '.related-products-mobile .swiper-nav__arrow_next',
|
||||
prevEl: '.related-products-mobile .swiper-nav__arrow_prev',
|
||||
disabledClass: 'disabled'
|
||||
},
|
||||
breakpoints: {
|
||||
/* 320: {
|
||||
spaceBetween: 20
|
||||
},
|
||||
480: {
|
||||
spaceBetween: 30
|
||||
},*/
|
||||
480: {
|
||||
slidesPerView: 'auto',
|
||||
spaceBetween: 12
|
||||
},
|
||||
768: {
|
||||
slidesPerView: 'auto',
|
||||
spaceBetween: 16
|
||||
},
|
||||
1000: {
|
||||
spaceBetween: 25,
|
||||
slidesPerView: 3
|
||||
},
|
||||
1180: {
|
||||
spaceBetween: 30
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
$(document).on("click", ".menu-trigger", function(){
|
||||
$(this).toggleClass("active");
|
||||
$(".menu").slideToggle();
|
||||
});
|
||||
|
||||
// $(document).on("click", ".product__qty-btn", function(){
|
||||
// _value = parseInt($('.product__qty-input').val());
|
||||
// if(isNaN(_value) || _value <= 0) {
|
||||
// _value = 1;
|
||||
// }
|
||||
|
||||
// if ($(this).hasClass('product__qty-btn_plus')) {
|
||||
// _value += 1;
|
||||
// } else {
|
||||
// if(_value > 1) {
|
||||
// _value -= 1;
|
||||
// }
|
||||
// }
|
||||
|
||||
// $('.product__qty-input').val(_value);
|
||||
// });
|
||||
|
||||
$(document).on("click", ".accordeon-block__title", function(){
|
||||
$(this).closest('.accordeon-block').toggleClass("active");
|
||||
$(this).next('.accordeon-block__content').slideToggle();
|
||||
});
|
||||
|
||||
|
||||
$(document).mouseup(function(e) {
|
||||
var container = $(".form-message");
|
||||
|
||||
if (!container.is(e.target) && container.has(e.target).length === 0) {
|
||||
container.hide();
|
||||
}
|
||||
});
|
||||
|
||||
$(document).mouseup(function(e) {
|
||||
var container = $(".form-result");
|
||||
|
||||
if (!container.is(e.target) && container.has(e.target).length === 0) {
|
||||
container.hide();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
let fileInput = document.querySelector(".form__upload-field .file-source");
|
||||
if (fileInput) {
|
||||
let fileArea = document.querySelector(".form__upload-field .file-name");
|
||||
|
||||
fileInput.onchange = function() {
|
||||
if(fileInput.files.length != 0) {
|
||||
if(fileInput.files[0].size > 10485760) {
|
||||
fileArea.value = "La taille du fichier est trop grande";
|
||||
} else {
|
||||
fileArea.value = fileInput.files[0].name;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$(document).on("click", ".tc-text__readmore", function(){
|
||||
$(this).closest('.tc-text').addClass("active");
|
||||
$(this).remove();
|
||||
});
|
||||
|
||||
//cart close actions
|
||||
$('.basket-panel__close').on('click',closeCart);
|
||||
$('.basket-panel__mask').on('click',closeCart);
|
||||
//cart opened actions
|
||||
$('.promotion-description__labels').hover(showPromoInfo,hidePromoInfo);
|
||||
$('.basket-panel__content--smooth-scroll').on('scroll',toggleFixingBottomCart);
|
||||
$('.category-heading__header--collapsable').on('click',toggleProductCategory)
|
||||
$('.checkout-clear-basket__actions').on('click',showModalClearCart);
|
||||
$('#checkout-empty-basket-cancel').on('click',closeModalClearCart);
|
||||
|
||||
});
|
||||
34
js/bootstrap.js
vendored
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
window._ = require('lodash');
|
||||
window.$ = window.jQuery = require('jquery');
|
||||
|
||||
/**
|
||||
* We'll load the axios HTTP library which allows us to easily issue requests
|
||||
* to our Laravel back-end. This library automatically handles sending the
|
||||
* CSRF token as a header based on the value of the "XSRF" token cookie.
|
||||
*/
|
||||
|
||||
window.axios = require('axios');
|
||||
|
||||
//window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
|
||||
window.axios.defaults.headers.common = {
|
||||
'Accept': 'application/json, text/plain, */*',
|
||||
'X-Requested-With': 'XMLHttpRequest',
|
||||
'X-CSRF-TOKEN' : document.querySelector('meta[name="csrf-token"]').getAttribute('content')
|
||||
};
|
||||
|
||||
/**
|
||||
* Echo exposes an expressive API for subscribing to channels and listening
|
||||
* for events that are broadcast by Laravel. Echo and event broadcasting
|
||||
* allows your team to easily build robust real-time web applications.
|
||||
*/
|
||||
|
||||
// import Echo from 'laravel-echo';
|
||||
|
||||
// window.Pusher = require('pusher-js');
|
||||
|
||||
// window.Echo = new Echo({
|
||||
// broadcaster: 'pusher',
|
||||
// key: process.env.MIX_PUSHER_APP_KEY,
|
||||
// cluster: process.env.MIX_PUSHER_APP_CLUSTER,
|
||||
// forceTLS: true
|
||||
// });
|
||||
63
js/cart.js
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
/* Set the width of the sidebar to 250px (show it) */
|
||||
window.openCart = function() {
|
||||
$('.basket-panel__mask').addClass('basket-panel__mask--visible');
|
||||
$('.basket-panel__drawer').addClass('basket-panel__drawer--opened');
|
||||
$('body').addClass('cartOpened');
|
||||
}
|
||||
|
||||
/* Set the width of the sidebar to 0 (hide it) */
|
||||
window.closeCart = function() {
|
||||
$('.basket-panel__mask').removeClass('basket-panel__mask--visible');
|
||||
$('.basket-panel__drawer').removeClass('basket-panel__drawer--opened');
|
||||
$('body').removeClass('cartOpened');
|
||||
}
|
||||
|
||||
window.showPromoInfo = function() {
|
||||
$(this).parent().next("section.promotion-slide").show();
|
||||
}
|
||||
|
||||
window.hidePromoInfo = function(elem) {
|
||||
$(this).parent().next("section.promotion-slide").hide();
|
||||
}
|
||||
|
||||
window.toggleFixingBottomCart= function() {
|
||||
console.log('fixing');
|
||||
let bottomHeight = $('.cart-tile__bottom').innerHeight();
|
||||
let contentHeight = $('.basket-panel__content.basket-panel__content--smooth-scroll').innerHeight();
|
||||
let productsHeight = $('.cart-tile.cart-tile--open').innerHeight();
|
||||
console.log(bottomHeight);
|
||||
console.log(contentHeight);
|
||||
console.log(productsHeight);
|
||||
console.log($(this).scrollTop());
|
||||
console.log($(this).innerHeight());
|
||||
console.log($(this)[0].scrollHeight);
|
||||
// if($(this).scrollTop() + $(this).innerHeight() >= ($(this)[0].scrollHeight)) {
|
||||
// console.log('unfix');
|
||||
// $('.cart-tile__bottom.cart-tile__bottom--fixed').removeClass('cart-tile__bottom--fixed')
|
||||
// } else if($(this).scrollTop() + $(this).innerHeight() < ($(this)[0].scrollHeight-bottomHeight)) {
|
||||
// console.log('fix');
|
||||
// $('.cart-tile__bottom').not('.cart-tile__bottom--fixed').addClass('cart-tile__bottom--fixed');
|
||||
// }
|
||||
if($(this).scrollTop() + contentHeight >= (productsHeight)) {
|
||||
console.log('unfix');
|
||||
$('.cart-tile__bottom.cart-tile__bottom--fixed').removeClass('cart-tile__bottom--fixed')
|
||||
} else if($(this).scrollTop() + contentHeight < (productsHeight-bottomHeight)) {
|
||||
console.log('fix');
|
||||
$('.cart-tile__bottom').not('.cart-tile__bottom--fixed').addClass('cart-tile__bottom--fixed');
|
||||
}
|
||||
}
|
||||
|
||||
window.toggleProductCategory = function() {
|
||||
$(this).find('.category-heading__chevron').toggleClass('ds-chevron--revert');
|
||||
$(this).next().toggle();
|
||||
//raise a scroll event to check bottom cart fixing
|
||||
$('.basket-panel__content--smooth-scroll').scroll();
|
||||
}
|
||||
|
||||
window.showModalClearCart = function() {
|
||||
$('#empty-basket-modal > div.modal').show();
|
||||
}
|
||||
|
||||
window.closeModalClearCart = function() {
|
||||
$('#empty-basket-modal > div.modal').hide();
|
||||
}
|
||||
530
js/components/BasketPanel.vue
Normal file
|
|
@ -0,0 +1,530 @@
|
|||
<template>
|
||||
<div id="basket-panel" class="basket-panel preload">
|
||||
<div class="basket-panel__mask"></div>
|
||||
<div id="basket-panel__drawer" class="basket-panel__drawer">
|
||||
<!-- panier vide -->
|
||||
<div class="basket-panel--empty" v-show="emptybasket">
|
||||
<div class="basket-panel__header basket-panel__header--empty">
|
||||
<button class="basket-panel__close">
|
||||
<span>Fermer</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="empty-basket">
|
||||
<svg id="icon-basket-empty" viewBox="0 0 105 104" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="icon icon-basket-empty">
|
||||
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||
<g transform="translate(-97.000000, -158.000000)">
|
||||
<g transform="translate(0.000000, 106.000000)">
|
||||
<g transform="translate(24.000000, 24.000000)">
|
||||
<g transform="translate(64.000000, 0.000000)">
|
||||
<g transform="translate(9.000000, 28.000000)">
|
||||
<ellipse fill="#D1D0CF" fill-rule="nonzero" opacity="0.55" cx="66.8073257" cy="99.9229657" rx="31.9939371" ry="3.8088"></ellipse>
|
||||
<path d="M60.72498,75.7225057 C60.6153257,75.7225057 60.50484,75.7275286 60.3935143,75.7367343 C58.3419203,75.9150845 56.8088142,77.7000529 56.9421803,79.7550615 C57.0755464,81.8100701 58.8265029,83.381909 60.8839399,83.293591 C62.9413768,83.205273 64.5511943,81.4891687 64.5079668,79.4302908 C64.4647393,77.3714129 62.7843108,75.7243895 60.72498,75.7225057 Z" fill="#FEE2A2" fill-rule="nonzero"></path>
|
||||
<path d="M67.4825143,78.9167 C67.1623695,75.2609992 63.9936654,72.5223307 60.3301407,72.7349996 C56.666616,72.9476685 53.8360896,76.0345943 53.9410992,79.7027838 C54.0461088,83.3709734 57.0485945,86.290917 60.7182857,86.2936571 C60.9149914,86.2936571 61.1142171,86.2852829 61.3142657,86.2677029 C65.0455789,85.9373988 67.8051492,82.6486842 67.4825143,78.9167 L67.4825143,78.9167 Z M60.72498,75.7225057 C62.7822657,75.7244759 64.4609671,77.3699124 64.5041075,79.4267467 C64.5472479,81.483581 62.9390159,83.1979583 60.8836221,83.2861886 C58.8282283,83.3744189 57.0789994,81.8041647 56.9457217,79.7511997 C56.812444,77.6982346 58.3439652,75.9149954 60.3935143,75.7367343 C60.5048571,75.7275286 60.6153257,75.7225057 60.72498,75.7225057 L60.72498,75.7225057 Z" id="Shape" fill="#a8be36" fill-rule="nonzero"></path>
|
||||
<path d="M85.3670057,74.0174257 C85.2565114,74.0174257 85.1460171,74.0216171 85.03386,74.0316543 C82.9819563,74.2100227 81.4485421,75.9951432 81.5817019,78.0504759 C81.7148617,80.1058086 83.465797,81.6781444 85.5235628,81.5902577 C87.5813286,81.502371 89.1918241,79.7864694 89.1492531,77.7272676 C89.1066822,75.6680659 87.4266456,74.0201911 85.3670057,74.0174257 Z" fill="#FEE2A2" fill-rule="nonzero"></path>
|
||||
<path d="M92.1237,77.21162 C91.8041941,73.5554324 88.6354676,70.8159573 84.9714933,71.0282865 C81.307519,71.2406158 78.4764495,74.3277824 78.5814201,77.9964024 C78.6863908,81.6650224 81.6893508,84.5852592 85.3594714,84.5877371 C85.5561771,84.5877371 85.7553943,84.5793714 85.9554514,84.5617914 C89.6862934,84.2312527 92.4456064,80.9432167 92.1237,77.21162 L92.1237,77.21162 Z M85.3670057,74.0174257 C87.4240987,74.0202982 89.1019847,75.6661962 89.1444478,77.7228528 C89.1869109,79.7795095 87.5783904,81.4932608 85.5231691,81.5810388 C83.4679477,81.6688168 81.7191636,80.0984551 81.5861133,78.0456674 C81.453063,75.9928797 82.9845031,74.2099122 85.03386,74.0316543 C85.146,74.0216171 85.2565114,74.0174257 85.3670057,74.0174257 L85.3670057,74.0174257 Z" id="Shape" fill="#a8be36" fill-rule="nonzero"></path>
|
||||
<path d="M67.9645714,7.97827143 L68.5451057,1.70578571 C68.5973175,1.14173888 68.9464786,0.648392791 69.4610634,0.411586133 C69.9756482,0.174779475 70.577479,0.230488817 71.039852,0.55772899 C71.502225,0.884969162 71.7548947,1.4340246 71.7026829,1.99807143 L71.1221314,8.27054857 C71.0735147,8.83570804 70.7266747,9.33183778 70.2125852,9.5715893 C69.6984957,9.81134082 69.0954891,9.75818287 68.6312728,9.43218895 C68.1670565,9.10619503 67.9123637,8.55703727 67.9633714,7.99208857 L67.96464,7.97832286 L67.9645714,7.97827143 Z" fill="#FFCCBD" fill-rule="nonzero"></path>
|
||||
<path d="M77.1094286,9.90088571 L80.0137371,4.31104571 C80.4184016,3.53584377 81.3742995,3.23463343 82.1502783,3.63780618 C82.9262571,4.04097894 83.2293053,4.99629581 82.8276257,5.77304857 L79.9233086,11.36288 C79.5193836,12.1395112 78.5624792,12.4418306 77.7856784,12.038232 C77.0088777,11.6346333 76.7061562,10.677856 77.1094286,9.90088571 Z" fill="#FFCCBD" fill-rule="nonzero"></path>
|
||||
<path d="M60.72294,10.45958 C60.3205914,10.5816972 59.8862111,10.53898 59.5153582,10.3408257 C59.1445053,10.1426714 58.8675584,9.80531194 58.7454429,9.40296286 L58.7453743,9.40272286 L56.9163857,3.37478 C56.6650774,2.53782893 57.1383473,1.65532818 57.9745681,1.40160026 C58.8107888,1.14787235 59.6946547,1.618588 59.9508,2.45407143 L61.7797886,8.48202286 C62.034079,9.31986789 61.5610158,10.2052189 60.7231714,10.4595114 L60.72294,10.45958 Z" fill="#FFCCBD" fill-rule="nonzero"></path>
|
||||
<path d="M54.5468057,13.72802 C54.2405639,14.0161422 53.8324087,14.1708093 53.4121299,14.1579963 C52.991851,14.1451832 52.5938758,13.9659396 52.3057543,13.6596971 L52.3055914,13.6595257 L47.9894743,9.07124 C47.3939486,8.43281183 47.4266116,7.4330694 48.0625396,6.83487461 C48.6984676,6.23667983 49.6983381,6.26515479 50.2991914,6.89857143 L54.6153086,11.4868571 C55.215283,12.1245712 55.18469,13.1279157 54.5469771,13.7278914 L54.5468057,13.72802 Z" fill="#FFCCBD" fill-rule="nonzero"></path>
|
||||
<path d="M102.496466,20.7774714 C101.176696,19.3739105 99.2874161,18.6511315 97.3678371,18.81542 L36.4152771,23.8871429 C34.0360432,24.0735451 31.8918619,25.3934501 30.6538371,27.4337429 C30.6421114,27.4521543 30.6312343,27.4706 30.6203486,27.4889857 L29.7774429,25.4336 L26.0985857,17.40584 C24.8631842,14.3865739 22.4304508,12.0152173 19.3806086,10.8573543 C19.2355106,9.29582331 18.1587245,7.97791436 16.6574657,7.52442286 L5.43926571,4.14396286 C3.39963316,3.52911608 1.24775249,4.68413316 0.632905714,6.72376571 C0.018058937,8.76339827 1.17307602,10.9152789 3.21270857,11.5301257 L14.4309,14.91056 C15.895449,15.3549549 17.4839357,14.8842165 18.4698943,13.7136286 C20.6902631,14.6144705 22.4502183,16.377494 23.3471914,18.5994286 L27.0260486,26.6271886 L29.92812,33.7078229 C29.9808514,33.8647714 30.0386057,34.0207429 30.1013829,34.1757371 L31.3787314,37.3105057 C31.4133271,37.3949714 31.455343,37.4762036 31.5042857,37.5532486 L42.5433429,64.4833914 C43.6104623,67.1123374 46.1664564,68.8304612 49.0037229,68.8260286 C49.2088029,68.8260286 49.4163857,68.8168143 49.6248171,68.7984029 L93.0561771,64.9990143 C96.2940927,64.7252758 98.9133024,62.2505026 99.3700714,59.0333 L104.150486,26.01572 C104.43193,24.1083549 103.822202,22.177356 102.496466,20.7774714 Z M64.1744657,64.5144629 L54.8674886,25.36238 L80.1663857,23.2572371 L77.8059,63.3219629 L64.1744657,64.5144629 Z M49.3636371,65.81012 C47.6203783,65.9657102 45.979622,64.9656964 45.3189943,63.3449771 L32.7514886,32.6891429 C32.3456441,31.3885638 32.5522698,29.9740603 33.3131857,28.8439176 C34.0741015,27.7137748 35.3069939,26.9902482 36.6647143,26.8770629 L51.8443714,25.6139514 L61.1544943,64.7786429 L49.3636371,65.81012 Z M101.182286,25.5855114 L96.4010314,58.6030829 C96.1399459,60.4404711 94.6442385,61.8539057 92.7950314,62.0107314 L80.8268571,63.0577143 L83.1865114,23.0058971 L97.6189886,21.8049371 C98.6271159,21.7196868 99.6190517,22.0990713 100.312986,22.8353072 C101.006921,23.5715431 101.327014,24.584168 101.182329,25.5854943 L101.182286,25.5855114 Z" fill="#a8be36" fill-rule="nonzero"></path>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
<h2 class="title">Votre panier est vide...</h2>
|
||||
<!--<div class="cart-item__text">
|
||||
Besoin d’idées pour commencer ?
|
||||
</div>
|
||||
<button class="btn btn_blue">Voir mes achats fréquents</button>
|
||||
<div class="empty-basket__action">
|
||||
<button class="btn btn_white">
|
||||
<span class="">Commencer mes courses</span>
|
||||
</button>
|
||||
<button class="btn btn_white">
|
||||
<span class="">voir les promotions</span>
|
||||
</button>
|
||||
</div>-->
|
||||
</div>
|
||||
</div>
|
||||
<!-- panier en avec produits -->
|
||||
<div class="basket-panel__header" v-show="!(emptybasket)">
|
||||
<div class="basket-panel__title-wrapper">
|
||||
<span class="title title_medium">
|
||||
Aperçu panier
|
||||
</span>
|
||||
</div>
|
||||
<button id="close-panel" class="basket-panel__close">
|
||||
<span>Fermer</span>
|
||||
</button>
|
||||
</div>
|
||||
<!-- <div class="message-box" v-show="!(emptybasket)">
|
||||
<div class="message-box__inner">
|
||||
<div class="message-box__heading message-box__icon message-box__icon--low">
|
||||
Vous n’êtes pas connecté
|
||||
</div>
|
||||
<div class="message-box__body">
|
||||
Connectez-vous ou créez votre compte pour passer votre commande
|
||||
</div>
|
||||
<a href="#" target="" class="message-box__alert-title">
|
||||
|
||||
</a>
|
||||
<div class="message-box__actions">
|
||||
<div><a href="/connexion">
|
||||
Me connecter
|
||||
</a> <a href="/inscription">
|
||||
Créer mon compte
|
||||
</a></div>
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
<div class="no-slot-alert" v-show="!(emptybasket)">
|
||||
<!-- show next available collection slot ? -->
|
||||
</div>
|
||||
<div class="basket-panel__content basket-panel__content--smooth-scroll" v-show="!(emptybasket)">
|
||||
<section class="cart-tile cart-tile--open">
|
||||
<div class="cart-tile__top"></div>
|
||||
<div>
|
||||
<div class="cart-tile__header">
|
||||
<section class="cart-tile__inner-content cart-tile__inner-content-row">
|
||||
<div class="cart-tile__informations"><svg aria-hidden="true" class="svg-icon svg-icon--l svg-icon--color-interactive-1">
|
||||
<use xlink:href="#i41"></use>
|
||||
</svg>
|
||||
<div class="cart-tile__title">
|
||||
<!--<h2 class="ds-title cart-tile__title-delivery-mode ds-title--light ds-title--xs ds-title--secondary">
|
||||
Vendu et préparé par
|
||||
</h2>
|
||||
<div class="cart-tile__title-seller">
|
||||
<h2 class="ds-title ds-title--bold ds-title--s ds-title--secondary">
|
||||
Carrefour Drive
|
||||
</h2>
|
||||
</div>-->
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="cart-tile__warning">
|
||||
<!-- what is the purpose of this one ? -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- début produits -->
|
||||
<div class="cart-tile__products">
|
||||
<div id="basket-available-list" class="basket-summary-list" is-panel="true">
|
||||
<div class="basket-products-list basket-products-list--without-padding">
|
||||
<div class="basket-products-list__inner">
|
||||
<div class="basket-products-list--first">
|
||||
<div class="category-heading basket-products-list__category" id="boissons">
|
||||
<!-- gamme
|
||||
<div class="category-heading__header category-heading__header--collapsable">
|
||||
<h2 class="category-heading__title title title_xs">
|
||||
Boissons
|
||||
</h2>
|
||||
<div class="category-heading__left-content">
|
||||
<div class="ds-badge category-heading__badge" data-testid="category-quantity-badge">
|
||||
1
|
||||
</div> <span class="ds-chevron category-heading__chevron ds-chevron--s"></span>
|
||||
</div>
|
||||
</div>
|
||||
<!-- fin gamme -->
|
||||
<div>
|
||||
<ol>
|
||||
<!-- boucleproduits -->
|
||||
<li class="basket-products-list__product-card basket-products-list__product-card--no-margin" v-for="item in panier">
|
||||
<article class="ds-product-card--largehorizontal ds-product-card">
|
||||
<div class="ds-product-card--largehorizontal-icons">
|
||||
<div title="Supprimer" class="product-card-delete" @click="removeItem(item.cartItem.rowId)"></div>
|
||||
</div>
|
||||
|
||||
<div class="ds-product-card--largehorizontal-highlightlabel">
|
||||
<div class="product-card-highlightlabel product-card-highlightlabel--fid">
|
||||
<span class="ds-body-text ds-body-text--weight-bold ds-body-text--size-s ds-body-text--color-inherit">
|
||||
<!-- highlight en tête produit
|
||||
Avantages fidélité
|
||||
-->
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ds-product-card--largehorizontal-infos">
|
||||
<div class="ds-product-card--largehorizontal-infos-main">
|
||||
<div class="ds-product-card--largehorizontal-left">
|
||||
<div class="ds-product-card--largehorizontal-image">
|
||||
<a href="" :title="item.cartItem.name" target="_self" class="product-card-image">
|
||||
<img :src="'/images/produits/'+item.product.picture"
|
||||
:alt="item.cartItem.name"
|
||||
importance="low" class="image product-card-image__image">
|
||||
</a>
|
||||
</div>
|
||||
<div class="ds-product-card--largehorizontal-badges">
|
||||
<!-- badges (bio, madie inf france etc)
|
||||
<ul class="product-badges-list">
|
||||
<li data-flag-id="flag.common.organic" class="product-badges-list__item"><a href="#flag.common.organic" data-testid="product-badge-link" class="product-badge__link product-badge--flag-common.organ product-badge--size-m">
|
||||
<picture class="product-badge__icon"><img src="/images/badges/flag-common-organic.svg" alt="Produit Bio" importance="low" class="image product-badge__icon__img"></picture> <span class="product-badge__title">Produit Bio</span>
|
||||
</a></li>
|
||||
</ul>-->
|
||||
<div class="ds-format ds-product-card__shimzone--small" v-show="item.cartItem.weight">
|
||||
{{ item.cartItem.weight }} {{ item.product.weight_unit }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="ds-product-card__shimzone--large">
|
||||
<a :href="'/produit/'+item.product.slug"
|
||||
:title="item.cartItem.name"
|
||||
target="_self" class="product-card-title product-card-title__reduced-line-clamp">
|
||||
<h2 class="ds-title ds-title--medium ds-title--s">
|
||||
{{ item.cartItem.name }}
|
||||
</h2>
|
||||
</a></div>
|
||||
<!-- unité de vente -->
|
||||
<div class="ds-product-card__shimzone--medium">
|
||||
<div class="ds-body-text ds-product-card__packaging ds-body-text--size-s ds-body-text--color-standard-3">
|
||||
{{ item.product.sell_unit }}
|
||||
</div>
|
||||
</div>
|
||||
<!-- prix au poids/litre
|
||||
<div class="ds-product-card__shimzone--small">
|
||||
<div class="ds-body-text ds-product-card__perunitlabel ds-body-text--size-s ds-body-text--color-standard-3">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
-->
|
||||
</div>
|
||||
</div>
|
||||
<div class="ds-product-card--largehorizontal-infos-sec">
|
||||
<!-- promotion -->
|
||||
<div class="ds-product-card--largehorizontal-promotion" v-show="item.product.calculatedPrices.discountAmount>0" v-for="promotion in item.product.promotions">
|
||||
<div>
|
||||
<div class="promotion-description promotion-description--loyalty">
|
||||
<div class="promotion-description__labels" @mouseover="hover('promotion_slide',item.cartItem.rowId)" @mouseleave="hover('promotion_slide','-1')">
|
||||
<p :title="numFormatter(Math.round(item.product.calculatedPrices.discountRate*100)/100)+'% d\'économies'" class="promotion-label">
|
||||
<span class="promotion-label__txt">{{ numFormatter(Math.round(item.product.calculatedPrices.discountRate*100)/100) }}% d'économies</span>
|
||||
</p>
|
||||
</div>
|
||||
<svg focusable="false" class="promotion-description__icon-info">
|
||||
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-info"></use>
|
||||
</svg>
|
||||
</div>
|
||||
<section class="promotion-slide" v-show="promotion_slide == item.cartItem.rowId">
|
||||
<header class="promotion-slide__header promotion-slide__header--loyalty">
|
||||
<p class="promotion-slide__header-txt">
|
||||
<svg focusable="false" class="promotion-slide__icon-promo">
|
||||
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-carrefour-loyalty-card-hightlighted"></use>
|
||||
</svg>
|
||||
<span class="promotion-slide__header-label">
|
||||
Economisé
|
||||
</span>
|
||||
<span class="promotion-slide__header-discount">
|
||||
{{ numFormatter((Math.round((item.product.calculatedPrices.priceTtc - item.product.calculatedPrices.discountedPriceTtc)*100)/100) * item.cartItem.qty) }}
|
||||
</span>
|
||||
</p>
|
||||
</header>
|
||||
<p class="promotion-slide__txt"><span><b>{{ numFormatter(Math.round(item.product.calculatedPrices.discountRate*100)/100) }}% d'économies</b><br></span>
|
||||
<span class="promotion-slide__end-date">Offre valable jusqu'au {{ dateFormatter(promotion.date_end) }}</span>
|
||||
</p>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ds-product-card--largehorizontal-pricing">
|
||||
<div class="product-card-price">
|
||||
<div class="product-card-price__price"><span class="ds-title product-card-price__price--final ds-title--m product-card-price__discount--fid">
|
||||
{{ numFormatter(item.product.calculatedPrices.discountedPriceTtc) }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ds-product-card--largehorizontal-cta">
|
||||
<div class="product-card-cta">
|
||||
<div id="data-produit-acheter" class="add-to-cart">
|
||||
<div class="pl-button-counter add-to-cart__counter">
|
||||
<button type="button" class="pl-button-counter__action" @click="addtocart(item.cartItem.id,-1)">
|
||||
<svg aria-hidden="true" class="svg-icon svg-icon--s">
|
||||
<use xlink:href="#i10"></use>
|
||||
</svg>
|
||||
</button>
|
||||
<div class="pl-button-counter__value">
|
||||
{{ item.cartItem.qty }}
|
||||
</div>
|
||||
<button type="button" class="pl-button-counter__action" @click="addtocart(item.cartItem.id,1)">
|
||||
<svg aria-hidden="true" class="svg-icon svg-icon--s">
|
||||
<use xlink:href="#i09"></use>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="promotion-feedback promotion-feedback--no-text promotion-feedback--text-only"><span class="promotion-feedback__content">
|
||||
</span></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
</li>
|
||||
<!-- fin boucle produits -->
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="products-brief">
|
||||
<section class="products-brief__top-section">
|
||||
</section>
|
||||
<div class="">
|
||||
<section class="products-brief__box">
|
||||
<dl class="products-brief-data products-brief--items">
|
||||
<dt>
|
||||
<div class="ds-body-text ds-body-text--size-m">Total produits</div>
|
||||
</dt>
|
||||
<dd>
|
||||
<div class="ds-body-text ds-body-text--weight-bold ds-body-text--size-m">
|
||||
{{numFormatter(cartTotals.totalTTC)}}
|
||||
</div>
|
||||
</dd>
|
||||
</dl>
|
||||
<div class="products-brief__slot">
|
||||
<div class="checkout-clear-basket basket-panel__clear-basket">
|
||||
<div id="data-clear-basket" class="checkout-clear-basket__actions">
|
||||
<button class="pl-button checkout-clear-basket__cta pl-button--tertiary pl-button--small" @click="confirmEmpty()">
|
||||
<span class="pl-button__label">
|
||||
<svg aria-hidden="true" class="checkout-clear-basket__icon svg-icon svg-icon--m svg-icon--color-interactive-1">
|
||||
<use xlink:href="#i13"></use>
|
||||
</svg>
|
||||
Vider le panier
|
||||
</span>
|
||||
</button>
|
||||
</div>
|
||||
<div id="empty-basket-modal" class="checkout-clear-basket__modal">
|
||||
<div class="modal" v-show="showConfirmEmpty">
|
||||
<div class="modal__container">
|
||||
<div class="modal__body">
|
||||
<div class="checkout-clear-basket__modal__title">
|
||||
Voulez-vous réellement vider votre panier ?
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal__action">
|
||||
<div><button class="ds-button" id="checkout-empty-basket-confirm">
|
||||
<span class="ds-button__label" @click="emptyCart()">
|
||||
Oui, vider mon panier
|
||||
</span>
|
||||
</button>
|
||||
<button class="ds-button ds-button--tertiary" id="checkout-empty-basket-cancel">
|
||||
<span class="ds-button__label">Annuler</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--<div class="checkout-loyalty-info" loyalties-desactivated="true" style="display: none;">
|
||||
<div class="checkout-loyalty-info__loyalty">
|
||||
<section class="checkout-loyalty-info__top-section">
|
||||
<h3 class="ds-title ds-title--bold ds-title--xs">
|
||||
Avantages fidélité
|
||||
</h3>
|
||||
</section>
|
||||
</div>
|
||||
</div>-->
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- fin profuits-->
|
||||
<div class="cart-tile__bottom cart-tile__bottom--fixed">
|
||||
<div class="cart-tile__price">
|
||||
<h2 class="ds-title ds-title--bold ds-title--s ds-title--bright">
|
||||
Total
|
||||
</h2>
|
||||
<h2 class="ds-title ds-title--bold ds-title--m ds-title--bright">
|
||||
{{numFormatter(cartTotals.totalTTC)}}
|
||||
</h2>
|
||||
</div>
|
||||
<button class="pl-button pl-button--primary pl-button--light">
|
||||
<a href="/commande/recap">
|
||||
<span class="pl-button__label">
|
||||
Commander
|
||||
</span>
|
||||
</a>
|
||||
</button>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<!-- fin basket-panel__drawer -->
|
||||
</div>
|
||||
<div class="svg-icons-sprites">
|
||||
<svg id="sprite-defs" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<defs>
|
||||
<symbol viewBox="0 0 24 15" id="i41"><path d="M4.27 1.793a16.39 16.39 0 019.445-.375 9.561 9.561 0 014.637 3.517c1.066.375 4.924 1.885 5.32 4.05a4.671 4.671 0 01-.69 3.277.95.95 0 01-.682.376h-1.81a2.916 2.916 0 01-5.361 0H8.416a2.923 2.923 0 01-5.396 0h-.874a1.318 1.318 0 01-.901-.382C.733 11.778.487 10.91.487 9.688a10.066 10.066 0 012.63-7.096c.339-.35.652-.57 1.153-.799zm1.448 8.188a1.557 1.557 0 100 3.115 1.557 1.557 0 000-3.115zm12.088 0a1.557 1.557 0 100 3.115 1.557 1.557 0 000-3.115zm-4.473-7.218a15.024 15.024 0 00-8.94.478 8.817 8.817 0 00-2.54 6.474c-.014 1.257.287 1.55.341 1.591h.628a2.91 2.91 0 015.798 0h6.29a2.902 2.902 0 015.798 0h1.312c.297-.643.404-1.36.307-2.062-.205-1.113-2.827-2.459-4.624-3.053a.683.683 0 01-.362-.287 8.407 8.407 0 00-4.008-3.141z"></path></symbol>
|
||||
<symbol viewBox="0 0 16 2" id="i10"><path d="M1.197 0C.536 0 0 .448 0 1s.536 1 1.197 1h13.606C15.464 2 16 1.552 16 1s-.536-1-1.197-1H1.197z"></path></symbol>
|
||||
<symbol viewBox="0 0 16 16" id="i09"><path d="M8 .5c.518 0 .938.502.938 1.122l-.001 5.44h5.441c.578 0 1.055.366 1.115.836L15.5 8c0 .518-.502.938-1.122.938l-5.441-.001v5.441c0 .578-.365 1.055-.835 1.115L8 15.5c-.518 0-.938-.502-.938-1.122V8.937h-5.44c-.578 0-1.055-.365-1.115-.835L.5 8c0-.518.502-.938 1.122-.938h5.44v-5.44c0-.578.366-1.055.836-1.115z"></path></symbol>
|
||||
<symbol viewBox="0 0 20 24" id="i13"><path d="M18.67 4a1 1 0 01.117 1.993L18.671 6H17.52l-.63 14.85c-.069 1.626-1.192 2.914-2.59 3.008l-.161.005H5.534c-1.418 0-2.591-1.227-2.74-2.827l-.013-.186L2.15 6H1a1 1 0 01-.117-1.993L1 4h17.67zm-3.03 2H4l.626 14.893c.025.588.366 1.038.682 1.1l.073.007h8.88c.31 0 .67-.409.742-.974l.011-.133L15.64 6zM7.71 8c.376-.013.766.293.79.708l.482 8.744a.751.751 0 01-.708.791l-.042.001a.75.75 0 01-.748-.708L7 8.791a.75.75 0 01.708-.79zm4.565 0a.75.75 0 01.708.791l-.483 8.745a.75.75 0 01-.748.708h-.042a.751.751 0 01-.708-.792l.483-8.744c.024-.415.405-.722.79-.708zm.688-8a1 1 0 110 2H6.709a1 1 0 110-2h6.253z"></path></symbol>
|
||||
</defs>
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
<script>
|
||||
let toast = {
|
||||
duration: 2000,
|
||||
newWindow: false,
|
||||
close: true,
|
||||
className: "notifications",
|
||||
gravity: "top",
|
||||
offset: {
|
||||
x: "2em",
|
||||
y: "3em"
|
||||
},
|
||||
stopOnFocus: false // Authorize dismissing of toast on hover
|
||||
};
|
||||
|
||||
|
||||
export default {
|
||||
props: [
|
||||
|
||||
],
|
||||
computed: {
|
||||
emptybasket() { return _.isEmpty(this.$store.state.panier); },
|
||||
panier() { return this.$store.state.panier; },
|
||||
cartTotals() { return this.$store.state.cartTotals; }
|
||||
},
|
||||
watch: {
|
||||
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
processing: false,
|
||||
success:false,
|
||||
errors:false,
|
||||
showConfirmEmpty:false,
|
||||
response: '',
|
||||
promotion_slide: -1
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
console.log('Basket Panel Component mounted.');
|
||||
this.init();
|
||||
},
|
||||
methods: {
|
||||
init() {
|
||||
axios.post('/ajax/get-cart')
|
||||
.then(response => {
|
||||
let result = response.data;
|
||||
this.updateStore(result);
|
||||
}).catch(error => {
|
||||
console.log(error);
|
||||
})
|
||||
},
|
||||
addtocart(product_id,qtty) {
|
||||
let breaker=false;
|
||||
if(qtty>0) {
|
||||
toast.text = 'Produit ajouté à votre panier';
|
||||
} else {
|
||||
toast.text = 'Produit retiré de votre panier';
|
||||
}
|
||||
this.panier.forEach(element => {
|
||||
if(element.cartItem.id == product_id) {
|
||||
element.cartItem.qty +=qtty;
|
||||
}
|
||||
if(element.cartItem.qty == 0) {
|
||||
this.removeItem(element.cartItem.rowId);
|
||||
breaker=true;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
if(!breaker) {
|
||||
axios.post('/ajax/add-to-cart', {
|
||||
id: product_id,
|
||||
qty: qtty,
|
||||
}).then(
|
||||
(response) => {
|
||||
let result = response.data;
|
||||
this.updateStore(result);
|
||||
toast.destination = undefined;
|
||||
Toastify(toast).showToast();
|
||||
window.toggleFixingBottomCart();
|
||||
window.openCart();
|
||||
}
|
||||
)
|
||||
.catch(function (error) {
|
||||
console.log(error);
|
||||
this.response = "Erreur lors de la modification du panier.";
|
||||
this.processing = false;
|
||||
});
|
||||
}
|
||||
},
|
||||
removeItem(rowId) {
|
||||
axios.post('/ajax/remove-from-cart', {
|
||||
rowId: rowId,
|
||||
}).then(
|
||||
(response) => {
|
||||
let result = response.data;
|
||||
this.updateStore(result);
|
||||
toast.text = 'Produit retiré de votre panier';
|
||||
toast.destination = undefined;
|
||||
Toastify(toast).showToast();
|
||||
window.toggleFixingBottomCart();
|
||||
}
|
||||
)
|
||||
.catch(function (error) {
|
||||
console.log(error);
|
||||
this.response = "Erreur lors de la modification du panier.";
|
||||
this.processing = false;
|
||||
});
|
||||
},
|
||||
emptyCart() {
|
||||
//masquer la modale
|
||||
this.showConfirmEmpty = false;
|
||||
axios.post('/ajax/empty-cart', {
|
||||
}).then(
|
||||
(response) => {
|
||||
let result = response.data;
|
||||
this.updateStore(result);
|
||||
}
|
||||
)
|
||||
.catch(function (error) {
|
||||
console.log(error);
|
||||
this.response = "Erreur lors de la modification du panier.";
|
||||
this.processing = false;
|
||||
});
|
||||
},
|
||||
confirmEmpty() {
|
||||
//afficher la modale
|
||||
this.showConfirmEmpty = true;
|
||||
},
|
||||
updateStore(result) {
|
||||
if (result[0].length != this.panier.length) {
|
||||
this.$store.commit({
|
||||
type: 'updatePanier',
|
||||
panier: result[0]
|
||||
});
|
||||
}
|
||||
this.$store.commit({
|
||||
type: 'updateCartTotals',
|
||||
cartTotals: result[1]
|
||||
});
|
||||
},
|
||||
hover(zone,row_id) {
|
||||
console.log(this.promotion_slide);
|
||||
eval("this."+zone+"='"+row_id+"';");
|
||||
console.log(this.promotion_slide);
|
||||
},
|
||||
//general purpose TODO : globalize
|
||||
numFormatter(num) {
|
||||
return new Intl.NumberFormat('fr-FR', { style: 'currency', currency: 'EUR' }).format(num);
|
||||
},
|
||||
dateFormatter(str) {
|
||||
let d=new Date(str);
|
||||
var options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' };
|
||||
return d.toLocaleDateString("fr-FR",options);
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
385
js/components/TimeSlotPicker.vue
Normal file
|
|
@ -0,0 +1,385 @@
|
|||
<template>
|
||||
<div class="timeslot-container">
|
||||
<div class="point-relay">
|
||||
<h2 class="title title_xs">1. Choisissez Votre point de retrait</h2>
|
||||
|
||||
<!--<div class="point-relay__form form">
|
||||
<input class="form__input" type="text" placeholder="Rechercher une adresse">
|
||||
<button class="btn btn_blue">OK</button>
|
||||
<button class="btn">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="34px" height="34px">
|
||||
<path fill-rule="evenodd" stroke="rgb(255, 255, 255)" stroke-width="2px" stroke-linecap="butt" stroke-linejoin="miter" fill="none" d="M16.500,5.000 C22.851,5.000 28.000,10.149 28.000,16.500 C28.000,22.851 22.851,28.000 16.500,28.000 C10.149,28.000 5.000,22.851 5.000,16.500 C5.000,10.149 10.149,5.000 16.500,5.000 Z" />
|
||||
<path fill-rule="evenodd" fill="rgb(255, 255, 255)" d="M-0.000,17.000 L-0.000,16.000 L10.000,16.000 L10.000,17.000 L-0.000,17.000 Z" />
|
||||
<path fill-rule="evenodd" fill="rgb(255, 255, 255)" d="M23.000,17.000 L23.000,16.000 L33.000,16.000 L33.000,17.000 L23.000,17.000 Z" />
|
||||
<path fill-rule="evenodd" fill="rgb(255, 255, 255)" d="M16.000,10.000 L16.000,-0.000 L17.000,-0.000 L17.000,10.000 L16.000,10.000 Z" />
|
||||
<path fill-rule="evenodd" fill="rgb(255, 255, 255)" d="M16.000,33.000 L16.000,23.000 L17.000,23.000 L17.000,33.000 L16.000,33.000 Z" />
|
||||
<path fill-rule="evenodd" stroke="rgb(255, 255, 255)" stroke-width="1px" stroke-linecap="butt" stroke-linejoin="miter" fill="none" d="M16.000,16.000 L17.000,16.000 L16.000,16.000 Z" />
|
||||
</svg>
|
||||
</button>
|
||||
</div>-->
|
||||
<div class="choices">
|
||||
<div class="blocks" v-for="magasin in magasins" @click="choosemagasin(magasin.id)" :class="{ active: selectedmagasin == magasin.id }">
|
||||
<div class="block">
|
||||
<div class="label title title_small">Point de retrait :</div>
|
||||
<div class="value title title_small">{{magasin.name}}</div>
|
||||
</div>
|
||||
<div class="block">
|
||||
<div class="label title title_small">Adresse :</div>
|
||||
<div class="value">{{magasin.address}}<br>{{magasin.postcode}} {{magasin.city}}</div>
|
||||
</div>
|
||||
<div class="block">
|
||||
<div class="label title title_small">Téléphone : </div>
|
||||
<div class="value">{{magasin.phone}}</div>
|
||||
</div>
|
||||
<div class="map">
|
||||
<iframe :src="magasin.gmaps_embed_href" width="100%" height="225" frameborder="0" style="border:0;" allowfullscreen="" loading="lazy" aria-hidden="false" tabindex="0"></iframe>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" :value="selectedmagasin" name="selectedmagasin">
|
||||
</div>
|
||||
<div class="datetime-collect">
|
||||
<h2 class="title title_xs">2. Choisissez le jour et l'heure du retrait de votre commande</h2>
|
||||
<div class="timeslot-pick-wrapper">
|
||||
<div class="calendar">
|
||||
<h2><span @click="prevMonth()" v-show="canPrevMonth()"><img src="/canard/img/chevron_prev.svg"></span>{{ months[currentmonth] }} {{ currentyear }}<span @click="nextMonth()"><img src="/canard/img/chevron_next.svg"></span></h2>
|
||||
<header>
|
||||
<div v-for="day in days">{{ short(day) }}</div>
|
||||
</header>
|
||||
<section class="content">
|
||||
<div v-for="tile in tiles" :class="style(tile)" @click="showCreneaux(tile)">
|
||||
<span>{{ getday(tile.date) }}</span>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="creneaux">
|
||||
<header>Horaires disponibles le {{selectedDay}}</header>
|
||||
<section class="creneaux__list" @mousewheel.prevent="wheel">
|
||||
<div class="scroll-up"
|
||||
@click="scroll('up')"
|
||||
@mousedown="scrollStart('up')" @mouseup="scrollStop()"
|
||||
@mouseleave="scrollStop()" @touchstart="scrollStart('up')"
|
||||
@touchend="scrollStop()" @touchcancel="scrollStop()"
|
||||
:class="{active: (this.scrollCounter>0)}"><img src="/canard/img/chevron_up.svg"></div>
|
||||
<section class="creneaux__slots" ref="creneaux__slots" :class="{hasDown: (creneaux.length>3 && this.scrollCounter<(creneaux.length/2)), hasUp: (this.scrollCounter>0)}">
|
||||
<div v-for="(creneau,index) in creneaux" :class="styleCren(creneau)" @click="selectSlot(creneau)" ref="cren" :key="index">
|
||||
<span>{{creneau.horaire}}</span>
|
||||
</div>
|
||||
</section>
|
||||
<div class="scroll-down"
|
||||
@click="scroll('down')"
|
||||
@mousedown="scrollStart('down')" @mouseup="scrollStop()"
|
||||
@mouseleave="scrollStop()" @touchstart="scrollStart('down')"
|
||||
@touchend="scrollStop()" @touchcancel="scrollStop()"
|
||||
:class="{active: (creneaux.length>3 && this.scrollCounter<(creneaux.length/2)) }"><img src="/canard/img/chevron_down.svg"></div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" :value="selectedCreneau" name="selectedcreneau">
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
day: {
|
||||
type: Number,
|
||||
default: function() {
|
||||
return new Date().getDay();
|
||||
}
|
||||
},
|
||||
month : {
|
||||
type: Number,
|
||||
default: function() {
|
||||
return new Date().getMonth();
|
||||
}
|
||||
},
|
||||
year : {
|
||||
type: Number,
|
||||
default: function() {
|
||||
return new Date().getFullYear();
|
||||
}
|
||||
},
|
||||
weekend: {
|
||||
type: Array,
|
||||
default: function() {
|
||||
return [5,6];
|
||||
}
|
||||
},
|
||||
days: {
|
||||
type: Array,
|
||||
default : function() {
|
||||
return ['Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi', 'Dimanche'];
|
||||
}
|
||||
},
|
||||
months: {
|
||||
type: Array,
|
||||
default: function() {
|
||||
return ['Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octore', 'Novembre', 'Décembre'];
|
||||
}
|
||||
},
|
||||
maxtiles: {
|
||||
type: Number,
|
||||
default : 34 //soit 5 semaines
|
||||
},
|
||||
// defaultCreneaux: {
|
||||
// type: Array,
|
||||
// default: function() {
|
||||
// var x = 15; //minutes interval
|
||||
// var times = []; // time array
|
||||
// var tt = 0; // start time
|
||||
// var ap = ['AM', 'PM']; // AM-PM
|
||||
|
||||
// //loop to increment the time and push results in array
|
||||
// for (var i=0;tt<24*60; i++) {
|
||||
// var hh = Math.floor(tt/60); // getting hours of day in 0-24 format
|
||||
// var mm = (tt%60); // getting minutes of the hour in 0-55 format
|
||||
// times[i] = ("0" + hh).slice(-2) + ':' + ("0" + mm).slice(-2) //+ ap[Math.floor(hh/12)]; // pushing data in array in [00:00 - 12:00 AM/PM format]
|
||||
// tt = tt + x;
|
||||
// }
|
||||
|
||||
// return times;
|
||||
// }
|
||||
// },
|
||||
dbavailablecreneaux: {
|
||||
type: String,
|
||||
},
|
||||
showOnlyAvailables: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
dbmagasin: {
|
||||
type: String,
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
date() { return new Date(this.currentyear, this.currentmonth, 1);},
|
||||
startday() {return this.date.getDay() < 1 ? 6 : this.date.getDay() - 1;},
|
||||
dayscount() {return new Date(this.currentyear, this.currentmonth + 1, 0).getDate();},
|
||||
tiles() { return this.prepare(); },
|
||||
creneaux: {
|
||||
get: function(){ return this.listCreneaux(); },
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
currentmonth: null,
|
||||
currentyear: this.year,
|
||||
selectedDay : new Date().toLocaleDateString(),
|
||||
selectedCreneau : null,
|
||||
current: new Date(),
|
||||
availableCreneaux: [],
|
||||
scrollCounter: 0,
|
||||
interval:false,
|
||||
magasins: [],
|
||||
selectedmagasin: null,
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.availableCreneaux = JSON.parse(this.dbavailablecreneaux);
|
||||
//this.availableCrenaux = this.dbavailablecreneaux;
|
||||
this.selectedDay = this.current.toLocaleDateString();
|
||||
this.currentmonth = this.month; //this.months.indexOf(this.month);
|
||||
this.magasins = JSON.parse(this.dbmagasin);
|
||||
this.loadAvailableCreneaux();
|
||||
},
|
||||
methods: {
|
||||
nextMonth() {
|
||||
if(this.currentmonth == 11) {
|
||||
this.currentmonth = 0;
|
||||
this.currentyear+=1;
|
||||
} else {
|
||||
this.currentmonth+=1;
|
||||
}
|
||||
},
|
||||
prevMonth() {
|
||||
if(this.currentmonth == 0) {
|
||||
this.currentmonth = 11;
|
||||
this.currentyear-=1;
|
||||
} else {
|
||||
this.currentmonth-=1;
|
||||
}
|
||||
},
|
||||
canPrevMonth() {
|
||||
let lastDayOfPrevMonth = new Date(this.currentyear,this.currentmonth,0);
|
||||
if(lastDayOfPrevMonth > this.current) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
},
|
||||
short(value) { return value.substring(0, 3) },
|
||||
getday(value) { return new Date(value).getDate() },
|
||||
style(tile) {
|
||||
return {
|
||||
'last': tile.last,
|
||||
'next': tile.next,
|
||||
'current': tile.current,
|
||||
'selected' : tile.selected,
|
||||
'grey': tile.grey,
|
||||
'unavailable': tile.unavailable
|
||||
}
|
||||
},
|
||||
styleCren(creneau) {
|
||||
return {
|
||||
'dispo' : creneau.dispo,
|
||||
'selected' : creneau.selected
|
||||
}
|
||||
},
|
||||
prepare() {
|
||||
let before = [];
|
||||
let current = [];
|
||||
let daycount = 1;
|
||||
for (let i = 0; i <= this.maxtiles; i++) {
|
||||
let date = new Date(this.currentyear, this.currentmonth, (i < this.startday) ? -i : daycount);
|
||||
let day = date.getDay() < 1 ? 6 : date.getDay() - 1;
|
||||
let obj = {
|
||||
//this day is from lastmonth
|
||||
last: (i < this.startday) ? true : false,
|
||||
//this day is next month
|
||||
next: i >= this.dayscount + this.startday,
|
||||
//this is a weekend day
|
||||
grey: this.weekend.find((item) => item === day) ? true : false,
|
||||
//this is today
|
||||
current: (new Date(this.currentyear, this.currentmonth, daycount).toDateString() == this.current.toDateString()) ? true : false,
|
||||
//selected
|
||||
selected: (date.toLocaleDateString() == this.selectedDay) ? true : false,
|
||||
//this tile's date
|
||||
date: date,
|
||||
//not available
|
||||
unavailable: (new Date(this.current.getFullYear(), this.current.getMonth(), this.current.getDate()) > date)? true : false,
|
||||
};
|
||||
if (i < this.startday)
|
||||
before.push(obj);
|
||||
else {
|
||||
current.push(obj);
|
||||
daycount++;
|
||||
}
|
||||
}
|
||||
return before.reverse().concat(current);
|
||||
},
|
||||
showCreneaux(tile){
|
||||
if(!tile.unavailable) {
|
||||
this.selectedDay = tile.date.toLocaleDateString();
|
||||
if(tile.next) {
|
||||
this.nextMonth();
|
||||
}
|
||||
if(tile.last) {
|
||||
this.prevMonth();
|
||||
}
|
||||
}
|
||||
//this.selectedCreneau = null;
|
||||
//this.creneaux = this.listCreneaux();
|
||||
},
|
||||
selectSlot(creneau){
|
||||
if(creneau.dispo) {
|
||||
this.selectedCreneau = this.selectedDay+"-"+creneau.horaire;
|
||||
}
|
||||
},
|
||||
listCreneaux() {
|
||||
let todaysAvailable = [];
|
||||
if(this.selectedDay in this.availableCreneaux) {
|
||||
todaysAvailable = this.availableCreneaux[""+this.selectedDay];
|
||||
}
|
||||
let crens = [];
|
||||
|
||||
todaysAvailable.forEach(element => {
|
||||
let obj = {
|
||||
//day: index,
|
||||
horaire: element[0],
|
||||
dispo: element[1],
|
||||
selected: (this.selectedCreneau == this.selectedDay+"-"+element[0]) ? true : false
|
||||
};
|
||||
//option pour ne générer que les créneaux disponibles
|
||||
if(this.showOnlyAvailables) {
|
||||
if (obj.dispo) {
|
||||
crens.push(obj);
|
||||
}
|
||||
} else {
|
||||
crens.push(obj);
|
||||
}
|
||||
});
|
||||
return crens;
|
||||
},
|
||||
scrollStart(way) {
|
||||
this.interval = setInterval(() => {
|
||||
this.scroll(way);
|
||||
}, 300);
|
||||
},
|
||||
scrollStop() {
|
||||
clearInterval(this.interval);
|
||||
this.interval = false;
|
||||
},
|
||||
//animation
|
||||
scroll(way) {
|
||||
if (way == 'down') {
|
||||
//ici on limite le nombre de click down
|
||||
//1 er click on scroll 2 crans
|
||||
//2 eme click on scroll 2 crans, etx
|
||||
//et on démarre à 0 donc, -1
|
||||
if (this.scrollCounter < (this.creneaux.length/2)) {
|
||||
this.scrollCounter = this.scrollCounter + 1;
|
||||
this.fixScrolling();
|
||||
}
|
||||
} else if (way == 'up') {
|
||||
if (this.scrollCounter > 0) {
|
||||
this.scrollCounter = this.scrollCounter - 1;
|
||||
this.fixScrolling()
|
||||
}
|
||||
}
|
||||
},
|
||||
wheel(event) {
|
||||
if ( event.deltaY < 0 )
|
||||
{
|
||||
this.scroll('up');
|
||||
}
|
||||
else
|
||||
{
|
||||
this.scroll('down');
|
||||
}
|
||||
},
|
||||
fixScrolling(){
|
||||
const divH = this.$refs.cren[this.scrollCounter].clientHeight;
|
||||
if(this.scrollCounter==1) {
|
||||
//cas du premier on va faire apparaite le bouton pour remonter, et réduire la taille du viewport de l'element
|
||||
this.$refs.creneaux__slots.scrollTop = divH * this.scrollCounter + divH;
|
||||
} else {
|
||||
this.$refs.creneaux__slots.scrollTop = 2.1 * divH * this.scrollCounter;
|
||||
}
|
||||
},
|
||||
choosemagasin(id) {
|
||||
if(this.selectedmagasin != id) {
|
||||
//on a changé de magasin
|
||||
this.selectedCreneau = null;
|
||||
this.selectedmagasin = id;
|
||||
this.loadAvailableCreneaux();
|
||||
}
|
||||
},
|
||||
loadAvailableCreneaux() {
|
||||
if(this.selectedmagasin != null) {
|
||||
$(".datetime-collect").show();
|
||||
axios.post('/ajax/get-time-slots', {
|
||||
id: this.selectedmagasin,
|
||||
}).then(
|
||||
(response) => {
|
||||
this.availableCreneaux = response.data;
|
||||
this.processing = false;
|
||||
}
|
||||
)
|
||||
.catch(function (error) {
|
||||
console.log(error);
|
||||
alert('Erreur 101');
|
||||
this.processing = false;
|
||||
});
|
||||
} else {
|
||||
$(".datetime-collect").hide();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
304
js/ldcweb-cn.js
Normal file
|
|
@ -0,0 +1,304 @@
|
|||
/**
|
||||
* LDC Service Web
|
||||
* Version 1.0
|
||||
*/
|
||||
|
||||
export class LdcwebCn {
|
||||
|
||||
constructor(config) {
|
||||
this.config = config;
|
||||
this.cookieContainer = document.getElementById('ldcweb-cn');
|
||||
this.bannerContainer = document.getElementById('ldcweb-banner');
|
||||
this.modalContainer = document.getElementById('ldcweb-cn-modal');
|
||||
this.modalCloseBtn = document.getElementById('close-link');
|
||||
this.acceptAllBtnBanner = document.getElementById('ldcweb-cn-accept-banner');
|
||||
this.acceptAllBtn = document.getElementById('ldcweb-cn-accept');
|
||||
this.denyAllBtnBanner = document.getElementById('ldcweb-cn-deny-banner');
|
||||
this.denyAllBtn = document.getElementById('ldcweb-cn-deny');
|
||||
this.personalizeBtn = document.getElementsByClassName('ldcweb-cn-personalize');
|
||||
this.changeBtn = document.getElementsByClassName('ldcweb-cn-change');
|
||||
this.cookiesList = document.getElementById('ldcweb-cn-list');
|
||||
this.cookieLink = document.querySelector('.footer-links a[href="#cookie"]')
|
||||
this.template = document.getElementById('template').cloneNode(true);
|
||||
document.getElementById('template').remove();
|
||||
|
||||
let cookies = this.getLDCWebCookie('ldcwebcn-init');
|
||||
if (cookies === undefined) {
|
||||
let newCookie = [];
|
||||
|
||||
for (const [key, value] of Object.entries(this.config)) {
|
||||
newCookie.push(key + "=wait");
|
||||
}
|
||||
|
||||
this.saveLDCWebCookie(newCookie);
|
||||
this.cookieContainer.classList.add('open-banner');
|
||||
} else {
|
||||
let test = cookies.split(',');
|
||||
test.forEach(elm => {
|
||||
let test = elm.split('=');
|
||||
if (test[1] === 'wait') {
|
||||
this.cookieContainer.classList.add('open-banner');
|
||||
}
|
||||
});
|
||||
}
|
||||
this.modalCloseBtn.addEventListener(
|
||||
'click',
|
||||
function (e) {
|
||||
e.preventDefault();
|
||||
let cookies = this.getLDCWebCookie('ldcwebcn-init');
|
||||
let test = cookies.split(',');
|
||||
let bIsCompleted = true;
|
||||
for (let item of test) {
|
||||
if (item.indexOf('=wait') !== -1) {
|
||||
bIsCompleted = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (bIsCompleted) {
|
||||
this.cookieContainer.classList.remove('open-modal');
|
||||
this.cookieContainer.classList.remove('open-banner');
|
||||
} else {
|
||||
alert("Vous devez renseigner votre choix pour tous les cookies, svp.");
|
||||
}
|
||||
}.bind(this)
|
||||
);
|
||||
let accept = function (e) {
|
||||
e.preventDefault();
|
||||
for (const [key, value] of Object.entries(this.config)) {
|
||||
this.addCookie(key, value);
|
||||
}
|
||||
for (let acceptLabel of this.cookieContainer.querySelectorAll('.accept > label')) {
|
||||
acceptLabel.classList.add('active');
|
||||
}
|
||||
for (let denyLabel of this.cookieContainer.querySelectorAll('.deny > label')) {
|
||||
denyLabel.classList.remove('active');
|
||||
}
|
||||
this.updateAllCookiesButtonsActiveStatus()
|
||||
this.cookieContainer.classList.remove('open-modal');
|
||||
this.cookieContainer.classList.remove('open-banner');
|
||||
}.bind(this);
|
||||
this.acceptAllBtnBanner.addEventListener('click', accept);
|
||||
this.acceptAllBtn.addEventListener('click', accept);
|
||||
|
||||
let deny = function (e) {
|
||||
e.preventDefault();
|
||||
for (const [key, value] of Object.entries(this.config)) {
|
||||
this.removeCookie(key, value);
|
||||
}
|
||||
for (let acceptLabel of this.cookieContainer.querySelectorAll('.accept > label')) {
|
||||
acceptLabel.classList.remove('active');
|
||||
}
|
||||
for (let denyLabel of this.cookieContainer.querySelectorAll('.deny > label')) {
|
||||
denyLabel.classList.add('active');
|
||||
}
|
||||
this.updateAllCookiesButtonsActiveStatus()
|
||||
this.cookieContainer.classList.remove('open-modal');
|
||||
this.cookieContainer.classList.remove('open-banner');
|
||||
}.bind(this);
|
||||
this.denyAllBtnBanner.addEventListener('click', deny);
|
||||
this.denyAllBtn.addEventListener('click', deny);
|
||||
|
||||
this.cookieLink.addEventListener(
|
||||
'click',
|
||||
function (e) {
|
||||
e.preventDefault();
|
||||
this.setCookieList();
|
||||
this.updateAllCookiesButtonsActiveStatus()
|
||||
}.bind(this)
|
||||
);
|
||||
|
||||
for (let item of this.personalizeBtn) {
|
||||
this.addEvent(
|
||||
item,
|
||||
'click',
|
||||
function () {
|
||||
this.setCookieList();
|
||||
}.bind(this)
|
||||
);
|
||||
}
|
||||
|
||||
this.setListenerOnChange();
|
||||
|
||||
let cookie = this.getLDCWebCookie('ldcwebcn-init');
|
||||
let test = cookie.split(',');
|
||||
test.forEach(elm => {
|
||||
let test = elm.split('=');
|
||||
if (test[1] === 'true') {
|
||||
this.config[test[0]].script();
|
||||
}
|
||||
});
|
||||
|
||||
this.updateAllCookiesButtonsActiveStatus()
|
||||
}
|
||||
|
||||
setCookieList() {
|
||||
this.cookiesList.innerHTML = "";
|
||||
let cookiesSite = this.getLDCWebCookie('ldcwebcn-init');
|
||||
|
||||
for (const [key, value] of Object.entries(this.config)) {
|
||||
let cookie = document.createElement('li');
|
||||
cookie.append(this.template.children.item(0).cloneNode(true));
|
||||
let name = cookie.querySelector('span.ldcweb-cn-name');
|
||||
let description = cookie.querySelector('span.ldcweb-cn-description');
|
||||
let link = cookie.querySelector('a.ldcweb-cn-link');
|
||||
let acceptInput = cookie.querySelector('.accept > input');
|
||||
let denyInput = cookie.querySelector('.deny > input');
|
||||
let acceptLabel = cookie.querySelector('.accept > label');
|
||||
let denyLabel = cookie.querySelector('.deny > label');
|
||||
|
||||
name.textContent = value.name;
|
||||
description.textContent = value.description;
|
||||
link.textContent = "Politique de confidentialité";
|
||||
link.setAttribute("href", value.link);
|
||||
acceptInput.id = key + '1';
|
||||
acceptInput.name = key;
|
||||
acceptInput.dataset.name = key;
|
||||
acceptLabel.htmlFor = key + '1';
|
||||
denyInput.id = key + '2';
|
||||
denyInput.name = key;
|
||||
denyInput.dataset.name = key;
|
||||
denyLabel.htmlFor = key + '2';
|
||||
|
||||
acceptInput.addEventListener('click', function (e) {
|
||||
acceptLabel.classList.add('active');
|
||||
denyLabel.classList.remove('active');
|
||||
this.updateAllCookiesButtonsActiveStatus();
|
||||
this.addCookie(key, value)
|
||||
}.bind(this));
|
||||
denyInput.addEventListener('click', function (e) {
|
||||
acceptLabel.classList.remove('active');
|
||||
denyLabel.classList.add('active');
|
||||
this.updateAllCookiesButtonsActiveStatus();
|
||||
this.removeCookie(key, value)
|
||||
}.bind(this));
|
||||
|
||||
this.cookiesList.append(cookie);
|
||||
|
||||
let cookiesArray = cookiesSite.split(',');
|
||||
cookiesArray.forEach(elm => {
|
||||
let name = elm.slice(0, elm.indexOf('='));
|
||||
let status = elm.slice(elm.indexOf('=') + 1);
|
||||
if (name === key) {
|
||||
acceptLabel.classList.remove('active');
|
||||
denyLabel.classList.remove('active');
|
||||
switch (status) {
|
||||
case 'true':
|
||||
acceptLabel.classList.add('active');
|
||||
break;
|
||||
case 'false':
|
||||
denyLabel.classList.add('active');
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (status === 'wait') {
|
||||
this.cookieContainer.classList.add('open-banner');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
this.cookieContainer.classList.add('open-modal');
|
||||
this.setListenerOnChange();
|
||||
}
|
||||
|
||||
updateAllCookiesButtonsActiveStatus() {
|
||||
let acceptsButtons = this.cookieContainer.querySelectorAll('div.accept > label');
|
||||
let deniesButtons = this.cookieContainer.querySelectorAll('div.deny > label');
|
||||
let activeAcceptsButtons = this.cookieContainer.querySelectorAll('div.accept > label.active');
|
||||
let activeDeniesButtons = this.cookieContainer.querySelectorAll('div.deny > label.active');
|
||||
|
||||
this.acceptAllBtn.classList.remove('active');
|
||||
this.denyAllBtn.classList.remove('active');
|
||||
if (acceptsButtons.length && acceptsButtons.length === activeAcceptsButtons.length) {
|
||||
this.acceptAllBtn.classList.add('active');
|
||||
}
|
||||
if (deniesButtons.length && deniesButtons.length === activeDeniesButtons.length) {
|
||||
this.denyAllBtn.classList.add('active');
|
||||
}
|
||||
}
|
||||
|
||||
addCookie(key, value) {
|
||||
if (value.script) {
|
||||
value.script();
|
||||
}
|
||||
this.changeStatus(key, "true");
|
||||
}
|
||||
|
||||
removeCookie(key, value) {
|
||||
for (let cookieName of value.cookies) {
|
||||
this.deleteBrowserCookie(cookieName, "/", "." + location.host)
|
||||
}
|
||||
if (document.getElementById(key)) {
|
||||
document.getElementById(key).remove();
|
||||
}
|
||||
this.changeStatus(key, "false");
|
||||
}
|
||||
setListenerOnChange() {
|
||||
this.changeBtn = document.getElementsByClassName('ldcweb-cn-change');
|
||||
for (let item of this.changeBtn) {
|
||||
this.addEvent(
|
||||
item,
|
||||
'click',
|
||||
function () {
|
||||
this.changeStatus(item.getAttribute('data-name'), item.getAttribute('data-status'));
|
||||
}.bind(this)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
changeStatus(name, status) {
|
||||
let newCookie = [];
|
||||
|
||||
let cookie = this.getLDCWebCookie('ldcwebcn-init');
|
||||
let test = cookie.split(',');
|
||||
test.forEach(elm => {
|
||||
let test = elm.split('=');
|
||||
if (test[0] === name) {
|
||||
newCookie.push(name + "=" + status);
|
||||
if (status === 'false') {
|
||||
this.config[test[0]].cookies.forEach(elm => {
|
||||
let cookies = this.getLDCWebCookie(elm);
|
||||
if (cookies !== undefined) {
|
||||
document.cookie = elm + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; domain=" + document.domain + "; path=/";
|
||||
document.cookie = elm + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; domain=." + document.domain + "; path=/";
|
||||
}
|
||||
});
|
||||
}
|
||||
} else {
|
||||
newCookie.push(elm);
|
||||
}
|
||||
});
|
||||
|
||||
this.saveLDCWebCookie(newCookie);
|
||||
}
|
||||
|
||||
deleteBrowserCookie(name, path, domain) {
|
||||
if (this.getLDCWebCookie(name)) {
|
||||
document.cookie = name + "=" +
|
||||
((path) ? ";path=" + path : "") +
|
||||
((domain) ? ";domain=" + domain : "") +
|
||||
";expires=Thu, 01 Jan 1970 00:00:01 GMT";
|
||||
}
|
||||
}
|
||||
|
||||
getLDCWebCookie(name) {
|
||||
let matches = document.cookie.match(new RegExp(
|
||||
"(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)"
|
||||
));
|
||||
return matches ? decodeURIComponent(matches[1]) : undefined;
|
||||
}
|
||||
|
||||
addEvent(element, evnt, funct) {
|
||||
if (element.attachEvent)
|
||||
return element.attachEvent('on' + evnt, funct);
|
||||
else
|
||||
return element.addEventListener(evnt, funct, false);
|
||||
}
|
||||
|
||||
saveLDCWebCookie(content) {
|
||||
// document.cookie = "ldcwebcn-init=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
|
||||
let date = new Date();
|
||||
let newDate = new Date(date.setMonth(date.getMonth() + 13));
|
||||
document.cookie = "ldcwebcn-init=" + content + "; expires=" + newDate.toUTCString() + ";";
|
||||
}
|
||||
|
||||
}
|
||||
51
layouts/layout.blade.php
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="{{ str_replace('_', '-', 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, maximum-scale=1, user-scalable=0">
|
||||
<!-- CSRF Token -->
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
|
||||
|
||||
<title>@yield('title') - {{ Config::get('theme.site_name') }}</title>
|
||||
<meta name="Keywords" content="LDC - La Boutique Du Canard" />
|
||||
<meta name="Description" content="LDC - La Boutique Du Canard" />
|
||||
|
||||
<link rel="shortcut icon" href="/favicon.ico">
|
||||
@include('breadcrumb.breadcrumb-head')
|
||||
|
||||
<!-- STYLES
|
||||
<link href="fonts/stylesheet.css" rel="stylesheet" type="text/css"/>
|
||||
<link href="css/swiper.css" rel="stylesheet" type="text/css"/>-->
|
||||
<!-- Styles -->
|
||||
<link href="{{ asset(config('app.theme').'/css/app.css') }}" rel="stylesheet">
|
||||
<!-- <link href="css/media.css" rel="stylesheet" type="text/css"/> -->
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="page-wrap" id="app">
|
||||
{{-- Header --}}
|
||||
@include('partials.header')
|
||||
{{-- Fin du header --}}
|
||||
{{-- Contenu --}}
|
||||
<div class="main">
|
||||
@include('breadcrumb.breadcrumb-body')
|
||||
@yield('content')
|
||||
</div>
|
||||
{{-- Fin du contenu --}}
|
||||
{{-- Footer --}}
|
||||
@yield('footer', view('partials.footer'))
|
||||
{{-- Fin du footer --}}
|
||||
{{-- Cart Panel --}}
|
||||
<basket-panel ref="basketpanel"></basket-panel>
|
||||
{{-- Fin Cart Panel --}}
|
||||
|
||||
</div><!-- page-wrap END -->
|
||||
|
||||
<script src="{{ asset(config('app.theme').'/js/app.js') }}"></script>
|
||||
@include('partials.cookie')
|
||||
@stack('scripts')
|
||||
</body>
|
||||
</html>
|
||||
|
||||
40
legal-notice.blade.php
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
@extends('layouts.layout')
|
||||
|
||||
@section('title', __('Mentions légales'))
|
||||
|
||||
@section('content')
|
||||
|
||||
|
||||
|
||||
<div class="hero-banner">
|
||||
<div class="hero-banner__wrapper wrapper">
|
||||
@if ($content->banner !== null)
|
||||
<img src="{{ asset('/images/content/'.$content->banner) }}" />
|
||||
@else
|
||||
<img src="{{ asset(config('app.theme').'/img/hero_mentios.jpg') }}" />
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mentios-page section">
|
||||
<h1 class="mentios-page__title title">{{ $content->title }}</h1>
|
||||
|
||||
<div class="mentios-page__content">
|
||||
<div class="mentios-page__wrapper wrapper">
|
||||
<div class="mentios-page__wrapper-inner">
|
||||
<div class="description">
|
||||
@if ($content !== null)
|
||||
{!!$content->value!!}
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{{-- <h1>Mentions Légales</h1>
|
||||
@if ($content !== null)
|
||||
{!!$content->value!!}
|
||||
@endif --}}
|
||||
@endsection
|
||||
272
mails/order-canceled-confirm.blade.php
Normal file
|
|
@ -0,0 +1,272 @@
|
|||
<!doctype html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
|
||||
|
||||
<head>
|
||||
<title>
|
||||
</title>
|
||||
<!--[if !mso]><!-- -->
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<!--<![endif]-->
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<style type="text/css">
|
||||
#outlook a {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
-webkit-text-size-adjust: 100%;
|
||||
-ms-text-size-adjust: 100%;
|
||||
}
|
||||
|
||||
table,
|
||||
td {
|
||||
border-collapse: collapse;
|
||||
mso-table-lspace: 0pt;
|
||||
mso-table-rspace: 0pt;
|
||||
}
|
||||
|
||||
img {
|
||||
border: 0;
|
||||
height: auto;
|
||||
line-height: 100%;
|
||||
outline: none;
|
||||
text-decoration: none;
|
||||
-ms-interpolation-mode: bicubic;
|
||||
}
|
||||
|
||||
p {
|
||||
display: block;
|
||||
margin: 13px 0;
|
||||
}
|
||||
</style>
|
||||
<!--[if mso]>
|
||||
<xml>
|
||||
<o:OfficeDocumentSettings>
|
||||
<o:AllowPNG/>
|
||||
<o:PixelsPerInch>96</o:PixelsPerInch>
|
||||
</o:OfficeDocumentSettings>
|
||||
</xml>
|
||||
<![endif]-->
|
||||
<!--[if lte mso 11]>
|
||||
<style type="text/css">
|
||||
.mj-outlook-group-fix { width:100% !important; }
|
||||
</style>
|
||||
<![endif]-->
|
||||
<!--[if !mso]><!-->
|
||||
<link href="https://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700" rel="stylesheet" type="text/css">
|
||||
<style type="text/css">
|
||||
@import url(https://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700);
|
||||
</style>
|
||||
<!--<![endif]-->
|
||||
<style type="text/css">
|
||||
@media only screen and (min-width:480px) {
|
||||
.mj-column-per-100 {
|
||||
width: 100% !important;
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<style type="text/css">
|
||||
@media only screen and (max-width:480px) {
|
||||
table.mj-full-width-mobile {
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
td.mj-full-width-mobile {
|
||||
width: auto !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body style="background-color:#f9f7f3;">
|
||||
<div style="background-color:#f9f7f3;">
|
||||
<!--[if mso | IE]>
|
||||
<table
|
||||
align="center" border="0" cellpadding="0" cellspacing="0" class="" style="width:600px;" width="600"
|
||||
>
|
||||
<tr>
|
||||
<td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;">
|
||||
<![endif]-->
|
||||
<div style="background:#f9f7f3;background-color:#f9f7f3;margin:0px auto;max-width:600px;">
|
||||
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#f9f7f3;background-color:#f9f7f3;width:100%;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="direction:ltr;font-size:0px;padding:20px 0;text-align:center;">
|
||||
<!--[if mso | IE]>
|
||||
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
|
||||
|
||||
<tr>
|
||||
|
||||
<td
|
||||
class="" style="vertical-align:top;width:600px;"
|
||||
>
|
||||
<![endif]-->
|
||||
<div class="mj-column-per-100 mj-outlook-group-fix" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align:top;" width="100%">
|
||||
<tr>
|
||||
<td align="center" style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:collapse;border-spacing:0px;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="width:339px;">
|
||||
<img height="auto" src="{{ asset(config('app.theme').'/img/logo.png')}}" style="border:0;display:block;outline:none;text-decoration:none;height:auto;width:100%;font-size:13px;" width="339">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:25px;font-weight:bold;line-height:1;text-align:center;text-transform:uppercase;color:black;">Commande annulée</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<!--[if mso | IE]>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
<![endif]-->
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!--[if mso | IE]>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table
|
||||
align="center" border="0" cellpadding="0" cellspacing="0" class="" style="width:600px;" width="600"
|
||||
>
|
||||
<tr>
|
||||
<td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;">
|
||||
<![endif]-->
|
||||
<div style="background:#f9f7f3;background-color:#f9f7f3;margin:0px auto;max-width:600px;">
|
||||
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#f9f7f3;background-color:#f9f7f3;width:100%;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="direction:ltr;font-size:0px;padding:20px 0;text-align:center;">
|
||||
<!--[if mso | IE]>
|
||||
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
|
||||
|
||||
<tr>
|
||||
|
||||
<td
|
||||
class="" style="vertical-align:top;width:600px;"
|
||||
>
|
||||
<![endif]-->
|
||||
<div class="mj-column-per-100 mj-outlook-group-fix" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align:top;" width="100%">
|
||||
<tr>
|
||||
<td align="left" style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:20px;line-height:1;text-align:left;color:black;">La commande {{ $order->reference }} est annulée</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<p style="border-top:dashed 1px lightgrey;font-size:1px;margin:0px auto;width:100%;">
|
||||
</p>
|
||||
<!--[if mso | IE]>
|
||||
<table
|
||||
align="center" border="0" cellpadding="0" cellspacing="0" style="border-top:dashed 1px lightgrey;font-size:1px;margin:0px auto;width:550px;" role="presentation" width="550px"
|
||||
>
|
||||
<tr>
|
||||
<td style="height:0;line-height:0;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<![endif]-->
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left" style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:20px;line-height:1;text-align:left;color:black;">Détail de la Commande : <br><br></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left" style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<table cellpadding="0" cellspacing="0" width="100%" border="0" style="color:#000000;font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:13px;line-height:22px;table-layout:auto;width:100%;border:none;">
|
||||
<tr style="border-bottom:1px solid #ecedee;text-align:left;padding:15px 0;">
|
||||
<th style="padding: 0 15px 0 0;">Produit</th>
|
||||
<th style="padding: 0 15px;">Quantité</th>
|
||||
<th style="padding: 0 0 0 15px;">Total</th>
|
||||
</tr> @foreach ($order->lines as $line) <tr>
|
||||
<td style="padding: 0 15px 0 0;">{{ $line->product->name }}</td>
|
||||
<td style="padding: 0 15px;">{{ $line->quantity }}</td>
|
||||
<td style="padding: 0 0 0 15px;">@fmt_currency($line->total_ttc)</td>
|
||||
</tr> @endforeach
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<p style="border-top:dashed 1px lightgrey;font-size:1px;margin:0px auto;width:100%;">
|
||||
</p>
|
||||
<!--[if mso | IE]>
|
||||
<table
|
||||
align="center" border="0" cellpadding="0" cellspacing="0" style="border-top:dashed 1px lightgrey;font-size:1px;margin:0px auto;width:550px;" role="presentation" width="550px"
|
||||
>
|
||||
<tr>
|
||||
<td style="height:0;line-height:0;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<![endif]-->
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left" style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:20px;line-height:1;text-align:left;color:black;">Total de la commande : @fmt_currency($order->total)</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<p style="border-top:dashed 1px lightgrey;font-size:1px;margin:0px auto;width:100%;">
|
||||
</p>
|
||||
<!--[if mso | IE]>
|
||||
<table
|
||||
align="center" border="0" cellpadding="0" cellspacing="0" style="border-top:dashed 1px lightgrey;font-size:1px;margin:0px auto;width:550px;" role="presentation" width="550px"
|
||||
>
|
||||
<tr>
|
||||
<td style="height:0;line-height:0;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<![endif]-->
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<!--[if mso | IE]>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
<![endif]-->
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!--[if mso | IE]>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<![endif]-->
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
284
mails/order-confirm.blade.php
Normal file
|
|
@ -0,0 +1,284 @@
|
|||
<!doctype html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
|
||||
|
||||
<head>
|
||||
<title>
|
||||
</title>
|
||||
<!--[if !mso]><!-- -->
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<!--<![endif]-->
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<style type="text/css">
|
||||
#outlook a {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
-webkit-text-size-adjust: 100%;
|
||||
-ms-text-size-adjust: 100%;
|
||||
}
|
||||
|
||||
table,
|
||||
td {
|
||||
border-collapse: collapse;
|
||||
mso-table-lspace: 0pt;
|
||||
mso-table-rspace: 0pt;
|
||||
}
|
||||
|
||||
img {
|
||||
border: 0;
|
||||
height: auto;
|
||||
line-height: 100%;
|
||||
outline: none;
|
||||
text-decoration: none;
|
||||
-ms-interpolation-mode: bicubic;
|
||||
}
|
||||
|
||||
p {
|
||||
display: block;
|
||||
margin: 13px 0;
|
||||
}
|
||||
</style>
|
||||
<!--[if mso]>
|
||||
<xml>
|
||||
<o:OfficeDocumentSettings>
|
||||
<o:AllowPNG/>
|
||||
<o:PixelsPerInch>96</o:PixelsPerInch>
|
||||
</o:OfficeDocumentSettings>
|
||||
</xml>
|
||||
<![endif]-->
|
||||
<!--[if lte mso 11]>
|
||||
<style type="text/css">
|
||||
.mj-outlook-group-fix { width:100% !important; }
|
||||
</style>
|
||||
<![endif]-->
|
||||
<!--[if !mso]><!-->
|
||||
<link href="https://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700" rel="stylesheet" type="text/css">
|
||||
<style type="text/css">
|
||||
@import url(https://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700);
|
||||
</style>
|
||||
<!--<![endif]-->
|
||||
<style type="text/css">
|
||||
@media only screen and (min-width:480px) {
|
||||
.mj-column-per-100 {
|
||||
width: 100% !important;
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<style type="text/css">
|
||||
@media only screen and (max-width:480px) {
|
||||
table.mj-full-width-mobile {
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
td.mj-full-width-mobile {
|
||||
width: auto !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body style="background-color:#f9f7f3;">
|
||||
<div style="background-color:#f9f7f3;">
|
||||
<!--[if mso | IE]>
|
||||
<table
|
||||
align="center" border="0" cellpadding="0" cellspacing="0" class="" style="width:600px;" width="600"
|
||||
>
|
||||
<tr>
|
||||
<td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;">
|
||||
<![endif]-->
|
||||
<div style="background:#f9f7f3;background-color:#f9f7f3;margin:0px auto;max-width:600px;">
|
||||
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#f9f7f3;background-color:#f9f7f3;width:100%;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="direction:ltr;font-size:0px;padding:20px 0;text-align:center;">
|
||||
<!--[if mso | IE]>
|
||||
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
|
||||
|
||||
<tr>
|
||||
|
||||
<td
|
||||
class="" style="vertical-align:top;width:600px;"
|
||||
>
|
||||
<![endif]-->
|
||||
<div class="mj-column-per-100 mj-outlook-group-fix" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align:top;" width="100%">
|
||||
<tr>
|
||||
<td align="center" style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:collapse;border-spacing:0px;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="width:339px;">
|
||||
<img height="auto" src="{{ asset(config('app.theme').'/img/logo.png')}}" style="border:0;display:block;outline:none;text-decoration:none;height:auto;width:100%;font-size:13px;" width="339">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:25px;font-weight:bold;line-height:1;text-align:center;text-transform:uppercase;color:black;">Votre commande est enregistrée !</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<!--[if mso | IE]>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
<![endif]-->
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!--[if mso | IE]>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table
|
||||
align="center" border="0" cellpadding="0" cellspacing="0" class="" style="width:600px;" width="600"
|
||||
>
|
||||
<tr>
|
||||
<td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;">
|
||||
<![endif]-->
|
||||
<div style="background:#f9f7f3;background-color:#f9f7f3;margin:0px auto;max-width:600px;">
|
||||
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#f9f7f3;background-color:#f9f7f3;width:100%;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="direction:ltr;font-size:0px;padding:20px 0;text-align:center;">
|
||||
<!--[if mso | IE]>
|
||||
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
|
||||
|
||||
<tr>
|
||||
|
||||
<td
|
||||
class="" style="vertical-align:top;width:600px;"
|
||||
>
|
||||
<![endif]-->
|
||||
<div class="mj-column-per-100 mj-outlook-group-fix" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align:top;" width="100%">
|
||||
<tr>
|
||||
<td align="left" style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:20px;line-height:1;text-align:left;color:black;">Bonjour,<br><br> Votre commande {{ $order->reference }} est confirmée</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<p style="border-top:dashed 1px lightgrey;font-size:1px;margin:0px auto;width:100%;">
|
||||
</p>
|
||||
<!--[if mso | IE]>
|
||||
<table
|
||||
align="center" border="0" cellpadding="0" cellspacing="0" style="border-top:dashed 1px lightgrey;font-size:1px;margin:0px auto;width:550px;" role="presentation" width="550px"
|
||||
>
|
||||
<tr>
|
||||
<td style="height:0;line-height:0;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<![endif]-->
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left" style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:20px;line-height:1;text-align:left;color:black;">Détail de votre Commande : <br><br></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left" style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<table cellpadding="0" cellspacing="0" width="100%" border="0" style="color:#000000;font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:13px;line-height:22px;table-layout:auto;width:100%;border:none;">
|
||||
<tr style="border-bottom:1px solid #ecedee;text-align:left;padding:15px 0;">
|
||||
<th style="padding: 0 15px 0 0;">Produit</th>
|
||||
<th style="padding: 0 15px;">Quantité</th>
|
||||
<th style="padding: 0 0 0 15px;">Total</th>
|
||||
</tr> @foreach ($order->lines as $line) <tr>
|
||||
<td style="padding: 0 15px 0 0;">{{ $line->product->name }}</td>
|
||||
<td style="padding: 0 15px;">{{ $line->quantity }}</td>
|
||||
<td style="padding: 0 0 0 15px;">@fmt_currency($line->total_ttc)</td>
|
||||
</tr> @endforeach
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<p style="border-top:dashed 1px lightgrey;font-size:1px;margin:0px auto;width:100%;">
|
||||
</p>
|
||||
<!--[if mso | IE]>
|
||||
<table
|
||||
align="center" border="0" cellpadding="0" cellspacing="0" style="border-top:dashed 1px lightgrey;font-size:1px;margin:0px auto;width:550px;" role="presentation" width="550px"
|
||||
>
|
||||
<tr>
|
||||
<td style="height:0;line-height:0;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<![endif]-->
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left" style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:20px;line-height:1;text-align:left;color:black;">Total de la commande : @fmt_currency($order->total)</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<p style="border-top:dashed 1px lightgrey;font-size:1px;margin:0px auto;width:100%;">
|
||||
</p>
|
||||
<!--[if mso | IE]>
|
||||
<table
|
||||
align="center" border="0" cellpadding="0" cellspacing="0" style="border-top:dashed 1px lightgrey;font-size:1px;margin:0px auto;width:550px;" role="presentation" width="550px"
|
||||
>
|
||||
<tr>
|
||||
<td style="height:0;line-height:0;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<![endif]-->
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left" style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:20px;line-height:1;text-align:left;color:black;">A retirer le <b>{{$order->timeslot->day}} à {{$order->timeslot->time}}</b>, à l’adresse suivante :<br><br>
|
||||
<b>Mon point de retrait {{$magasin->name}}, {{$magasin->address}}, {{$magasin->postcode}} {{$magasin->city}}</b>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left" style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:20px;line-height:1;text-align:left;color:black;"><br><br> L'équipe {{ config('theme.site_name') }}</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<!--[if mso | IE]>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
<![endif]-->
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!--[if mso | IE]>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<![endif]-->
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
286
mails/order-status.blade.php
Normal file
|
|
@ -0,0 +1,286 @@
|
|||
<!doctype html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
|
||||
|
||||
<head>
|
||||
<title>
|
||||
</title>
|
||||
<!--[if !mso]><!-- -->
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<!--<![endif]-->
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<style type="text/css">
|
||||
#outlook a {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
-webkit-text-size-adjust: 100%;
|
||||
-ms-text-size-adjust: 100%;
|
||||
}
|
||||
|
||||
table,
|
||||
td {
|
||||
border-collapse: collapse;
|
||||
mso-table-lspace: 0pt;
|
||||
mso-table-rspace: 0pt;
|
||||
}
|
||||
|
||||
img {
|
||||
border: 0;
|
||||
height: auto;
|
||||
line-height: 100%;
|
||||
outline: none;
|
||||
text-decoration: none;
|
||||
-ms-interpolation-mode: bicubic;
|
||||
}
|
||||
|
||||
p {
|
||||
display: block;
|
||||
margin: 13px 0;
|
||||
}
|
||||
</style>
|
||||
<!--[if mso]>
|
||||
<xml>
|
||||
<o:OfficeDocumentSettings>
|
||||
<o:AllowPNG/>
|
||||
<o:PixelsPerInch>96</o:PixelsPerInch>
|
||||
</o:OfficeDocumentSettings>
|
||||
</xml>
|
||||
<![endif]-->
|
||||
<!--[if lte mso 11]>
|
||||
<style type="text/css">
|
||||
.mj-outlook-group-fix { width:100% !important; }
|
||||
</style>
|
||||
<![endif]-->
|
||||
<!--[if !mso]><!-->
|
||||
<link href="https://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700" rel="stylesheet" type="text/css">
|
||||
<style type="text/css">
|
||||
@import url(https://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700);
|
||||
</style>
|
||||
<!--<![endif]-->
|
||||
<style type="text/css">
|
||||
@media only screen and (min-width:480px) {
|
||||
.mj-column-per-100 {
|
||||
width: 100% !important;
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<style type="text/css">
|
||||
@media only screen and (max-width:480px) {
|
||||
table.mj-full-width-mobile {
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
td.mj-full-width-mobile {
|
||||
width: auto !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body style="background-color:#f9f7f3;">
|
||||
<div style="background-color:#f9f7f3;">
|
||||
<!--[if mso | IE]>
|
||||
<table
|
||||
align="center" border="0" cellpadding="0" cellspacing="0" class="" style="width:600px;" width="600"
|
||||
>
|
||||
<tr>
|
||||
<td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;">
|
||||
<![endif]-->
|
||||
<div style="background:#f9f7f3;background-color:#f9f7f3;margin:0px auto;max-width:600px;">
|
||||
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#f9f7f3;background-color:#f9f7f3;width:100%;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="direction:ltr;font-size:0px;padding:20px 0;text-align:center;">
|
||||
<!--[if mso | IE]>
|
||||
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
|
||||
|
||||
<tr>
|
||||
|
||||
<td
|
||||
class="" style="vertical-align:top;width:600px;"
|
||||
>
|
||||
<![endif]-->
|
||||
<div class="mj-column-per-100 mj-outlook-group-fix" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align:top;" width="100%">
|
||||
<tr>
|
||||
<td align="center" style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:collapse;border-spacing:0px;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="width:339px;">
|
||||
<img height="auto" src="{{ asset(config('app.theme').'/img/logo.png')}}" style="border:0;display:block;outline:none;text-decoration:none;height:auto;width:100%;font-size:13px;" width="339">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:25px;font-weight:bold;line-height:1;text-align:center;text-transform:uppercase;color:black;">Traitement de votre commande</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<!--[if mso | IE]>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
<![endif]-->
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!--[if mso | IE]>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table
|
||||
align="center" border="0" cellpadding="0" cellspacing="0" class="" style="width:600px;" width="600"
|
||||
>
|
||||
<tr>
|
||||
<td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;">
|
||||
<![endif]-->
|
||||
<div style="background:#f9f7f3;background-color:#f9f7f3;margin:0px auto;max-width:600px;">
|
||||
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#f9f7f3;background-color:#f9f7f3;width:100%;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="direction:ltr;font-size:0px;padding:20px 0;text-align:center;">
|
||||
<!--[if mso | IE]>
|
||||
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
|
||||
|
||||
<tr>
|
||||
|
||||
<td
|
||||
class="" style="vertical-align:top;width:600px;"
|
||||
>
|
||||
<![endif]-->
|
||||
<div class="mj-column-per-100 mj-outlook-group-fix" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align:top;" width="100%">
|
||||
<tr>
|
||||
<td align="left" style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:20px;line-height:1;text-align:left;color:black;">Bonjour,<br><br> Votre commande {{ $order->reference }} est <b>{{ $order->status->label }}</b></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<p style="border-top:dashed 1px lightgrey;font-size:1px;margin:0px auto;width:100%;">
|
||||
</p>
|
||||
<!--[if mso | IE]>
|
||||
<table
|
||||
align="center" border="0" cellpadding="0" cellspacing="0" style="border-top:dashed 1px lightgrey;font-size:1px;margin:0px auto;width:550px;" role="presentation" width="550px"
|
||||
>
|
||||
<tr>
|
||||
<td style="height:0;line-height:0;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<![endif]-->
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left" style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:20px;line-height:1;text-align:left;color:black;">Détail de votre Commande : <br><br></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left" style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<table cellpadding="0" cellspacing="0" width="100%" border="0" style="color:#000000;font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:13px;line-height:22px;table-layout:auto;width:100%;border:none;">
|
||||
<tr style="border-bottom:1px solid #ecedee;text-align:left;padding:15px 0;">
|
||||
<th style="padding: 0 15px 0 0;">Produit</th>
|
||||
<th style="padding: 0 15px;">Quantité</th>
|
||||
<th style="padding: 0 0 0 15px;">Total</th>
|
||||
</tr> @foreach ($order->lines as $line) <tr>
|
||||
<td style="padding: 0 15px 0 0;">{{ $line->product->name }}</td>
|
||||
<td style="padding: 0 15px;">{{ $line->quantity }}</td>
|
||||
<td style="padding: 0 0 0 15px;">@fmt_currency($line->total_ttc)</td>
|
||||
</tr> @endforeach
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<p style="border-top:dashed 1px lightgrey;font-size:1px;margin:0px auto;width:100%;">
|
||||
</p>
|
||||
<!--[if mso | IE]>
|
||||
<table
|
||||
align="center" border="0" cellpadding="0" cellspacing="0" style="border-top:dashed 1px lightgrey;font-size:1px;margin:0px auto;width:550px;" role="presentation" width="550px"
|
||||
>
|
||||
<tr>
|
||||
<td style="height:0;line-height:0;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<![endif]-->
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left" style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:20px;line-height:1;text-align:left;color:black;">Total de la commande : @fmt_currency($order->total)</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<p style="border-top:dashed 1px lightgrey;font-size:1px;margin:0px auto;width:100%;">
|
||||
</p>
|
||||
<!--[if mso | IE]>
|
||||
<table
|
||||
align="center" border="0" cellpadding="0" cellspacing="0" style="border-top:dashed 1px lightgrey;font-size:1px;margin:0px auto;width:550px;" role="presentation" width="550px"
|
||||
>
|
||||
<tr>
|
||||
<td style="height:0;line-height:0;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<![endif]-->
|
||||
</td>
|
||||
</tr>
|
||||
@if (!empty($order->timeslot))
|
||||
<tr>
|
||||
<td align="left" style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:20px;line-height:1;text-align:left;color:black;">A retirer le <b>{{$order->timeslot->day}} à {{$order->timeslot->time}}</b>, à l’adresse suivante :<br><br>
|
||||
<b>Mon point de retrait {{$magasin->name}}, {{$magasin->address}}, {{$magasin->postcode}} {{$magasin->city}}</b>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
<tr>
|
||||
<td align="left" style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:20px;line-height:1;text-align:left;color:black;"><br><br> L'équipe {{ config('theme.site_name') }}</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<!--[if mso | IE]>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
<![endif]-->
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!--[if mso | IE]>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<![endif]-->
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
219
mails/password-reset.blade.php
Normal file
|
|
@ -0,0 +1,219 @@
|
|||
<!doctype html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
|
||||
|
||||
<head>
|
||||
<title>
|
||||
</title>
|
||||
<!--[if !mso]><!-- -->
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<!--<![endif]-->
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<style type="text/css">
|
||||
#outlook a {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
-webkit-text-size-adjust: 100%;
|
||||
-ms-text-size-adjust: 100%;
|
||||
}
|
||||
|
||||
table,
|
||||
td {
|
||||
border-collapse: collapse;
|
||||
mso-table-lspace: 0pt;
|
||||
mso-table-rspace: 0pt;
|
||||
}
|
||||
|
||||
img {
|
||||
border: 0;
|
||||
height: auto;
|
||||
line-height: 100%;
|
||||
outline: none;
|
||||
text-decoration: none;
|
||||
-ms-interpolation-mode: bicubic;
|
||||
}
|
||||
|
||||
p {
|
||||
display: block;
|
||||
margin: 13px 0;
|
||||
}
|
||||
</style>
|
||||
<!--[if mso]>
|
||||
<xml>
|
||||
<o:OfficeDocumentSettings>
|
||||
<o:AllowPNG/>
|
||||
<o:PixelsPerInch>96</o:PixelsPerInch>
|
||||
</o:OfficeDocumentSettings>
|
||||
</xml>
|
||||
<![endif]-->
|
||||
<!--[if lte mso 11]>
|
||||
<style type="text/css">
|
||||
.mj-outlook-group-fix { width:100% !important; }
|
||||
</style>
|
||||
<![endif]-->
|
||||
<!--[if !mso]><!-->
|
||||
<link href="https://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700" rel="stylesheet" type="text/css">
|
||||
<style type="text/css">
|
||||
@import url(https://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700);
|
||||
</style>
|
||||
<!--<![endif]-->
|
||||
<style type="text/css">
|
||||
@media only screen and (min-width:480px) {
|
||||
.mj-column-per-100 {
|
||||
width: 100% !important;
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<style type="text/css">
|
||||
@media only screen and (max-width:480px) {
|
||||
table.mj-full-width-mobile {
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
td.mj-full-width-mobile {
|
||||
width: auto !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body style="background-color:#f9f7f3;">
|
||||
<div style="background-color:#f9f7f3;">
|
||||
<!--[if mso | IE]>
|
||||
<table
|
||||
align="center" border="0" cellpadding="0" cellspacing="0" class="" style="width:600px;" width="600"
|
||||
>
|
||||
<tr>
|
||||
<td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;">
|
||||
<![endif]-->
|
||||
<div style="background:#f9f7f3;background-color:#f9f7f3;margin:0px auto;max-width:600px;">
|
||||
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#f9f7f3;background-color:#f9f7f3;width:100%;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="direction:ltr;font-size:0px;padding:20px 0;text-align:center;">
|
||||
<!--[if mso | IE]>
|
||||
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
|
||||
|
||||
<tr>
|
||||
|
||||
<td
|
||||
class="" style="vertical-align:top;width:600px;"
|
||||
>
|
||||
<![endif]-->
|
||||
<div class="mj-column-per-100 mj-outlook-group-fix" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align:top;" width="100%">
|
||||
<tr>
|
||||
<td align="center" style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:collapse;border-spacing:0px;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="width:339px;">
|
||||
<img height="auto" src="{{ asset(config('app.theme').'/img/logo.png')}}" style="border:0;display:block;outline:none;text-decoration:none;height:auto;width:100%;font-size:13px;" width="339">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:25px;font-weight:bold;line-height:1;text-align:center;text-transform:uppercase;color:black;">Inscription {{ Config::get('theme.site_name') }}</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<!--[if mso | IE]>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
<![endif]-->
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!--[if mso | IE]>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table
|
||||
align="center" border="0" cellpadding="0" cellspacing="0" class="" style="width:600px;" width="600"
|
||||
>
|
||||
<tr>
|
||||
<td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;">
|
||||
<![endif]-->
|
||||
<div style="background:#f9f7f3;background-color:#f9f7f3;margin:0px auto;max-width:600px;">
|
||||
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#f9f7f3;background-color:#f9f7f3;width:100%;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="direction:ltr;font-size:0px;padding:20px 0;text-align:center;">
|
||||
<!--[if mso | IE]>
|
||||
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
|
||||
|
||||
<tr>
|
||||
|
||||
<td
|
||||
class="" style="vertical-align:top;width:600px;"
|
||||
>
|
||||
<![endif]-->
|
||||
<div class="mj-column-per-100 mj-outlook-group-fix" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align:top;" width="100%">
|
||||
<tr>
|
||||
<td align="left" style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:20px;line-height:1;text-align:left;color:black;">Bonjour, <br><br> Pour réinitialiser votre mot de passe pour vous connecter à <strong>{{ Config::get('theme.site_name') }}</strong>, cliquez sur le lien suivant :</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" vertical-align="middle" style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:separate;line-height:100%;">
|
||||
<tr>
|
||||
<td align="center" bgcolor="#a8be36" role="presentation" style="border:none;border-radius:3px;cursor:auto;mso-padding-alt:10px 25px;background:#a8be36;" valign="middle">
|
||||
<a href="{{ route('auth.form-change-mdp', $token) }}" style="display:inline-block;background:#a8be36;color:white;font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:20px;font-weight:normal;line-height:120%;margin:0;text-decoration:none;text-transform:none;padding:10px 25px;mso-padding-alt:0px;border-radius:3px;" target="_blank"> Réinitialisez votre mot de passe </a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left" style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:12px;line-height:1;text-align:left;color:black;">Si le lien ci dessus ne fonctionne pas, veuillez entrer cette adresse dans votre navigateur : <br><br>
|
||||
{{ route('auth.form-change-mdp', $token) }}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left" style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:20px;line-height:1;text-align:left;color:black;"><br><br> L'équipe {{ config('theme.site_name') }}</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<!--[if mso | IE]>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
<![endif]-->
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!--[if mso | IE]>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<![endif]-->
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
219
mails/register-ok.blade.php
Normal file
|
|
@ -0,0 +1,219 @@
|
|||
<!doctype html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
|
||||
|
||||
<head>
|
||||
<title>
|
||||
</title>
|
||||
<!--[if !mso]><!-- -->
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<!--<![endif]-->
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<style type="text/css">
|
||||
#outlook a {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
-webkit-text-size-adjust: 100%;
|
||||
-ms-text-size-adjust: 100%;
|
||||
}
|
||||
|
||||
table,
|
||||
td {
|
||||
border-collapse: collapse;
|
||||
mso-table-lspace: 0pt;
|
||||
mso-table-rspace: 0pt;
|
||||
}
|
||||
|
||||
img {
|
||||
border: 0;
|
||||
height: auto;
|
||||
line-height: 100%;
|
||||
outline: none;
|
||||
text-decoration: none;
|
||||
-ms-interpolation-mode: bicubic;
|
||||
}
|
||||
|
||||
p {
|
||||
display: block;
|
||||
margin: 13px 0;
|
||||
}
|
||||
</style>
|
||||
<!--[if mso]>
|
||||
<xml>
|
||||
<o:OfficeDocumentSettings>
|
||||
<o:AllowPNG/>
|
||||
<o:PixelsPerInch>96</o:PixelsPerInch>
|
||||
</o:OfficeDocumentSettings>
|
||||
</xml>
|
||||
<![endif]-->
|
||||
<!--[if lte mso 11]>
|
||||
<style type="text/css">
|
||||
.mj-outlook-group-fix { width:100% !important; }
|
||||
</style>
|
||||
<![endif]-->
|
||||
<!--[if !mso]><!-->
|
||||
<link href="https://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700" rel="stylesheet" type="text/css">
|
||||
<style type="text/css">
|
||||
@import url(https://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700);
|
||||
</style>
|
||||
<!--<![endif]-->
|
||||
<style type="text/css">
|
||||
@media only screen and (min-width:480px) {
|
||||
.mj-column-per-100 {
|
||||
width: 100% !important;
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<style type="text/css">
|
||||
@media only screen and (max-width:480px) {
|
||||
table.mj-full-width-mobile {
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
td.mj-full-width-mobile {
|
||||
width: auto !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body style="background-color:#f9f7f3;">
|
||||
<div style="background-color:#f9f7f3;">
|
||||
<!--[if mso | IE]>
|
||||
<table
|
||||
align="center" border="0" cellpadding="0" cellspacing="0" class="" style="width:600px;" width="600"
|
||||
>
|
||||
<tr>
|
||||
<td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;">
|
||||
<![endif]-->
|
||||
<div style="background:#f9f7f3;background-color:#f9f7f3;margin:0px auto;max-width:600px;">
|
||||
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#f9f7f3;background-color:#f9f7f3;width:100%;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="direction:ltr;font-size:0px;padding:20px 0;text-align:center;">
|
||||
<!--[if mso | IE]>
|
||||
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
|
||||
|
||||
<tr>
|
||||
|
||||
<td
|
||||
class="" style="vertical-align:top;width:600px;"
|
||||
>
|
||||
<![endif]-->
|
||||
<div class="mj-column-per-100 mj-outlook-group-fix" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align:top;" width="100%">
|
||||
<tr>
|
||||
<td align="center" style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:collapse;border-spacing:0px;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="width:339px;">
|
||||
<img height="auto" src="{{ asset(config('app.theme').'/img/logo.png')}}" style="border:0;display:block;outline:none;text-decoration:none;height:auto;width:100%;font-size:13px;" width="339">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:25px;font-weight:bold;line-height:1;text-align:center;text-transform:uppercase;color:black;">Inscription {{ Config::get('theme.site_name') }}</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<!--[if mso | IE]>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
<![endif]-->
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!--[if mso | IE]>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table
|
||||
align="center" border="0" cellpadding="0" cellspacing="0" class="" style="width:600px;" width="600"
|
||||
>
|
||||
<tr>
|
||||
<td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;">
|
||||
<![endif]-->
|
||||
<div style="background:#f9f7f3;background-color:#f9f7f3;margin:0px auto;max-width:600px;">
|
||||
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#f9f7f3;background-color:#f9f7f3;width:100%;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="direction:ltr;font-size:0px;padding:20px 0;text-align:center;">
|
||||
<!--[if mso | IE]>
|
||||
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
|
||||
|
||||
<tr>
|
||||
|
||||
<td
|
||||
class="" style="vertical-align:top;width:600px;"
|
||||
>
|
||||
<![endif]-->
|
||||
<div class="mj-column-per-100 mj-outlook-group-fix" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align:top;" width="100%">
|
||||
<tr>
|
||||
<td align="left" style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:20px;line-height:1;text-align:left;color:black;">Bonjour {{ $firstname !== null ? " " . $firstname : null }},<br><br> Vous venez de créer un compte sur <strong>{{ Config::get('theme.site_name') }}</strong><br><br> Pour confirmer votre inscription, merci de confirmer votre email en cliquant sur le lien ci-dessous :</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" vertical-align="middle" style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:separate;line-height:100%;">
|
||||
<tr>
|
||||
<td align="center" bgcolor="#a8be36" role="presentation" style="border:none;border-radius:3px;cursor:auto;mso-padding-alt:10px 25px;background:#a8be36;" valign="middle">
|
||||
<a href="{{ route('auth.activer', $customer->hashcode) }}" style="display:inline-block;background:#a8be36;color:white;font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:20px;font-weight:normal;line-height:120%;margin:0;text-decoration:none;text-transform:none;padding:10px 25px;mso-padding-alt:0px;border-radius:3px;" target="_blank"> Confirmer mon adresse email </a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left" style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:12px;line-height:1;text-align:left;color:black;">Si le lien ci dessus ne fonctionne pas, veuillez entrer cette adresse dans votre navigateur : <br><br>
|
||||
{{ route('auth.activer', $customer->hashcode) }}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left" style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:20px;line-height:1;text-align:left;color:black;"><br><br> L'équipe {{ config('theme.site_name') }}</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<!--[if mso | IE]>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
<![endif]-->
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!--[if mso | IE]>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<![endif]-->
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
225
mails/send-contact.blade.php
Normal file
|
|
@ -0,0 +1,225 @@
|
|||
<!doctype html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
|
||||
|
||||
<head>
|
||||
<title>
|
||||
</title>
|
||||
<!--[if !mso]><!-- -->
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<!--<![endif]-->
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<style type="text/css">
|
||||
#outlook a {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
-webkit-text-size-adjust: 100%;
|
||||
-ms-text-size-adjust: 100%;
|
||||
}
|
||||
|
||||
table,
|
||||
td {
|
||||
border-collapse: collapse;
|
||||
mso-table-lspace: 0pt;
|
||||
mso-table-rspace: 0pt;
|
||||
}
|
||||
|
||||
img {
|
||||
border: 0;
|
||||
height: auto;
|
||||
line-height: 100%;
|
||||
outline: none;
|
||||
text-decoration: none;
|
||||
-ms-interpolation-mode: bicubic;
|
||||
}
|
||||
|
||||
p {
|
||||
display: block;
|
||||
margin: 13px 0;
|
||||
}
|
||||
</style>
|
||||
<!--[if mso]>
|
||||
<xml>
|
||||
<o:OfficeDocumentSettings>
|
||||
<o:AllowPNG/>
|
||||
<o:PixelsPerInch>96</o:PixelsPerInch>
|
||||
</o:OfficeDocumentSettings>
|
||||
</xml>
|
||||
<![endif]-->
|
||||
<!--[if lte mso 11]>
|
||||
<style type="text/css">
|
||||
.mj-outlook-group-fix { width:100% !important; }
|
||||
</style>
|
||||
<![endif]-->
|
||||
<!--[if !mso]><!-->
|
||||
<link href="https://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700" rel="stylesheet" type="text/css">
|
||||
<style type="text/css">
|
||||
@import url(https://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700);
|
||||
</style>
|
||||
<!--<![endif]-->
|
||||
<style type="text/css">
|
||||
@media only screen and (min-width:480px) {
|
||||
.mj-column-per-100 {
|
||||
width: 100% !important;
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<style type="text/css">
|
||||
@media only screen and (max-width:480px) {
|
||||
table.mj-full-width-mobile {
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
td.mj-full-width-mobile {
|
||||
width: auto !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body style="background-color:#f9f7f3;">
|
||||
<div style="background-color:#f9f7f3;">
|
||||
<!--[if mso | IE]>
|
||||
<table
|
||||
align="center" border="0" cellpadding="0" cellspacing="0" class="" style="width:600px;" width="600"
|
||||
>
|
||||
<tr>
|
||||
<td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;">
|
||||
<![endif]-->
|
||||
<div style="background:#f9f7f3;background-color:#f9f7f3;margin:0px auto;max-width:600px;">
|
||||
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#f9f7f3;background-color:#f9f7f3;width:100%;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="direction:ltr;font-size:0px;padding:20px 0;text-align:center;">
|
||||
<!--[if mso | IE]>
|
||||
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
|
||||
|
||||
<tr>
|
||||
|
||||
<td
|
||||
class="" style="vertical-align:top;width:600px;"
|
||||
>
|
||||
<![endif]-->
|
||||
<div class="mj-column-per-100 mj-outlook-group-fix" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align:top;" width="100%">
|
||||
<tr>
|
||||
<td align="center" style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:collapse;border-spacing:0px;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="width:339px;">
|
||||
<img height="auto" src="{{ asset(config('app.theme').'/img/logo.png')}}" style="border:0;display:block;outline:none;text-decoration:none;height:auto;width:100%;font-size:13px;" width="339">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:25px;font-weight:bold;line-height:1;text-align:center;text-transform:uppercase;color:black;">Message Contact</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<!--[if mso | IE]>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
<![endif]-->
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!--[if mso | IE]>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table
|
||||
align="center" border="0" cellpadding="0" cellspacing="0" class="" style="width:600px;" width="600"
|
||||
>
|
||||
<tr>
|
||||
<td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;">
|
||||
<![endif]-->
|
||||
<div style="background:#f9f7f3;background-color:#f9f7f3;margin:0px auto;max-width:600px;">
|
||||
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#f9f7f3;background-color:#f9f7f3;width:100%;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="direction:ltr;font-size:0px;padding:20px 0;text-align:center;">
|
||||
<!--[if mso | IE]>
|
||||
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
|
||||
|
||||
<tr>
|
||||
|
||||
<td
|
||||
class="" style="vertical-align:top;width:600px;"
|
||||
>
|
||||
<![endif]-->
|
||||
<div class="mj-column-per-100 mj-outlook-group-fix" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align:top;" width="100%">
|
||||
<tr>
|
||||
<td align="left" style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:20px;line-height:1;text-align:left;color:black;">Bonjour,<br><br> Voici un message envoyé depuis {{ config('theme.site_name', 'Boutique') }}<br><br></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<p style="border-top:dashed 1px lightgrey;font-size:1px;margin:0px auto;width:100%;">
|
||||
</p>
|
||||
<!--[if mso | IE]>
|
||||
<table
|
||||
align="center" border="0" cellpadding="0" cellspacing="0" style="border-top:dashed 1px lightgrey;font-size:1px;margin:0px auto;width:550px;" role="presentation" width="550px"
|
||||
>
|
||||
<tr>
|
||||
<td style="height:0;line-height:0;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<![endif]-->
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left" style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:20px;line-height:1;text-align:left;color:black;">Expediteur : {{ $data->first_name }} {{ $data->last_name }}<br><br> Email : {{ $data->email }}<br><br> Référence Commande : {{ $data->order_ref }}<br><br> Message : <br><br>
|
||||
{{ $data->message }}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left" style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:20px;line-height:1;text-align:left;color:black;"><br> L'équipe {{ config('theme.site_name') }}<br></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<!--[if mso | IE]>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
<![endif]-->
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!--[if mso | IE]>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<![endif]-->
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||