Merge branch 'boutique-sable' into 'develop'

variables in blades : home, product, basket, sales/crecap,...

See merge request service-web-lab/boutique-cnc-sable!5
This commit is contained in:
Olivier Legat 2022-10-12 12:26:57 +00:00
commit 40c013ff9f
221 changed files with 20749 additions and 424 deletions

3
.jsconfig.json Normal file
View file

@ -0,0 +1,3 @@
{
"include": ["./resources/js/**/*"]
}

View file

@ -1,5 +1,7 @@
## 19-03-2022
## 07-10-2022
* Nouvelle UX (mise à jour et ajout de composants vue, inplémentation de l'intégration dans des blades)
## 19-03-2022
* legal RGPD routes always accessible
* privatisable routes
* quickorder route

View file

@ -121,6 +121,7 @@ class ProductsController extends Controller
$sell_unit = $request->sell_unit;
$weight = $request->weight;
$weight_unit = $request->weight_unit;
$weight_variable = $request->weight_variable === null ? 0 : 1;
$status = $request->status === null ? 0 : 1;
$orderable_start = $request->orderable_start_date === null ? null
: $request->orderable_start_date . " " . $request->orderable_start_time;
@ -146,6 +147,7 @@ class ProductsController extends Controller
$product->sell_unit = $sell_unit;
$product->weight = $weight;
$product->weight_unit = $weight_unit;
$product->weight_variable = $weight_variable;
$product->slug = $slug;
$product->status = $status;
$product->orderable_start = $orderable_start;
@ -404,6 +406,7 @@ class ProductsController extends Controller
$sell_unit = $request->sell_unit;
$weight = $request->weight;
$weight_unit = $request->weight_unit;
$weight_variable = $request->weight_variable === null ? 0 : 1;
$status = $request->status === null ? 0 : 1;
$orderable_start = $request->orderable_start_date === null ? null
: $request->orderable_start_date . " " . $request->orderable_start_time;
@ -433,6 +436,7 @@ class ProductsController extends Controller
$product->sell_unit = $sell_unit;
$product->weight = $weight;
$product->weight_unit = $weight_unit;
$product->weight_variable = $weight_variable;
$product->slug = $slug;
$product->status = $status;
$product->orderable_start = $orderable_start;

View file

@ -30,7 +30,7 @@ class OrderTunnelController extends Controller
*/
public function recapOrder()
{
$activestep = 2;
$activestep = 1;
Cart::instance('panier');
$cart = Cart::content();
@ -136,7 +136,7 @@ class OrderTunnelController extends Controller
*/
public function timeSlotPick(string $reference)
{
$activestep = 3;
$activestep = 2;
/*
* Il faut diriger les salariés vers le bon magasin sans leur
@ -402,7 +402,7 @@ class OrderTunnelController extends Controller
*/
public function confirmOrder(string $reference)
{
$activestep = 4;
$activestep = 3;
$idcommande = Session::get('idcommande');
$order = Order::where('reference', '=', $reference)->firstOrFail();

View file

@ -2,9 +2,12 @@
namespace App\Http\Controllers;
use App\Http\Requests\ProductsFilterRequest;
use App\Http\Resources\ProductResource;
use App\Models\Product;
use App\Models\Range;
use App\Models\Tag;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
class ProductsController extends Controller
@ -88,20 +91,20 @@ class ProductsController extends Controller
*/
public function allProducts(Request $request)
{
$filter = $request->query('filter');
if (!empty($filter)) {
$products = Product::where('status', 1)
->where('name', 'like', '%' . $filter . '%')
->where('name', 'like', '%' . $filter . '%')
->paginate(12);
} else {
$products = Product::where('status', 1)->paginate(12);
}
$search_title = 'Recherche : ' . $filter;
return view('search', compact('products', 'search_title', 'filter'));
$ranges = Range::all();
$tags = Tag::where('status', true)->get();
return view('ranges', compact('products', 'ranges', 'tags', 'search_title', 'filter'));
}
/**
@ -118,14 +121,47 @@ class ProductsController extends Controller
{
// @phpcs:enable
$products = Product::where('status', 1)
->whereHas('tags', function ($q) use ($tag_slug) {
$q->where('slug', '=', $tag_slug);
})
->paginate(12);
->whereHas('tags', function ($q) use ($tag_slug) {
$q->where('slug', '=', $tag_slug);
})
->paginate(12);
$tag = Tag::where('slug', $tag_slug)->firstOrFail();
$search_title = $tag->label;
return view('search', compact('products', 'search_title', 'tag'));
return view('ranges', compact('products', 'search_title', 'tag'));
}
/**
* tous les produits filtrés
*
* @param \App\Http\Requests\ProductsFilterRequest $request
* @return \Illuminate\Http\JsonResponse
*/
public function allProductsFiltered(ProductsFilterRequest $request): JsonResponse
{
/** @var Illuminate\Database\Eloquent\Builder */
$productsQuery = Product::where('status', true);
if (!empty($request->promotion)) {
$productsQuery->whereHas('promotions');
}
if (!empty($request->ranges)) {
$productsQuery->whereHas('range', function ($q) use ($request) {
$q->whereIn('id', $request->ranges);
});
}
if (!empty($request->tags)) {
$productsQuery->whereHas('tags', function ($q) use ($request) {
$q->whereIn('id', $request->tags);
});
}
if (!empty($request->brands)) {
$productsQuery->whereIn('brand', $request->brands);
}
/** @var \Illuminate\Database\Eloquent\Collection<\App\Models\Product> */
$products = $productsQuery->get();
return \response()->json(ProductResource::collection($products));
}
}

View file

@ -1,30 +0,0 @@
<?php
namespace App\Http\Controllers;
use App\Models\Range;
use Illuminate\Http\Request;
class QuickOrderController extends Controller
{
/**
* Quickorder page
*
* @param Request $request
* @return \Illuminate\Contracts\View\View
*
* @phpcs:disable Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClass
*/
public function index(Request $request)
{
// @phpcs:enable
$quickorder_ranges = Range::with('products')->get();
foreach ($quickorder_ranges as $range) {
foreach ($range->products as $product) {
$product->calculatedPrices = $product->getCalcPrices();
}
}
return view('quickorder', compact('quickorder_ranges'));
}
}

View file

@ -0,0 +1,57 @@
<?php
namespace App\Http\Requests;
use App\Enums\ProductBrand;
use Illuminate\Foundation\Http\FormRequest;
use Kwaadpepper\Enum\Rules\EnumIsValidRule;
class ProductsFilterRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return boolean
*/
public function authorize()
{
return true;
}
/**
* Prepare the data for validation.
*
* @return void
*/
public function prepareForValidation()
{
$this->merge([
'promotion' => $this->promotion ? true : false,
'ranges' => $this->ranges ?? [],
'tags' => $this->tags ?? [],
'brands' => $this->brands ?? [],
]);
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'promotion' => 'required|boolean',
'ranges' => 'present|array',
'ranges.*' => 'numeric|min:1|exists:ranges,id',
'tags' => 'present|array',
'tags.*' => 'numeric|min:1|exists:tags,id',
'brands' => 'present|array',
'brands.*' => [
'string',
'min:1',
new EnumIsValidRule(ProductBrand::class)
]
];
}
}

View file

@ -0,0 +1,65 @@
<?php
namespace App\Http\Resources;
use App\Models\Product;
use Illuminate\Http\Resources\Json\JsonResource;
class ProductResource extends JsonResource
{
/** @var \App\Models\Product */
private $product;
/** @var array */
private static $skeleton = [
'id' => 0,
'slug' => '',
'name' => '',
'description' => '',
'price' => 0,
'discountedPriceHt' => 0,
'picture' => '',
'orderable_start' => '',
'orderable_end' => '',
'weight_variable' => ''
];
/**
* ProductResource
*
* @param \App\Models\Product $product
*/
public function __construct(Product $product)
{
$this->product = $product;
}
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request|null $request
* @return array
* @phpcs:disable Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClass
*/
public function toArray($request = null)
{
// @phpcs:enable
$data = array_merge(
\array_intersect_key(
$this->product->toArray(),
self::$skeleton
),
['discountedPriceHt' => $this->product->discountedPriceHt],
['promotion' => (isset($this->product->promotions[0])) ? $this->product->promotions : null],
[
'nutriscore' => (isset($this->product->foodProduct->nutriscore)) ?
$this->product->foodProduct->nutriscore :
null
]
);
$data['description'] = clean($data['description']);
return $data;
}
}

View file

@ -30,6 +30,7 @@ class Product extends Model implements Buyable
protected $casts = [
'orderable_start' => 'datetime',
'orderable_end' => 'datetime',
'price' => 'float'
];
/**

View file

@ -36,7 +36,11 @@ class RouteServiceProvider extends ServiceProvider
Route::middleware('web')
->namespace($this->namespace)
->group(base_path('routes/web.php'));
->group(base_path('routes/web-bo.php'));
Route::middleware('web')
->namespace($this->namespace)
->group(base_path('routes/web-fo.php'));
});
}

View file

@ -8,7 +8,7 @@
],
"license": "MIT",
"require": {
"php": "^7.3|^8.0",
"php": "^7.3",
"bumbummen99/shoppingcart": "^4.0",
"diglactic/laravel-breadcrumbs": "^6.1",
"fideloper/proxy": "^4.4",
@ -18,6 +18,7 @@
"laravel/framework": "^8.12",
"laravel/tinker": "^2.5",
"ldc/ldccrmv2client": "^3.0",
"mews/purifier": "^3.3",
"spatie/laravel-sitemap": "^5.8"
},
"require-dev": {

139
composer.lock generated
View file

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "989b3d8c793c3305c3f4ccfe747f137e",
"content-hash": "7011b3ec6ca329a4d4d5cb3bdeaac351",
"packages": [
{
"name": "asm89/stack-cors",
@ -563,6 +563,60 @@
],
"time": "2020-12-29T14:50:06+00:00"
},
{
"name": "ezyang/htmlpurifier",
"version": "v4.13.0",
"source": {
"type": "git",
"url": "https://github.com/ezyang/htmlpurifier.git",
"reference": "08e27c97e4c6ed02f37c5b2b20488046c8d90d75"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/ezyang/htmlpurifier/zipball/08e27c97e4c6ed02f37c5b2b20488046c8d90d75",
"reference": "08e27c97e4c6ed02f37c5b2b20488046c8d90d75",
"shasum": ""
},
"require": {
"php": ">=5.2"
},
"require-dev": {
"simpletest/simpletest": "dev-master#72de02a7b80c6bb8864ef9bf66d41d2f58f826bd"
},
"type": "library",
"autoload": {
"files": [
"library/HTMLPurifier.composer.php"
],
"psr-0": {
"HTMLPurifier": "library/"
},
"exclude-from-classmap": [
"/library/HTMLPurifier/Language/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"LGPL-2.1-or-later"
],
"authors": [
{
"name": "Edward Z. Yang",
"email": "admin@htmlpurifier.org",
"homepage": "http://ezyang.com"
}
],
"description": "Standards compliant HTML filter written in PHP",
"homepage": "http://htmlpurifier.org/",
"keywords": [
"html"
],
"support": {
"issues": "https://github.com/ezyang/htmlpurifier/issues",
"source": "https://github.com/ezyang/htmlpurifier/tree/master"
},
"time": "2020-06-29T00:56:53+00:00"
},
{
"name": "facade/ignition-contracts",
"version": "1.0.2",
@ -1947,6 +2001,87 @@
],
"time": "2022-04-17T13:12:02+00:00"
},
{
"name": "mews/purifier",
"version": "3.3.8",
"source": {
"type": "git",
"url": "https://github.com/mewebstudio/Purifier.git",
"reference": "164b420c4a80d2d0a89c1023f0aa9b3c0e3d6dc5"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/mewebstudio/Purifier/zipball/164b420c4a80d2d0a89c1023f0aa9b3c0e3d6dc5",
"reference": "164b420c4a80d2d0a89c1023f0aa9b3c0e3d6dc5",
"shasum": ""
},
"require": {
"ezyang/htmlpurifier": "4.13.*",
"illuminate/config": "^5.8|^6.0|^7.0|^8.0|^9.0",
"illuminate/filesystem": "^5.8|^6.0|^7.0|^8.0|^9.0",
"illuminate/support": "^5.8|^6.0|^7.0|^8.0|^9.0",
"php": "^7.2|^8.0"
},
"require-dev": {
"graham-campbell/testbench": "^3.2|^5.5.1",
"mockery/mockery": "^1.3.3",
"phpunit/phpunit": "^8.0|^9.0"
},
"suggest": {
"laravel/framework": "To test the Laravel bindings",
"laravel/lumen-framework": "To test the Lumen bindings"
},
"type": "package",
"extra": {
"laravel": {
"providers": [
"Mews\\Purifier\\PurifierServiceProvider"
],
"aliases": {
"Purifier": "Mews\\Purifier\\Facades\\Purifier"
}
}
},
"autoload": {
"files": [
"src/helpers.php"
],
"psr-4": {
"Mews\\Purifier\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Muharrem ERİN",
"email": "me@mewebstudio.com",
"homepage": "https://github.com/mewebstudio",
"role": "Developer"
}
],
"description": "Laravel 5/6/7 HtmlPurifier Package",
"homepage": "https://github.com/mewebstudio/purifier",
"keywords": [
"Purifier",
"htmlpurifier",
"laravel5 HtmlPurifier",
"laravel5 Purifier",
"laravel5 Security",
"laravel6 HtmlPurifier",
"laravel6 Purifier",
"laravel6 Security",
"security",
"xss"
],
"support": {
"issues": "https://github.com/mewebstudio/Purifier/issues",
"source": "https://github.com/mewebstudio/Purifier/tree/3.3.8"
},
"time": "2022-07-20T12:14:06+00:00"
},
{
"name": "monolog/monolog",
"version": "2.8.0",
@ -9007,7 +9142,7 @@
"prefer-stable": true,
"prefer-lowest": false,
"platform": {
"php": "^7.3|^8.0"
"php": "^7.3"
},
"platform-dev": [],
"plugin-api-version": "2.3.0"

119
config/purifier.php Normal file
View file

@ -0,0 +1,119 @@
<?php
/**
* Ok, glad you are here
* first we get a config instance, and set the settings
* $config = HTMLPurifier_Config::createDefault();
* $config->set('Core.Encoding', $this->config->get('purifier.encoding'));
* $config->set('Cache.SerializerPath', $this->config->get('purifier.cachePath'));
* if ( ! $this->config->get('purifier.finalize')) {
* $config->autoFinalize = false;
* }
* $config->load [$this->getConfig());
*
* You must NOT delete the default settings
* anything in settings should be compacted with params that needed to instance HTMLPurifier_Config.
*
* @link http://htmlpurifier.org/live/configdoc/plain.html
*/
// phpcs:disable Generic.Files.LineLength.TooLong
return [
'encoding' => 'UTF-8',
'finalize' => true,
'cachePath' => storage_path('app/purifier'),
'cacheFileMode' => 0755,
'settings' => [
'default' => [
'HTML.SafeIframe' => true,
// * For iframes
'URI.SafeIframeRegexp' => "%^(http://|https://|//)(vimeo.com)%",
'HTML.Doctype' => 'HTML 4.01 Transitional',
'HTML.Allowed' => 'h1[style],h2[style],h3[style],h4[style],h5[style],h6[style],figure[class|style],oembed[url],div[style],b,strong,i,em,u,a[href|title|target|rel],ul[style],ol[style],dl[style],li,p[style],br,span[style|class],img[width|height|alt|src|style|class|title],iframe[src|width|height|class|frameborder|style],table[style|align|border|cellspacing|cellpadding|width],thead,tbody,th[colspan|align|valign|style],tr[align|valign|style],td[style|colspan|rowspan|scope|align|valign],hr,dl,dt',
'CSS.AllowedProperties' => 'font,font-size,font-weight,font-style,font-family,text-decoration,padding-left,color,background-color,text-align,list-style-type,float,width,height,vertical-align,border-color',
'AutoFormat.AutoParagraph' => false,
'AutoFormat.RemoveEmpty' => false,
'AutoFormat.RemoveEmpty.RemoveNbsp' => false,
],
"youtube" => [
"HTML.SafeIframe" => 'true',
"URI.SafeIframeRegexp" => "%^(http://|https://|//)(www.youtube.com/embed/|player.vimeo.com/video/|vimeo.com/)%",
],
'custom_definition' => [
'id' => 'html5-definitions',
'rev' => 1,
'debug' => true,
'elements' => [
// * http://developers.whatwg.org/sections.html
['section', 'Block', 'Flow', 'Common'],
['nav', 'Block', 'Flow', 'Common'],
['article', 'Block', 'Flow', 'Common'],
['aside', 'Block', 'Flow', 'Common'],
['header', 'Block', 'Flow', 'Common'],
['footer', 'Block', 'Flow', 'Common'],
// * Content model actually excludes several tags, not modelled here
['address', 'Block', 'Flow', 'Common'],
['hgroup', 'Block', 'Required: h1 | h2 | h3 | h4 | h5 | h6', 'Common'],
// * http://developers.whatwg.org/grouping-content.html
['figure', 'Block', 'Optional: (figcaption, Flow) | (Flow, figcaption) | Flow', 'Common'],
['figcaption', 'Inline', 'Flow', 'Common'],
['oembed', 'Inline', 'Flow', 'Common'],
// * http://developers.whatwg.org/the-video-element.html#the-video-element
['video', 'Block', 'Optional: (source, Flow) | (Flow, source) | Flow', 'Common', [
'src' => 'URI',
'type' => 'Text',
'width' => 'Length',
'height' => 'Length',
'poster' => 'URI',
'preload' => 'Enum#auto,metadata,none',
'controls' => 'Bool',
]],
['source', 'Block', 'Flow', 'Common', [
'src' => 'URI',
'type' => 'Text',
]],
// * http://developers.whatwg.org/text-level-semantics.html
['s', 'Inline', 'Inline', 'Common'],
['var', 'Inline', 'Inline', 'Common'],
['sub', 'Inline', 'Inline', 'Common'],
['sup', 'Inline', 'Inline', 'Common'],
['mark', 'Inline', 'Inline', 'Common'],
['wbr', 'Inline', 'Empty', 'Core'],
// * http://developers.whatwg.org/edits.html
['ins', 'Block', 'Flow', 'Common', ['cite' => 'URI', 'datetime' => 'CDATA']],
['del', 'Block', 'Flow', 'Common', ['cite' => 'URI', 'datetime' => 'CDATA']],
],
'attributes' => [
['iframe', 'allowfullscreen', 'Bool'],
['table', 'height', 'Text'],
['td', 'border', 'Text'],
['th', 'border', 'Text'],
['tr', 'width', 'Text'],
['tr', 'height', 'Text'],
['tr', 'border', 'Text'],
['figure', 'class', 'Text'],
['figure', 'style', 'Text'],
['oembed', 'url', 'Text'],
['span', 'style', 'Text'],
['img', 'style', 'Text'],
],
],
'custom_attributes' => [
['a', 'target', 'Enum#_blank,_self,_target,_top'],
['ol', 'style', 'Text'],
['figure', 'style', 'Text'],
['img', 'style', 'Text'],
['span', 'style', 'Text'],
['oembed', 'url', 'Text'],
],
'custom_elements' => [
['u', 'Inline', 'Inline', 'Common'],
['oembed', 'Inline', 'Inline', 'Common'],
],
],
];

View file

@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddVariableWeightToProductsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('products', function (Blueprint $table) {
$table->boolean('weight_variable')->after('weight_unit')->default(0);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('products', function (Blueprint $table) {
$table->dropColumn('weight_variable');
});
}
}

246
package-lock.json generated
View file

@ -4,26 +4,26 @@
"requires": true,
"packages": {
"": {
"dependencies": {
"@fancyapps/fancybox": "^3.5.7",
"@fortawesome/fontawesome-free": "^5.15.3",
"sass": "^1.28.0",
"tippy.js": "^6.3.1"
},
"devDependencies": {
"@fancyapps/fancybox": "^3.5.7",
"@fortawesome/fontawesome-free": "^6.2.0",
"@types/bootstrap": "^5.2.1",
"@voerro/vue-tagsinput": "^2.7.1",
"axios": "^0.21.1",
"bootstrap": "^5.1.3",
"bootstrap": "^5.2.0",
"cross-env": "^7.0",
"jquery": "^3.6",
"laravel-mix": "^6.0.49",
"lodash": "^4.17.19",
"popper.js": "^1.12",
"resolve-url-loader": "^3.1.0",
"sass": "^1.28.0",
"sass-loader": "^8.0.2",
"simplebar": "^5.3.8",
"swiper": "^6.3.4",
"toastify-js": "^1.10.0",
"tippy.js": "^6.3.1",
"vue": "^2.7.10",
"vue-content-placeholders": "^0.2.1",
"vue-loader": "^15.10.0",
"vue-smooth-dnd": "^0.8.1",
"vue-template-compiler": "^2.6.12",
@ -1778,12 +1778,14 @@
"node_modules/@fancyapps/fancybox": {
"version": "3.5.7",
"resolved": "https://registry.npmjs.org/@fancyapps/fancybox/-/fancybox-3.5.7.tgz",
"integrity": "sha512-rcEtu8t+WnmqIDV/Wfm1yvy/nDdwc7YV25j9HLxGC2/WOsUhk9rcWg2nB8g1BrjRt9zaoADdjHTU6ILYTJzBBg=="
"integrity": "sha512-rcEtu8t+WnmqIDV/Wfm1yvy/nDdwc7YV25j9HLxGC2/WOsUhk9rcWg2nB8g1BrjRt9zaoADdjHTU6ILYTJzBBg==",
"dev": true
},
"node_modules/@fortawesome/fontawesome-free": {
"version": "5.15.3",
"resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-free/-/fontawesome-free-5.15.3.tgz",
"integrity": "sha512-rFnSUN/QOtnOAgqFRooTA3H57JLDm0QEG/jPdk+tLQNL/eWd+Aok8g3qCI+Q1xuDPWpGW/i9JySpJVsq8Q0s9w==",
"version": "6.2.0",
"resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-free/-/fontawesome-free-6.2.0.tgz",
"integrity": "sha512-CNR7qRIfCwWHNN7FnKUniva94edPdyQzil/zCwk3v6k4R6rR2Fr8i4s3PM7n/lyfPA6Zfko9z5WDzFxG9SW1uQ==",
"dev": true,
"hasInstallScript": true,
"engines": {
"node": ">=6"
@ -1860,6 +1862,12 @@
"@jridgewell/sourcemap-codec": "^1.4.10"
}
},
"node_modules/@juggle/resize-observer": {
"version": "3.4.0",
"resolved": "https://registry.npmjs.org/@juggle/resize-observer/-/resize-observer-3.4.0.tgz",
"integrity": "sha512-dfLbk+PwWvFzSxwk3n5ySL0hfBog779o8h68wK/7/APo/7cgyWp5jcXockbxdk5kFRkbeXWm4Fbi9FrdN381sA==",
"dev": true
},
"node_modules/@leichtgewicht/ip-codec": {
"version": "2.0.4",
"resolved": "https://registry.npmjs.org/@leichtgewicht/ip-codec/-/ip-codec-2.0.4.tgz",
@ -1902,9 +1910,10 @@
}
},
"node_modules/@popperjs/core": {
"version": "2.11.4",
"resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.4.tgz",
"integrity": "sha512-q/ytXxO5NKvyT37pmisQAItCFqA7FD/vNb8dgaJy3/630Fsc+Mz9/9f2SziBoIZ30TJooXyTwZmhi1zjXmObYg==",
"version": "2.11.6",
"resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.6.tgz",
"integrity": "sha512-50/17A98tWUfQ176raKiOGXuYpLyyVMkxxG6oylzL3BPOlA6ADGdK7EYunSa4I064xerltq9TGXs8HmOk5E+vw==",
"dev": true,
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/popperjs"
@ -1979,6 +1988,15 @@
"@types/node": "*"
}
},
"node_modules/@types/bootstrap": {
"version": "5.2.4",
"resolved": "https://registry.npmjs.org/@types/bootstrap/-/bootstrap-5.2.4.tgz",
"integrity": "sha512-jGNB81zuDHu1DPvBV7Ox3Z3eyzdWPNguYwrt0j7X90VExA8H7c6qxJh0cz5j3xp0XvSy1TYaP2pkyXCHeo8CaA==",
"dev": true,
"dependencies": {
"@popperjs/core": "^2.9.2"
}
},
"node_modules/@types/clean-css": {
"version": "4.2.5",
"resolved": "https://registry.npmjs.org/@types/clean-css/-/clean-css-4.2.5.tgz",
@ -2640,6 +2658,7 @@
"version": "3.1.2",
"resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz",
"integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==",
"dev": true,
"dependencies": {
"normalize-path": "^3.0.0",
"picomatch": "^2.0.4"
@ -2901,6 +2920,7 @@
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz",
"integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==",
"dev": true,
"engines": {
"node": ">=8"
}
@ -2984,17 +3004,22 @@
"dev": true
},
"node_modules/bootstrap": {
"version": "5.1.3",
"resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-5.1.3.tgz",
"integrity": "sha512-fcQztozJ8jToQWXxVuEyXWW+dSo8AiXWKwiSSrKWsRB/Qt+Ewwza+JWoLKiTuQLaEPhdNAJ7+Dosc9DOIqNy7Q==",
"version": "5.2.1",
"resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-5.2.1.tgz",
"integrity": "sha512-UQi3v2NpVPEi1n35dmRRzBJFlgvWHYwyem6yHhuT6afYF+sziEt46McRbT//kVXZ7b1YUYEVGdXEH74Nx3xzGA==",
"dev": true,
"license": "MIT",
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/bootstrap"
},
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/twbs"
},
{
"type": "opencollective",
"url": "https://opencollective.com/bootstrap"
}
],
"peerDependencies": {
"@popperjs/core": "^2.10.2"
"@popperjs/core": "^2.11.6"
}
},
"node_modules/brace-expansion": {
@ -3011,6 +3036,7 @@
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz",
"integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",
"dev": true,
"dependencies": {
"fill-range": "^7.0.1"
},
@ -3238,6 +3264,12 @@
"node": ">=6"
}
},
"node_modules/can-use-dom": {
"version": "0.1.0",
"resolved": "https://registry.npmjs.org/can-use-dom/-/can-use-dom-0.1.0.tgz",
"integrity": "sha512-ceOhN1DL7Y4O6M0j9ICgmTYziV89WMd96SvSl0REd8PMgrY0B/WBOPoed5S1KUmJqXgUXh8gzSe6E3ae27upsQ==",
"dev": true
},
"node_modules/caniuse-api": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/caniuse-api/-/caniuse-api-3.0.0.tgz",
@ -3295,6 +3327,7 @@
"version": "3.5.3",
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz",
"integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==",
"dev": true,
"funding": [
{
"type": "individual",
@ -3615,6 +3648,17 @@
"integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==",
"dev": true
},
"node_modules/core-js": {
"version": "3.25.3",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-3.25.3.tgz",
"integrity": "sha512-y1hvKXmPHvm5B7w4ln1S4uc9eV/O5+iFExSRUimnvIph11uaizFR8LFMdONN8hG3P2pipUfX4Y/fR8rAEtcHcQ==",
"dev": true,
"hasInstallScript": true,
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/core-js"
}
},
"node_modules/core-js-compat": {
"version": "3.25.1",
"resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.25.1.tgz",
@ -4784,6 +4828,7 @@
"version": "7.0.1",
"resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz",
"integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==",
"dev": true,
"dependencies": {
"to-regex-range": "^5.0.1"
},
@ -4935,6 +4980,7 @@
"version": "2.3.2",
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz",
"integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",
"dev": true,
"optional": true,
"os": [
"darwin"
@ -5017,6 +5063,7 @@
"version": "5.1.2",
"resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
"integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
"dev": true,
"dependencies": {
"is-glob": "^4.0.1"
},
@ -5600,6 +5647,7 @@
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",
"integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",
"dev": true,
"dependencies": {
"binary-extensions": "^2.0.0"
},
@ -5644,6 +5692,7 @@
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
"integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=",
"dev": true,
"engines": {
"node": ">=0.10.0"
}
@ -5661,6 +5710,7 @@
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz",
"integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==",
"dev": true,
"dependencies": {
"is-extglob": "^2.1.1"
},
@ -5672,6 +5722,7 @@
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
"integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
"dev": true,
"engines": {
"node": ">=0.12.0"
}
@ -6025,6 +6076,12 @@
"integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==",
"dev": true
},
"node_modules/lodash.throttle": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/lodash.throttle/-/lodash.throttle-4.1.1.tgz",
"integrity": "sha512-wIkUCfVKpVsWo3JSZlc+8MB5it+2AN5W8J7YVMST30UrvcQNZ1Okbj+rbVniijTWE6FGYy4XJq/rHkas8qJMLQ==",
"dev": true
},
"node_modules/lodash.uniq": {
"version": "4.5.0",
"resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz",
@ -6453,6 +6510,7 @@
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",
"integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",
"dev": true,
"engines": {
"node": ">=0.10.0"
}
@ -6840,6 +6898,7 @@
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",
"integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",
"dev": true,
"engines": {
"node": ">=8.6"
},
@ -7654,6 +7713,7 @@
"version": "3.6.0",
"resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",
"integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==",
"dev": true,
"dependencies": {
"picomatch": "^2.2.1"
},
@ -8104,6 +8164,7 @@
"version": "1.32.8",
"resolved": "https://registry.npmjs.org/sass/-/sass-1.32.8.tgz",
"integrity": "sha512-Sl6mIeGpzjIUZqvKnKETfMf0iDAswD9TNlv13A7aAF3XZlRPMq4VvJWBC2N2DXbp94MQVdNSFG6LfF/iOXrPHQ==",
"dev": true,
"dependencies": {
"chokidar": ">=2.0.0 <4.0.0"
},
@ -8417,6 +8478,20 @@
"integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",
"dev": true
},
"node_modules/simplebar": {
"version": "5.3.8",
"resolved": "https://registry.npmjs.org/simplebar/-/simplebar-5.3.8.tgz",
"integrity": "sha512-LOHjyOcihx++zFN+vuktoZBGpCarFCtHIVDWXOf2VELbGDknq3Hw/sddafRp1aCg123VNkHWOFHUDHYEXAtufQ==",
"dev": true,
"dependencies": {
"@juggle/resize-observer": "^3.3.1",
"can-use-dom": "^0.1.0",
"core-js": "^3.0.1",
"lodash.debounce": "^4.0.8",
"lodash.memoize": "^4.1.2",
"lodash.throttle": "^4.1.1"
}
},
"node_modules/slash": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz",
@ -8902,6 +8977,7 @@
"version": "6.3.1",
"resolved": "https://registry.npmjs.org/tippy.js/-/tippy.js-6.3.1.tgz",
"integrity": "sha512-JnFncCq+rF1dTURupoJ4yPie5Cof978inW6/4S6kmWV7LL9YOSEVMifED3KdrVPEG+Z/TFH2CDNJcQEfaeuQww==",
"dev": true,
"dependencies": {
"@popperjs/core": "^2.8.3"
}
@ -8925,6 +9001,7 @@
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
"integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
"dev": true,
"dependencies": {
"is-number": "^7.0.0"
},
@ -8932,12 +9009,6 @@
"node": ">=8.0"
}
},
"node_modules/toastify-js": {
"version": "1.10.0",
"resolved": "https://registry.npmjs.org/toastify-js/-/toastify-js-1.10.0.tgz",
"integrity": "sha512-xuO499S1sw9gTdiBkZSMNE4sIoiQv/y0y534F7g2dcprVMAJZIdtOaphqiQlNJPfh0YQFDvgD4R3KcX5r94cAQ==",
"dev": true
},
"node_modules/toidentifier": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",
@ -9157,6 +9228,12 @@
"csstype": "^3.1.0"
}
},
"node_modules/vue-content-placeholders": {
"version": "0.2.1",
"resolved": "https://registry.npmjs.org/vue-content-placeholders/-/vue-content-placeholders-0.2.1.tgz",
"integrity": "sha512-Q+HPjuY98R0fLQ45eOOCYeMY7vpjU1H/Qqs0ptdBI6xe3nDDsPE4r/kN5YA9rVxQFP/PKhG5qQR4rqy02xPabw==",
"dev": true
},
"node_modules/vue-hot-reload-api": {
"version": "2.3.4",
"resolved": "https://registry.npmjs.org/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz",
@ -11010,12 +11087,14 @@
"@fancyapps/fancybox": {
"version": "3.5.7",
"resolved": "https://registry.npmjs.org/@fancyapps/fancybox/-/fancybox-3.5.7.tgz",
"integrity": "sha512-rcEtu8t+WnmqIDV/Wfm1yvy/nDdwc7YV25j9HLxGC2/WOsUhk9rcWg2nB8g1BrjRt9zaoADdjHTU6ILYTJzBBg=="
"integrity": "sha512-rcEtu8t+WnmqIDV/Wfm1yvy/nDdwc7YV25j9HLxGC2/WOsUhk9rcWg2nB8g1BrjRt9zaoADdjHTU6ILYTJzBBg==",
"dev": true
},
"@fortawesome/fontawesome-free": {
"version": "5.15.3",
"resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-free/-/fontawesome-free-5.15.3.tgz",
"integrity": "sha512-rFnSUN/QOtnOAgqFRooTA3H57JLDm0QEG/jPdk+tLQNL/eWd+Aok8g3qCI+Q1xuDPWpGW/i9JySpJVsq8Q0s9w=="
"version": "6.2.0",
"resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-free/-/fontawesome-free-6.2.0.tgz",
"integrity": "sha512-CNR7qRIfCwWHNN7FnKUniva94edPdyQzil/zCwk3v6k4R6rR2Fr8i4s3PM7n/lyfPA6Zfko9z5WDzFxG9SW1uQ==",
"dev": true
},
"@jridgewell/gen-mapping": {
"version": "0.1.1",
@ -11078,6 +11157,12 @@
"@jridgewell/sourcemap-codec": "^1.4.10"
}
},
"@juggle/resize-observer": {
"version": "3.4.0",
"resolved": "https://registry.npmjs.org/@juggle/resize-observer/-/resize-observer-3.4.0.tgz",
"integrity": "sha512-dfLbk+PwWvFzSxwk3n5ySL0hfBog779o8h68wK/7/APo/7cgyWp5jcXockbxdk5kFRkbeXWm4Fbi9FrdN381sA==",
"dev": true
},
"@leichtgewicht/ip-codec": {
"version": "2.0.4",
"resolved": "https://registry.npmjs.org/@leichtgewicht/ip-codec/-/ip-codec-2.0.4.tgz",
@ -11111,9 +11196,10 @@
}
},
"@popperjs/core": {
"version": "2.11.4",
"resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.4.tgz",
"integrity": "sha512-q/ytXxO5NKvyT37pmisQAItCFqA7FD/vNb8dgaJy3/630Fsc+Mz9/9f2SziBoIZ30TJooXyTwZmhi1zjXmObYg=="
"version": "2.11.6",
"resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.6.tgz",
"integrity": "sha512-50/17A98tWUfQ176raKiOGXuYpLyyVMkxxG6oylzL3BPOlA6ADGdK7EYunSa4I064xerltq9TGXs8HmOk5E+vw==",
"dev": true
},
"@trysound/sax": {
"version": "0.2.0",
@ -11181,6 +11267,15 @@
"@types/node": "*"
}
},
"@types/bootstrap": {
"version": "5.2.4",
"resolved": "https://registry.npmjs.org/@types/bootstrap/-/bootstrap-5.2.4.tgz",
"integrity": "sha512-jGNB81zuDHu1DPvBV7Ox3Z3eyzdWPNguYwrt0j7X90VExA8H7c6qxJh0cz5j3xp0XvSy1TYaP2pkyXCHeo8CaA==",
"dev": true,
"requires": {
"@popperjs/core": "^2.9.2"
}
},
"@types/clean-css": {
"version": "4.2.5",
"resolved": "https://registry.npmjs.org/@types/clean-css/-/clean-css-4.2.5.tgz",
@ -11782,6 +11877,7 @@
"version": "3.1.2",
"resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz",
"integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==",
"dev": true,
"requires": {
"normalize-path": "^3.0.0",
"picomatch": "^2.0.4"
@ -11980,7 +12076,8 @@
"binary-extensions": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz",
"integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA=="
"integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==",
"dev": true
},
"bluebird": {
"version": "3.7.2",
@ -12056,9 +12153,9 @@
"dev": true
},
"bootstrap": {
"version": "5.1.3",
"resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-5.1.3.tgz",
"integrity": "sha512-fcQztozJ8jToQWXxVuEyXWW+dSo8AiXWKwiSSrKWsRB/Qt+Ewwza+JWoLKiTuQLaEPhdNAJ7+Dosc9DOIqNy7Q==",
"version": "5.2.1",
"resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-5.2.1.tgz",
"integrity": "sha512-UQi3v2NpVPEi1n35dmRRzBJFlgvWHYwyem6yHhuT6afYF+sziEt46McRbT//kVXZ7b1YUYEVGdXEH74Nx3xzGA==",
"dev": true,
"requires": {}
},
@ -12076,6 +12173,7 @@
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz",
"integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",
"dev": true,
"requires": {
"fill-range": "^7.0.1"
}
@ -12257,6 +12355,12 @@
"integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==",
"dev": true
},
"can-use-dom": {
"version": "0.1.0",
"resolved": "https://registry.npmjs.org/can-use-dom/-/can-use-dom-0.1.0.tgz",
"integrity": "sha512-ceOhN1DL7Y4O6M0j9ICgmTYziV89WMd96SvSl0REd8PMgrY0B/WBOPoed5S1KUmJqXgUXh8gzSe6E3ae27upsQ==",
"dev": true
},
"caniuse-api": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/caniuse-api/-/caniuse-api-3.0.0.tgz",
@ -12295,6 +12399,7 @@
"version": "3.5.3",
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz",
"integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==",
"dev": true,
"requires": {
"anymatch": "~3.1.2",
"braces": "~3.0.2",
@ -12550,6 +12655,12 @@
"integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==",
"dev": true
},
"core-js": {
"version": "3.25.3",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-3.25.3.tgz",
"integrity": "sha512-y1hvKXmPHvm5B7w4ln1S4uc9eV/O5+iFExSRUimnvIph11uaizFR8LFMdONN8hG3P2pipUfX4Y/fR8rAEtcHcQ==",
"dev": true
},
"core-js-compat": {
"version": "3.25.1",
"resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.25.1.tgz",
@ -13470,6 +13581,7 @@
"version": "7.0.1",
"resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz",
"integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==",
"dev": true,
"requires": {
"to-regex-range": "^5.0.1"
}
@ -13578,6 +13690,7 @@
"version": "2.3.2",
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz",
"integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",
"dev": true,
"optional": true
},
"function-bind": {
@ -13633,6 +13746,7 @@
"version": "5.1.2",
"resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
"integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
"dev": true,
"requires": {
"is-glob": "^4.0.1"
}
@ -14064,6 +14178,7 @@
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",
"integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",
"dev": true,
"requires": {
"binary-extensions": "^2.0.0"
}
@ -14092,7 +14207,8 @@
"is-extglob": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
"integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI="
"integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=",
"dev": true
},
"is-fullwidth-code-point": {
"version": "3.0.0",
@ -14104,6 +14220,7 @@
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz",
"integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==",
"dev": true,
"requires": {
"is-extglob": "^2.1.1"
}
@ -14111,7 +14228,8 @@
"is-number": {
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
"integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng=="
"integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
"dev": true
},
"is-plain-obj": {
"version": "3.0.0",
@ -14380,6 +14498,12 @@
"integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==",
"dev": true
},
"lodash.throttle": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/lodash.throttle/-/lodash.throttle-4.1.1.tgz",
"integrity": "sha512-wIkUCfVKpVsWo3JSZlc+8MB5it+2AN5W8J7YVMST30UrvcQNZ1Okbj+rbVniijTWE6FGYy4XJq/rHkas8qJMLQ==",
"dev": true
},
"lodash.uniq": {
"version": "4.5.0",
"resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz",
@ -14732,7 +14856,8 @@
"normalize-path": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",
"integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA=="
"integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",
"dev": true
},
"normalize-range": {
"version": "0.1.2",
@ -15020,7 +15145,8 @@
"picomatch": {
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",
"integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA=="
"integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",
"dev": true
},
"pkg-dir": {
"version": "4.2.0",
@ -15551,6 +15677,7 @@
"version": "3.6.0",
"resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",
"integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==",
"dev": true,
"requires": {
"picomatch": "^2.2.1"
}
@ -15905,6 +16032,7 @@
"version": "1.32.8",
"resolved": "https://registry.npmjs.org/sass/-/sass-1.32.8.tgz",
"integrity": "sha512-Sl6mIeGpzjIUZqvKnKETfMf0iDAswD9TNlv13A7aAF3XZlRPMq4VvJWBC2N2DXbp94MQVdNSFG6LfF/iOXrPHQ==",
"dev": true,
"requires": {
"chokidar": ">=2.0.0 <4.0.0"
}
@ -16169,6 +16297,20 @@
"integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",
"dev": true
},
"simplebar": {
"version": "5.3.8",
"resolved": "https://registry.npmjs.org/simplebar/-/simplebar-5.3.8.tgz",
"integrity": "sha512-LOHjyOcihx++zFN+vuktoZBGpCarFCtHIVDWXOf2VELbGDknq3Hw/sddafRp1aCg123VNkHWOFHUDHYEXAtufQ==",
"dev": true,
"requires": {
"@juggle/resize-observer": "^3.3.1",
"can-use-dom": "^0.1.0",
"core-js": "^3.0.1",
"lodash.debounce": "^4.0.8",
"lodash.memoize": "^4.1.2",
"lodash.throttle": "^4.1.1"
}
},
"slash": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz",
@ -16524,6 +16666,7 @@
"version": "6.3.1",
"resolved": "https://registry.npmjs.org/tippy.js/-/tippy.js-6.3.1.tgz",
"integrity": "sha512-JnFncCq+rF1dTURupoJ4yPie5Cof978inW6/4S6kmWV7LL9YOSEVMifED3KdrVPEG+Z/TFH2CDNJcQEfaeuQww==",
"dev": true,
"requires": {
"@popperjs/core": "^2.8.3"
}
@ -16544,16 +16687,11 @@
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
"integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
"dev": true,
"requires": {
"is-number": "^7.0.0"
}
},
"toastify-js": {
"version": "1.10.0",
"resolved": "https://registry.npmjs.org/toastify-js/-/toastify-js-1.10.0.tgz",
"integrity": "sha512-xuO499S1sw9gTdiBkZSMNE4sIoiQv/y0y534F7g2dcprVMAJZIdtOaphqiQlNJPfh0YQFDvgD4R3KcX5r94cAQ==",
"dev": true
},
"toidentifier": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",
@ -16728,6 +16866,12 @@
"csstype": "^3.1.0"
}
},
"vue-content-placeholders": {
"version": "0.2.1",
"resolved": "https://registry.npmjs.org/vue-content-placeholders/-/vue-content-placeholders-0.2.1.tgz",
"integrity": "sha512-Q+HPjuY98R0fLQ45eOOCYeMY7vpjU1H/Qqs0ptdBI6xe3nDDsPE4r/kN5YA9rVxQFP/PKhG5qQR4rqy02xPabw==",
"dev": true
},
"vue-hot-reload-api": {
"version": "2.3.4",
"resolved": "https://registry.npmjs.org/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz",

View file

@ -10,28 +10,28 @@
"production": "mix --production"
},
"devDependencies": {
"@fancyapps/fancybox": "^3.5.7",
"@fortawesome/fontawesome-free": "^6.2.0",
"@types/bootstrap": "^5.2.1",
"@voerro/vue-tagsinput": "^2.7.1",
"axios": "^0.21.1",
"bootstrap": "^5.1.3",
"bootstrap": "^5.2.0",
"cross-env": "^7.0",
"jquery": "^3.6",
"laravel-mix": "^6.0.49",
"lodash": "^4.17.19",
"popper.js": "^1.12",
"resolve-url-loader": "^3.1.0",
"sass": "^1.28.0",
"sass-loader": "^8.0.2",
"simplebar": "^5.3.8",
"swiper": "^6.3.4",
"toastify-js": "^1.10.0",
"tippy.js": "^6.3.1",
"vue": "^2.7.10",
"vue-content-placeholders": "^0.2.1",
"vue-loader": "^15.10.0",
"vue-smooth-dnd": "^0.8.1",
"vue-template-compiler": "^2.6.12",
"vuex": "^3.6.2"
},
"dependencies": {
"@fancyapps/fancybox": "^3.5.7",
"@fortawesome/fontawesome-free": "^5.15.3",
"sass": "^1.28.0",
"tippy.js": "^6.3.1"
}
}

