diff --git a/Gruntfile.js b/Gruntfile.js index 7338c92c..c75dee75 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -17,6 +17,7 @@ var jsCompat = [ var jsSite = [ jsBase, jsBootstrap, + 'node_modules/currency.js/dist/currency.min.js', 'build/js/site.js', ] @@ -437,6 +438,12 @@ module.exports = function(grunt) { src: ['**'], dest: 'public/assets/plugins/moment', }, + { + expand: true, + cwd: 'node_modules/currency.js/dist/', + src: ['**'], + dest: 'public/assets/plugins/currency', + }, { expand: true, cwd: 'node_modules/bootstrap-fileinput/css/', diff --git a/package.json b/package.json index 65f47053..4a8c3ed9 100644 --- a/package.json +++ b/package.json @@ -47,6 +47,7 @@ "bootstrap4-duallistbox": "^4.0.2", "bootstrap4-toggle": "^3.6.1", "chart.js": "^3.3.2", + "currency.js": "^2.0.4", "datatables.net-bs4": "1.10.18", "datatables.net-buttons-bs4": "^1.7.1", "datatables.net-colreorder-bs4": "^1.5.4", diff --git a/resources/views/Shop/Baskets/basket.blade.php b/resources/views/Shop/Baskets/basket.blade.php index 9fd6ef34..39d9d232 100644 --- a/resources/views/Shop/Baskets/basket.blade.php +++ b/resources/views/Shop/Baskets/basket.blade.php @@ -23,12 +23,44 @@ @foreach ($items as $item) @include('Shop.Baskets.partials.article') @endforeach + @endforeach
@component('components.card') - Tarif appliqué : +
+
+ Tarif appliqué +
+
+
+
+
+
+ ARTICLES +
+
+ € +
+
+
+
+ LIVRAISON +
+
+ 5 € +
+
+
+
+
+ TOTAL TTC +
+
+ € +
+
@endcomponent
@@ -37,13 +69,61 @@ @push('js') @endpush \ No newline at end of file diff --git a/resources/views/Shop/Baskets/partials/article.blade.php b/resources/views/Shop/Baskets/partials/article.blade.php index 71a31188..120df632 100644 --- a/resources/views/Shop/Baskets/partials/article.blade.php +++ b/resources/views/Shop/Baskets/partials/article.blade.php @@ -1,4 +1,4 @@ -
+
@@ -7,7 +7,7 @@ {{ $item['variation'] }}
- {{ $item['price'] }} € / unité + {{ $item['price'] }} € / unité
@include('components.form.inputs.number', [ @@ -17,10 +17,10 @@ ])
- {{ $item['quantity'] * $item['price'] }} € + {{ $item['quantity'] * $item['price'] }}
-
- +
+
diff --git a/resources/views/Shop/layout/partials/header-basket.blade.php b/resources/views/Shop/layout/partials/header-basket.blade.php index eaf806a5..6f21b62f 100644 --- a/resources/views/Shop/layout/partials/header-basket.blade.php +++ b/resources/views/Shop/layout/partials/header-basket.blade.php @@ -1,13 +1,15 @@
-
+
-
+
- + + +
\ No newline at end of file