1
resources/js/app.js vendored
View file

@ -1,4 +1,3 @@
//import Toastify from "toastify-js";
require('./bootstrap');
require('@fancyapps/fancybox');
import Vue from 'vue'

View file

@ -219,7 +219,7 @@
</div>
<div class="form-group">
<label for="nutriscore">Nutriscore</label>
<input type="text" id="nutriscore" name="nutriscore" class="form-control" placeholder="Nutriscore" value="{{ old('nutriscore', $product->foodProduct->nutriscore) }}">
<input type="text" id="nutriscore" name="nutriscore" class="form-control" placeholder="Score nutriscore (A, B, C, D, E)" value="{{ old('nutriscore', $product->foodProduct->nutriscore) }}">
</div>
<div class="form-group">
<label>Arguments Nutriscore</label>

View file

@ -91,7 +91,7 @@
<div class="row">
<div class="form-group col">
<label for="price">Prix en € *</label>
<input type="number" id="price" name="price" min="0" step=".001" class="form-control" value="{{ old('price', $product->price)}}" required>
<input type="number" id="price" name="price" min="0" step=".01" class="form-control" value="{{ old('price', $product->price)}}" required>
</div>
<div class="form-group col">
<label for="invoicing_unit">Unité de facturation
@ -191,6 +191,12 @@
</div>
<div class="form-group col"></div>
</div>
<div class="form-group">
<label>
<input type="checkbox" name="weight_variable" @if ($product->weight_variable === 1) checked @endif>
Poids variable ?
</label>
</div>
<div class="form-group">
<label>
<input type="checkbox" name="star" @if ($product->star === 1) checked @endif>

View file

@ -1,4 +1,4 @@
*
ldc
!.gitignore
!basic/*
!README.txt

View file

@ -0,0 +1,2 @@
## Thème pour la boutique

View file

@ -0,0 +1,22 @@
@extends('layouts.layout')
@section('title', __('Activation'))
@section('description', 'Activation de votre compte précédemment créé.')
@section('content')
<main class="auth-login container d-flex justify-content-center align-items-center">
<div class="row">
<div class="col my-5">
<h1 class="title-medium font-Barlow-extra-bold text-uppercase text-white text-center">Activation de votre compte</h1>
<div class="row">
<div class="text-center">
<p class="m-0 me-2">{{ $message }}</p>
</div>
<div class="text-center mt-2">
<a class="btn btn-product rounded-4" href="{{ route('auth.connexion') }}">Connectez-vous</a>
</div>
</div>
</div>
</div>
</main>
@endsection

View file

@ -0,0 +1,50 @@
@extends('layouts.layout')
@section('title', __('Connexion au back office'))
@section('description', 'Connexion au back office.')
@section('content')
<main class="auth-login container d-flex justify-content-center align-items-center">
<div class="row">
<div class="col my-5">
<h1 class="title-medium font-Barlow-extra-bold text-uppercase text-white text-center">Connexion</h1>
<form action="{{ route('auth.login.post') }}" method="POST" class="col mx-auto">
@csrf
@if ($errors->any())
<div>
<ul class="list-group">
@foreach ($errors->all() as $error)
<li class="list-group-item bg-transparent text-red border-0 text-center">{{ $error }}</li>
@endforeach
</ul>
</div>
@endif
<div class="row">
<input class="form-control rounded-4 border-dark mx-auto" type="text" name="email" placeholder="Email*" required />
<input class="form-control rounded-4 border-dark mx-auto my-2" type="password" name="password" placeholder="Mot de passe*" required />
</div>
<div class="form-check d-flex flex-row justify-content-center align-items-center rounded-2 px-3 py-2 p-lg-0 mt-2 mb-0">
<input class="form-check-input m-0" type="checkbox" name="remember" role="button" id="filterPoulets">
<label class="form-check-label ps-2" role="button" for="filterPoulets">
Se souvenir de moi
</label>
</div>
<div class="row">
<div class="text-center">
<button class="btn btn-product rounded-4 my-3">Connexion</button>
</div>
<div class="text-center">
<a href="{{ route('auth.forgot-password') }}" class="text-dark text-decoration-none">J'ai oublié mon mot de passe</a>
</div>
</div>
<div class="row mt-2">
<div class="col d-flex justify-content-center align-items-center text-center">
<p class="m-0 me-2">Pas encore de compte ?</p>
<a class="btn btn-product rounded-4" href="{{ route('auth.register') }}">Inscrivez-vous</a>
</div>
</div>
</form>
</div>
</div>
</main>
@endsection

View file

@ -0,0 +1,50 @@
@extends('layouts.layout')
@section('title', __('Connexion'))
@section('description', 'Connexion à votre compte personnel.')
@section('content')
<main class="auth-login container d-flex justify-content-center align-items-center">
<div class="row">
<div class="col my-5">
<h1 class="title-medium font-Barlow-extra-bold text-uppercase text-white text-center">Connexion</h1>
<form action="{{ route('auth.connexion.post') }}" method="POST" class="col mx-auto">
@csrf
@if ($errors->any())
<div>
<ul class="list-group">
@foreach ($errors->all() as $error)
<li class="list-group-item bg-transparent text-red border-0 text-center">{{ $error }}</li>
@endforeach
</ul>
</div>
@endif
<div class="row">
<input class="form-control rounded-4 border-dark mx-auto" type="text" name="email" placeholder="Email*" required />
<input class="form-control rounded-4 border-dark mx-auto my-2" type="password" name="password" placeholder="Mot de passe*" required />
</div>
<div class="form-check d-flex flex-row justify-content-center align-items-center rounded-2 px-3 py-2 p-lg-0 mt-2 mb-0">
<input class="form-check-input m-0" type="checkbox" name="remember" role="button" id="filterPoulets">
<label class="form-check-label ps-2" role="button" for="filterPoulets">
Se souvenir de moi
</label>
</div>
<div class="row">
<div class="text-center">
<button class="btn btn-product rounded-4 my-3">Connexion</button>
</div>
<div class="text-center">
<a href="{{ route('auth.forgot-password') }}" class="text-dark text-decoration-none">J'ai oublié mon mot de passe</a>
</div>
</div>
<div class="row mt-2">
<div class="col d-flex justify-content-center align-items-center text-center">
<p class="m-0 me-2">Pas encore de compte ?</p>
<a class="btn btn-product rounded-4" href="{{ route('auth.register') }}">Inscrivez-vous</a>
</div>
</div>
</form>
</div>
</div>
</main>
@endsection

View file

@ -0,0 +1,33 @@
@extends('layouts.layout')
@section('title', 'Mot de passe oublié')
@section('description', 'Procédure afin de retrouver son mot de passe lié à son compte.')
@section('content')
<main class="auth-login container d-flex justify-content-center align-items-center">
<div class="row">
<div class="col my-5">
<h1 class="title-medium font-Barlow-extra-bold text-uppercase text-white">Mot de passe oublié</h1>
<form action="{{ route('auth.reinit-mdp') }}" method="POST" class="col mx-auto text-center">
@csrf
@if ($errors->any())
<div>
<ul class="list-group">
@foreach ($errors->all() as $error)
<li class="list-group-item bg-transparent text-red border-0 text-center">{{ $error }}</li>
@endforeach
</ul>
</div>
@elseif (session('success'))
<div class="text-green">
{{ session('success') }}
</div>
@endif
<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>
<input class="form-control rounded-4 border-dark mx-auto" name="email" type="email" placeholder="Votre adresse email *" pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}$" required>
<input class="btn btn-product rounded-4 mx-auto mt-4" type="submit" value="Je valide">
</form>
</div>
</div>
</main>
@endsection

View file

@ -0,0 +1,22 @@
@extends('layouts.layout')
@section('title', 'Mot de passe modifié')
@section('description', 'Votre mot de passe a bien été modifié.')
@section('content')
<main class="auth-login container d-flex justify-content-center align-items-center">
<div class="row">
<div class="col my-5">
<h1 class="title-medium font-Barlow-extra-bold text-uppercase text-white text-center">Changement de votre mot de passe</h1>
<div class="row">
<div class="text-center">
<p class="m-0 me-2">Votre mot de passe a bien été modifié.</p>
</div>
<div class="text-center mt-2">
<a class="btn btn-product rounded-4" href="{{ route('account.dashboard') }}">Voir mon profile</a>
</div>
</div>
</div>
</div>
</main>
@endsection

View file

@ -0,0 +1,51 @@
@extends('layouts.layout')
@section('title', 'Mot de passe')
@section('description', 'Changement de votre mot de passe.')
@section('content')
<main class="auth-login container d-flex justify-content-center align-items-center">
<div class="row">
<div class="col my-5">
<h1 class="title-medium font-Barlow-extra-bold text-uppercase text-white text-center">Connexion</h1>
<form action="{{ route('auth.change-password', $token) }}" method="POST" class="col mx-auto">
@csrf
@if ($errors->any())
<div>
<ul class="list-group">
@foreach ($errors->all() as $error)
<li class="list-group-item bg-transparent text-red border-0 text-center">{{ $error }}</li>
@endforeach
</ul>
</div>
@endif
@if (session('success'))
<div class="form__success">
{{ session('success') }}
</div>
@endif
<div class="row">
<div class="col d-flex justify-content-center align-items-center text-center p-0">
<input class="w-50 form-control rounded-4 border-dark"
type="password"
name="password"
placeholder="Votre nouveau mot de passe*"
value="{{ old('lastname') }}" required/>
<input class="w-50 form-control rounded-4 border-dark"
type="password"
name="password_confirmation"
placeholder="Confirmer votre nouveau mot de passe*"
value="{{ old('password_confirmation') }}" required/>
</div>
</div>
<input type="hidden" name="token" value="{{ $token }}">
<div class="row mt-2">
<div class="col d-flex justify-content-center align-items-center text-center">
<button class="btn btn-product rounded-4" type="submit">Changer</button>
</div>
</div>
</form>
</div>
</div>
</main>
@endsection

View file

@ -0,0 +1,24 @@
@extends('layouts.layout')
@section('title', __('Inscription'))
@section('description', 'Inscription à la boutique réussi.')
@section('content')
<main class="auth-login container d-flex justify-content-center align-items-center">
<div class="row">
<div class="col my-5">
<h1 class="title-medium font-Barlow-extra-bold text-uppercase text-white text-center">Création de votre compte</h1>
<div class="row">
<div class="text-center">
<p class="m-0 me-2">Félicitations</p>
<p class="m-0">Votre compte a bien été créé !</p>
<p class="m-0">Vous allez recevoir un mail de confirmation sur l'adresse {{ $mail }}</p>
</div>
<div class="text-center mt-2">
<a class="btn btn-product rounded-4" href="{{ route('auth.connexion') }}">Connectez-vous</a>
</div>
</div>
</div>
</div>
</main>
@endsection

View file

@ -0,0 +1,230 @@
@extends('layouts.layout')
@section('title', __('Inscription'))
@section('description', 'Procédure d\inscription à la boutique.')
@section('content')
<main class="auth-login container d-flex justify-content-center align-items-center">
<div class="row">
<div class="col my-5">
<h1 class="title-medium font-Barlow-extra-bold text-uppercase text-white text-center">Inscription</h1>
@if (session('success'))
<div class="row">
<div class="text-center">
<p class="m-0 me-2">Félicitations</p>
<p class="m-0">Votre compte a bien été créé !</p>
<p class="m-0">Vous allez recevoir un mail de confirmation sur l'adresse {{ $mail }}</p>
</div>
<div class="text-center mt-2">
<a class="btn btn-product rounded-4" href="{{ route('auth.connexion') }}">Connectez-vous</a>
</div>
</div>
@else
<form action="{{ route('auth.register.post') }}" method="POST" id="stdinscription">
@csrf
@if ($errors->any())
<div>
<ul class="list-group">
@foreach ($errors->all() as $error)
<li class="list-group-item bg-transparent text-red border-0 text-center">{{ $error }}</li>
@endforeach
</ul>
</div>
@endif
@if (config('bosettings.register_salaries') && config('bosettings.register_public'))
<div class="row">
<div class="text-center">
<button class="btn no-after" onclick="visibility2()" type="button" id="codebutton">J'ai un code d'inscription</button>
</div>
</div>
<div class="row mb-2" id="codeinscription" style="display: none;">
<div class="col d-flex justify-content-center align-items-center text-center p-0">
<input class="w-50 form-control rounded-4 border-dark"
type="text"
name="matricule"
placeholder="Matricule*"
value="{{ old('matricule') }}" required/>
<input class="w-50 form-control rounded-4 border-dark"
type="text"
name="code"
placeholder="Code d'inscription*"
value="{{ old('code') }}" required/>
</div>
</div>
@elseif (config('bosettings.register_salaries') && !config('bosettings.register_public'))
<div class="row mb-2" id="codeinscription">
<div class="col d-flex justify-content-center align-items-center text-center p-0">
<input class="w-50 form-control rounded-4 border-dark"
type="text"
name="matricule"
placeholder="Matricule*"
value="{{ old('matricule') }}" required/>
<input class="w-50 form-control rounded-4 border-dark"
type="text"
name="code"
placeholder="Code d'inscription*"
value="{{ old('code') }}" required/>
</div>
</div>
@endif
<div class="row">
<div class="col d-flex justify-content-center align-items-center text-center p-0">
<input class="w-50 form-control rounded-4 border-dark"
type="text"
name="lastname"
placeholder="Nom*"
value="{{ old('lastname') }}" required/>
<input class="w-50 form-control rounded-4 border-dark"
type="text"
name="firstname"
placeholder="Prénom*"
value="{{ old('firstname') }}" required/>
</div>
</div>
<div class="row mt-2">
<div class="col d-flex justify-content-center align-items-center text-center p-0">
<p class="w-50 m-0">Date de naissance *</p>
<input class="w-50 form-control rounded-4 border-dark"
type="date"
name="birth_date"
placeholder="Date de naissance*"
value="{{ old('birth_date') }}" required>
</div>
</div>
<div class="row mt-2">
<input class="w-100 form-control rounded-4 border-dark"
name="email"
type="email"
placeholder="Votre adresse email *"
autocomplete="email"
pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}$"
value="{{ old('email') }}" required>
</div>
<div class="row mt-2">
<div class="col d-flex justify-content-center align-items-center text-center p-0">
<input class="w-50 form-control rounded-4 border-dark"
type="password"
name="password"
id="password"
placeholder="Mot de passe*"
value="{{ old('password') }}" required/>
<span class="input-group-btn" id="eyeSlash">
<button class="btn no-after reveal" onclick="visibility3()" type="button">
<i class="fas fa-eye-slash" aria-hidden="true"></i>
</button>
</span>
<span class="input-group-btn" id="eyeShow" style="display: none;">
<button class="btn no-after reveal" onclick="visibility3()" type="button">
<i class="fas fa-eye" aria-hidden="true"></i>
</button>
</span>
<input class="w-50 form-control rounded-4 border-dark"
type="password"
name="password_confirmation"
id="password_confirmation"
placeholder="Confirmer votre mot de passe*"
autocomplete="new-password"
value="{{ old('password_confirmation') }}" required/>
</div>
</div>
<div class="row mt-2">
<input class="w-100 form-control rounded-4 border-dark"
type="number"
name="phone"
id="phone"
autocomplete="tel"
placeholder="Téléphone"
pattern="[0-9]{10}"
value="{{ old('phone') }}">
</div>
<div class="row mt-2">
<div class="col d-flex justify-content-center align-items-center text-center p-0">
<input class="w-50 form-control rounded-4 border-dark"
type="text"
name="address"
placeholder="Adresse postale*"
autocomplete="street-address"
value="{{ old('address') }}" required/>
<input class="w-50 form-control rounded-4 border-dark"
type="number"
name="postal_code"
placeholder="Code postale*"
autocomplete="postal-code"
value="{{ old('postal_code') }}" required/>
</div>
</div>
<div class="row mt-2">
<input class="w-100 form-control rounded-4 border-dark"
type="text"
name="town"
id="town"
autocomplete="tel"
placeholder="Ville*"
value="{{ old('town') }}">
</div>
<div class="form-check d-flex flex-row justify-content-center align-items-center rounded-2 px-3 py-2 p-lg-0 mt-2 mb-0">
<input class="form-check-input m-0" type="checkbox" name="ok_cgv" role="button" id="ok_cgv">
<label class="w-75 form-check-label ps-2" role="button" for="ok_cgv">
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>.
</label>
</div>
<div class="form-check d-flex flex-row justify-content-center align-items-center rounded-2 px-3 py-2 p-lg-0 mt-2 mb-0">
<input class="form-check-input m-0" type="checkbox" name="remember" role="button" id="optin">
<label class="w-75 form-check-label ps-2" role="button" for="optin">
Je souhaite m'inscrire à la newsletter {{ Config::get('theme.site_name') }}.
</label>
</div>
<div class="text-center fst-italic my-2">*Champs obligatoires</div>
<div class="row">
<div class="text-center">
<button class="btn btn-product rounded-4">S'inscrire</button>
</div>
</div>
</form>
<div class="row mt-2">
<div class="col d-flex justify-content-center align-items-center text-center">
<p class="m-0 me-2">Déjà inscrit ?</p>
<a class="btn btn-product rounded-4" href="{{ route('auth.login') }}">Connectez-vous</a>
</div>
</div>
@endif
</div>
</div>
</main>
@endsection
<script>
function visibility2() {
if($('#codebutton').text() == 'Je n\'ai pas de code') {
//vider les champs
$('[name=matricule]').val('').attr("required", false);
$('[name=code]').val('').attr("required", false);
$('#codebutton').text('J\'ai un code d\'inscription');
} else if($('#codebutton').text() == 'J\'ai un code d\'inscription') {
//rendre obligatoire
$('[name=matricule]').attr("required", true);
$('[name=code]').attr("required", true);
$('#codebutton').text('Je n\'ai pas de code');
}
$('#codeinscription').show();
}
function visibility3() {
var x = document.getElementById('password');
var y = document.getElementById('password_confirmation');
if (x.type === 'password') {
x.type = "text";
y.type = "text";
$('#eyeShow').show();
$('#eyeSlash').hide();
} else {
x.type = "password";
y.type = "password";
$('#eyeShow').hide();
$('#eyeSlash').show();
}
}
@if ($errors->has('matricule') || $errors->has('code') || old('matricule') || old('code'))
visibility2()
@endif
</script>

View 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

View 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

View 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">&gt;</span>
@endif
@endforeach
</div>
</div>
</div>
@endunless

View file

@ -0,0 +1,118 @@
@extends('layouts.layout')
@section('title', __('Contactez-nous'))
@section('description', 'Procédure afin de contacter les gérants de la boutique.')
@section('content')
<main class="auth-login d-flex flex-column justify-content-center container">
<h1 class="title-medium font-Barlow-extra-bold text-uppercase text-white text-center">{!! $content->title !!}</h1>
<div class="row justify-content-around">
<div class="col-12 col-lg-6 p-0 font-Barlow-bold">
@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
<ul class="list-group">
<li class="list-group-item bg-transparent border-0 p-0">Téléphone : {{ $magasin->phone }}</li>
<li class="list-group-item bg-transparent border-0 p-0">Adresse : {{ $magasin->address }} {{ $magasin->postcode }} {{ $magasin->city }}</li>
</ul>
<iframe class="w-100 mt-2" src="{!! $magasin->gmaps_embed_href !!}" frameborder="0" allowfullscreen="" loading="lazy" aria-hidden="false" tabindex="0"></iframe>
</div>
<form class="col-12 col-lg-6 my-4 my-lg-0 p-0" action="{{ route('contact-us.submit') }}" method="post" enctype="multipart/form-data">
@csrf
{{-- IF MAIL IS SENT --}}
@if(!is_null($status))
@if(session()->get('status'))
<div class="h-100 d-flex flex-column align-items-center justify-content-center text-center">
<img class="w-auto mx-auto" src="{{ asset(config('app.theme').'/img/form_confirm.png') }}">
<p class="text-green mt-3 mb-2">Votre message a bien été envoyé !</p>
<p>Nos services mettent tout en oeuvre pour y répondre au plus vite.</p>
</div>
@else
<div class="h-100 d-flex flex-column align-items-center justify-content-center text-center">
<img class="w-auto mx-auto" src="{{ asset(config('app.theme').'/img/form_fail.png') }}">
<p class="text-red mt-3 mb-2">Oups ! Une erreur s'est produite...</p>
<p>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.</p>
</div>
@endif
@else
@if ($errors->any())
<div>
<ul class="list-group">
@foreach ($errors->all() as $error)
<li class="list-group-item bg-transparent text-red border-0 text-center">{{ $error }}</li>
@endforeach
</ul>
</div>
@endif
<div class="row">
<div class="col d-flex justify-content-center align-items-center text-center p-0">
<input class="w-50 form-control rounded-4 border-dark"
type="text"
name="last_name"
placeholder="Nom*"
value="{{ old('last_name') }}" required/>
<input class="w-50 form-control rounded-4 border-dark"
type="text"
name="first_name"
placeholder="Prénom*"
value="{{ old('first_name') }}" required/>
</div>
</div>
<div class="row mt-2">
<input class="w-100 form-control rounded-4 border-dark"
name="email"
type="email"
placeholder="Votre adresse email *"
autocomplete="email"
pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}$"
value="{{ old('email') }}" required>
</div>
<div class="row mt-2">
<input class="w-100 form-control rounded-4 border-dark"
name="subject"
type="text"
placeholder="Objet du message*"
autocomplete="email"
value="{{ old('subject') }}" required>
</div>
<div class="row mt-2">
<input class="w-100 form-control rounded-4 border-dark"
type="number"
name="order_ref"
id="order_ref"
autocomplete="tel"
placeholder="Numéro de commande"
pattern="^[0-9]$"
value="{{ old('order_ref') }}">
</div>
<div class="row mt-2">
<textarea class="w-100 form-control rounded-4 border-dark"
rows="3"
name="message"
placeholder="Message*" required>{{ old('message') }}</textarea>
</div>
<div class="row mt-2">
<div class="fst-italic text-center">Pièce jointe (.pdf, .jpeg, .png, 5Mo max)</div>
<input class="w-100 form-control rounded-4 border-dark" id="file" name="file" type="file" accept=".jpg,.jpeg,.png,.gif,.pdf">
</div>
<div class="form-check d-flex flex-row justify-content-center align-items-center rounded-2 px-3 py-2 p-lg-0 mt-2 mb-0">
<input class="form-check-input m-0" type="checkbox" name="ok_cgv" role="button" id="ok_cgv">
<label class="w-75 form-check-label ps-2" role="button" for="ok_cgv">
J'ai lu et accepte les <a href="{{ route('legal-notice') }}" target="_cgv">conditions générales</a> et la <a href="{{ route('privacy') }}" target="_cgv">politique de gestion des données personnelles</a>.
</label>
</div>
<div class="my-2">* {{ __('mandatory_fields') }}</div>
<div class="row">
<div class="text-center">
<button class="btn btn-product rounded-4">Envoyer</button>
</div>
</div>
@endif
</form>
</div>
</main>
@endsection

View file

@ -0,0 +1,160 @@
@extends('layouts.layout')
@section('title', __('Mon Compte'))
@section('description', 'Informations concernant votre compte personnel.')
@section('content')
<main class="auth-login container d-flex justify-content-center align-items-center">
<div class="row">
<div class="col my-5">
@if ($errors->any())
<div>
<ul class="list-group">
@foreach ($errors->all() as $error)
<li class="list-group-item bg-transparent text-red border-0 text-center">{{ $error }}</li>
@endforeach
</ul>
</div>
@elseif (session('success'))
<div class="text-green">
{{ session('success') }}
</div>
@endif
<h2 class="title-medium font-Barlow-extra-bold text-uppercase text-white text-center">Mon compte</h2>
<div class="row">
<div class="col d-flex justify-content-center align-items-end text-center p-0">
<div class="row">
<a href="{{ route('account.my-orders') }}">
<span class="header-actions__item-icon icon">@include('icons.orders')</span>
<button class="btn btn-product rounded-4">Mes commandes</button>
</a>
</div>
<div class="row">
<a href="{{ route('auth.deconnexion') }}">
<span class="header-actions__item-icon icon">@include('icons.close')</span>
<button class="btn btn-product rounded-4">Se déconnecter</button>
</a>
</div>
</div>
</div>
<h2 class="title-medium font-Barlow-extra-bold text-uppercase text-white text-center mt-2">Mes coordonnées</h2>
<p class="text-center m-0">Pour modifier vos informations personnelles,</p>
<p class="text-center">il vous suffit de renseigner vos nouvelles données dans le formulaire ci-dessous :</p>
<form action="{{ route('account.update-infos') }}" method="POST" class="mx-auto">
@csrf
<div class="row">
<div class="col d-flex justify-content-center align-items-center text-center p-0">
<input class="w-50 form-control rounded-4 border-dark"
type="text"
name="lastname"
placeholder="Nom*"
value="{{ old('lastname', $crmInfos->lastname) }}" required/>
<input class="w-50 form-control rounded-4 border-dark"
type="text"
name="firstname"
placeholder="Prénom*"
value="{{ old('firstname', $crmInfos->firstname) }}" required/>
</div>
</div>
<div class="row mt-2">
<div class="col d-flex justify-content-center align-items-center text-center p-0">
<p class="w-50 m-0">Date de naissance *</p>
<span class="w-50 row">
<select name="day" class="form-control text-center rounded-4 border-dark">
@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-control text-center rounded-4 border-dark">
@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-control text-center rounded-4 border-dark">
@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="row mt-2">
<input class="w-100 form-control rounded-4 border-dark"
name="email"
type="email"
placeholder="Votre adresse email *"
autocomplete="email"
pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}$"
value="{{ old('email', $customer->email) }}" disabled>
</div>
<div class="row mt-2">
<div class="col d-flex justify-content-center align-items-center text-center p-0">
<input class="w-50 form-control rounded-4 border-dark"
type="text"
name="address"
placeholder="Adresse postale*"
autocomplete="street-address"
value="{{ old('address', $crmInfos->address) }}" required/>
<input class="w-50 form-control rounded-4 border-dark"
type="number"
name="postcode"
placeholder="Code postale*"
autocomplete="postal-code"
value="{{ old('postcode', $crmInfos->postcode) }}" required/>
</div>
</div>
<div class="row mt-2">
<div class="col d-flex justify-content-center align-items-center text-center p-0">
<input class="w-50 form-control rounded-4 border-dark"
type="text"
name="city"
placeholder="Ville*"
autocomplete="city"
value="{{ old('city', $crmInfos->city) }}" required/>
<input class="w-50 form-control rounded-4 border-dark"
type="number"
name="phone"
placeholder="Téléphone*"
autocomplete="phone"
value="{{ old('phone', $crmInfos->phone) }}"/>
</div>
</div>
<div class="form-check d-flex flex-row justify-content-center align-items-center rounded-2 px-3 py-2 p-lg-0 mt-2 mb-0">
<input class="form-check-input m-0" type="checkbox" name="optin" role="button" id="optin" @if(old('optin', $crmInfos->opt_in))checked @endif>
<label class="w-75 form-check-label ps-2" role="button" for="optin">
J'accepte de recevoir les actualités et bons plans {{ Config::get('theme.site_name') }}.
</label>
</div>
<div class="row mt-2">
<div class="col d-flex justify-content-center align-items-center text-center">
<button class="btn btn-product rounded-4">Enregistrer</button>
</div>
</div>
</form>
<h2 class="title-medium font-Barlow-extra-bold text-uppercase text-white text-center mt-2">Mot de passe</h2>
<form method="post" action="{{ route('account.change-password') }}" class="mx-auto">
@csrf
<div class="row">
<div class="col d-flex justify-content-center align-items-center text-center p-0">
<input class="w-50 form-control rounded-4 border-dark"
type="password"
name="password"
placeholder="Nouveau mot de passe"
value="{{ old('password') }}" required/>
<input class="w-50 form-control rounded-4 border-dark"
type="password"
name="password_confirmation"
placeholder="Confirmer le nouveau mot de passe"
value="{{ old('password_confirmation') }}" required/>
</div>
</div>
<div class="row mt-2">
<div class="col d-flex justify-content-center align-items-center text-center">
<button class="btn btn-product rounded-4">Modifier</button>
</div>
</div>
</form>
</div>
</div>
</main>
@endsection

View file

@ -0,0 +1,40 @@
@extends('layouts.layout')
@section('title', __('Mes Commandes'))
@section('description', 'Récapitulatif de vos 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">
@if(count($orders) > 0)
<!--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>
<!--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>
@endforeach
@else
<p>Vous n'avez aucunes commandes</p>
@endif
</div>
</div>
</div>
</div>
@endsection

View file

@ -0,0 +1,45 @@
@extends('layouts.layout',['brParam' => $order->reference])
@section('title', __('Détail Commande'))
@section('description', 'Informations concernant une commande spécifique.')
@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 " href="#">Voir l'itinéraire</a>--}}
</div>
</div>
</div>
</div>
@endsection

View file

@ -0,0 +1,30 @@
@extends('layouts.layout')
@section('title', __('FAQ'))
@section('description', 'Foire aux questions fréquemment posées.')
@section('content')
<main class="auth-login container d-flex justify-content-center align-items-start">
<div class="row w-100">
<div class="col my-5">
<h1 class="title-medium font-Barlow-extra-bold text-uppercase text-white text-center">{{ $content->value }}</h1>
@if ($content !== null)
@foreach ($faq as $key => $f)
<div class="row mt-2">
<div class="col">
<button class="btn btn-product title-small rounded-4 text-dark"
type="button" data-bs-toggle="collapse" data-bs-target="#faqNumber{{ $key }}" aria-expanded="false"
aria-controls="faqNumber{{ $key }}">
<div class="d-flex flex-row justify-content-center align-items-center">{{ $f->question }}</div>
</button>
<div id="faqNumber{{ $key }}" class="collapse">
<p class="m-0 p-3 pt-2">{{ $f->answer }}</p>
</div>
</div>
</div>
@endforeach
@endif
</div>
</div>
</main>
@endsection

File diff suppressed because it is too large Load diff

After

Width:  |  Height:  |  Size: 394 KiB

File diff suppressed because it is too large Load diff

After

Width:  |  Height:  |  Size: 369 KiB

File diff suppressed because it is too large Load diff

After

Width:  |  Height:  |  Size: 230 KiB

File diff suppressed because it is too large Load diff

After

Width:  |  Height:  |  Size: 250 KiB

View file

@ -0,0 +1,176 @@
@extends('layouts.layout')
@section('title', __('Accueil'))
@section('description', 'Page d\'accueil de la boutique.')
@section('content')
<!-- SLIDER -->
<article id="home-slider" class="row p-2 gx-0">
<div class="swiper-container p-0 h-100">
<div class="swiper-wrapper">
@foreach ($slides as $slide)
<a class="swiper-slide d-flex justify-content-center align-items-center text-decoration-none px-2 px-md-5" href="{{ $slide->link }}">
<h2 class="title-medium font-Barlow-extra-bold text-center text-white px-2 px-md-5">{{ $slide->title }}</h2>
<img class="px-md-5" src="{{ asset('/images/slides/' . $slide->picture) }}">
</a>
@endforeach
</div>
<div class="swiper-button-next rounded-circle d-none d-md-flex mx-4"></div>
<div class="swiper-button-prev rounded-circle d-none d-md-flex mx-4"></div>
</div>
</article>
<main class="container my-4" data-bs-spy="scroll" data-bs-target="#navbar" data-bs-smooth-scroll="true" class="vue-apps">
<!-- PROMOTIONS OU MISE EN AVANT OU SELECTION DU MOMENT -->
<article id="promotions" class="text-center">
<h2 class="title-big font-Barlow-extra-bold text-uppercase text-white">Offres</h2>
<div class="swiper-container p-0 h-100">
<div class="swiper-wrapper">
@foreach ($products as $product)
<div class="swiper-slide d-flex justify-content-center align-items-center {{-- card-activate OU card-available-soon --}}">
<div class="row rounded-4 m-2 p-3 m-0 position-relative card" role="button">
<div class="col-md-4 p-0 w-100">
<div class="position-relative w-75 w-md-100 mx-auto">
<p class="position-absolute top-50 start-50 translate-middle font-Barlow-bold title-small text-uppercase d-none">bientôt disponible</p>
<img src="{{ asset("/images/produits/" . $product->picture) }}" class="img-fluid" alt="{{$product->name}}">
</div>
<div class="card-body d-flex flex-column justify-content-center align-items-center px-3">
<h5 class="font-Barlow-bold m-2">
<a class="text-decoration-none text-dark stretched-link" href="{{ route('product', $product->slug) }}">{{$product->name}}</a>
</h5>
<p class="m-0">{!! $product->description !!}</p>
<div class="card-price d-flex justify-content-center align-items-center font-Barlow-bold m-2 mt-0 m-lg-4 mt-lg-0">
@if ($product->promotions->count())
<span class="card-price-original position-relative me-2">@fmt_currency($product->priceTtc)</span>
@endif
<span class="card-price-new @if ($product->promotions->count()) text-red @endif h3">@fmt_currency($product->discountedPriceTtc) @fmt_sellunit($product->sell_unit)</span>
</div>
@if ($product->weight_variable)
<p class="fst-italic text-muted">*Prix variable en fonction du poids</p>
@endif
<div class="card-action d-flex justify-content-center justify-content-lg-between align-items-center w-100">
<img class="card-action-nutriscore d-none d-lg-block" src="{{ asset(config('app.theme') . "/img/nutriscore/nutriscore-1.png") }}">
@can('addToCart', $product)
<basket-buttons :product-id='{{ $product->id }}'></basket-buttons>
@endcan
</div>
</div>
</div>
<div class="filtre position-absolute bottom-0 start-0 w-100 h-75 rounded-4"></div>
</div>
</div>
@endforeach
</div>
<div class="swiper-button-next rounded-2 d-none d-md-flex"></div>
<div class="swiper-button-prev rounded-2 d-none d-md-flex"></div>
</div>
<a href="{{ route('products', ['promotion' => true]) }}" class="btn btn-section font-Barlow-bold text-uppercase rounded-4 w-75">voir toutes les offres</a>
</article>
<!-- RANGES -->
<article id="rayons" class="text-center">
<h2 class="title-big font-Barlow-extra-bold text-uppercase text-white">Rayons</h2>
<div class="row row-cols-2 row-cols-lg-3 d-flex justify-content-between justify-content-md-start gx-2 gx-lg-5 m-0">
@foreach ($quickorder_ranges as $quickorder_range)
<div class="col px-2">
<div class="row rounded-4 p-3 m-0 position-relative d-flex flex-column flex-md-row justify-content-between justify-content-lg-center align-items-center w-100 h-100"
role="button">
<div class="w-50 p-0">
<img src="{{ asset('/images/gammes/' . $quickorder_range->picture) }}" class="img-fluid" alt="...">
</div>
<div class="w-100 w-md-50 px-0 m-0">
<div class="card-body h-100 d-flex flex-column justify-content-center align-items-center align-items-md-start text-center text-md-start mx-md-2">
<h5 class="font-Barlow-extra-bold">{{ $quickorder_range->name }}</h5>
{!! $quickorder_range->description !!}
<a href="{{ route('products', ['ranges[]' => $quickorder_range->id]) }}" class="btn btn-product text-white rounded-4 stretched-link">Voir le rayon</a>
</div>
</div>
<div class="filtre position-absolute bottom-0 start-0 w-100 h-75 rounded-4"></div>
</div>
</div>
@endforeach
</div>
<a href="{{ route('products') }}" class="btn btn-section font-Barlow-extra-bold text-uppercase rounded-4 w-75">voir tous les rayons</a>
</article>
<article id="services" class="text-center">
<h2 class="title-big font-Barlow-extra-bold text-uppercase text-white">Services</h2>
<div id="demarche" class="row row-cols-3 row-cols-md-5 g-4">
<div class="col">
<div class="card h-100 d-flex flex-column justify-content-center align-items-center">
<img src="{{ asset(config('app.theme') . '/img/icons/step_1.png') }}" class="card-img-top" alt="Illustration d'un 'large choix'">
<div class="card-body m-2">
<h5 class="m-0 font-Barlow-extra-bold">Sélectionner</h5>
<p class="m-0">vos produits en ligne</p>
</div>
</div>
</div>
<div class="col d-none d-md-block m-0 align-self-center">
<img src="{{ asset(config('app.theme') . '/img/icons/steps-arrow.png') }}" class="card-img-top h-100" alt="Illustration des 'économies'">
</div>
<div class="col">
<div class="card h-100 d-flex flex-column justify-content-center align-items-center">
<img src="{{ asset(config('app.theme') . '/img/icons/step_2.png') }}" class="card-img-top" alt="Illustration de 'pratique et rapide'">
<div class="card-body m-2">
<h5 class="m-0 font-Barlow-extra-bold">Choisissez</h5>
<p class="m-0">votre créneau horaire</p>
</div>
</div>
</div>
<div class="col d-none d-md-block m-0 align-self-center">
<img src="{{ asset(config('app.theme') . '/img/icons/steps-arrow.png') }}" class="card-img-top h-100"
alt="Illustration de 'fraicheur et qualité'">
</div>
<div class="col">
<div class="card h-100 d-flex flex-column justify-content-center align-items-center">
<img src="{{ asset(config('app.theme') . '/img/icons/step_3.png') }}" class="card-img-top" alt="Illustration de 'pratique et rapide'">
<div class="card-body m-2">
<h5 class="m-0 font-Barlow-extra-bold">Retirez</h5>
<p class="m-0">votre commande</p>
</div>
</div>
</div>
</div>
<!-- SERVICES -->
<div id="avantages" class="row row-cols-1 row-cols-md-4">
<div class="col p-2">
<div class="card d-flex flex-row flex-lg-column justify-content-center justify-content-lg-start align-items-center h-100">
<img src="{{ asset(config('app.theme') . "/img/eng_1.png") }}" class="card-img-top w-lg-100" alt="Illustration d'un 'large choix'">
<div class="card-body w-lg-100 m-1">
<h5 class="m-0 font-Barlow-extra-bold">Un large choix</h5>
<p class="m-0">Des produits de qualité, des préparations variées, des quantités adaptées...</p>
</div>
</div>
</div>
<div class="col p-2">
<div class="card d-flex flex-row flex-lg-column justify-content-center justify-content-lg-start align-items-center h-100">
<img src="{{ asset(config('app.theme') . "/img/eng_2.png") }}" class="card-img-top w-lg-100" alt="Illustration des 'économies'">
<div class="card-body w-lg-100 m-1">
<h5 class="m-0 font-Barlow-extra-bold">Des économies</h5>
<p class="m-0">Profitez encore plus de nos produits gourmands en achetant en direct</p>
</div>
</div>
</div>
<div class="col p-2">
<div class="card d-flex flex-row flex-lg-column justify-content-center justify-content-lg-start align-items-center h-100">
<img src="{{ asset(config('app.theme') . "/img/eng_3.png") }}" class="card-img-top w-lg-100" alt="Illustration de 'pratique et rapide'">
<div class="card-body w-lg-100 m-1">
<h5 class="m-0 font-Barlow-extra-bold">Pratique et rapide</h5>
<p class="m-0">Quoi de mieux que la commande en ligne pour gagner du temps ?</p>
</div>
</div>
</div>
<div class="col p-2">
<div class="card d-flex flex-row flex-lg-column justify-content-center justify-content-lg-start align-items-center h-100">
<img src="{{ asset(config('app.theme') . "/img/eng_4.png") }}" class="card-img-top w-lg-100" alt="Illustration de 'fraicheur et qualité'">
<div class="card-body w-lg-100 m-1">
<h5 class="m-0 font-Barlow-extra-bold">Fraicheur & Qualité</h5>
<p class="m-0">Votre commande est préparée avec soin, dans le plus grand respect de la chaîne du froid</p>
</div>
</div>
</div>
</div>
</article>
</main>
@endsection

View 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

View 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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View 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

View 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

View 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

View 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

View 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

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 400 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 127 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 272 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1,015 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 272 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Some files were not shown because too many files have changed in this diff Show more