From eca6888672d103f10be905ec1d8f1f3721b0a7b8 Mon Sep 17 00:00:00 2001 From: soufiane Date: Thu, 31 Aug 2023 17:01:43 +0200 Subject: [PATCH] wait #6231 @0:10 --- resources/js/app.js | 5 + .../views/pages/product-detail.blade.php | 131 ++++++++++-------- 2 files changed, 75 insertions(+), 61 deletions(-) diff --git a/resources/js/app.js b/resources/js/app.js index 5fe35ec..83e080f 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -733,3 +733,8 @@ $(document).on('click', 'button.cart-add', function () { }, 2000) }); +$(document).on("click", "#open-configurator", function() { + $(this).hide() + $("#product-price-container, #features-quotes").removeClass("hidden") +}) + diff --git a/resources/views/pages/product-detail.blade.php b/resources/views/pages/product-detail.blade.php index 28530ec..da21190 100644 --- a/resources/views/pages/product-detail.blade.php +++ b/resources/views/pages/product-detail.blade.php @@ -59,75 +59,84 @@ @endguest @auth('web-clients') - @if($product->basic_selling_price) - @if($specs) -
-
- @foreach($specs as $spec) - @php - $containEmptyOption = array_filter($spec['options'], function($n) { - return empty($n['name_fr']); - }); - @endphp - @if(sizeof($containEmptyOption) < 1 ) -
- -
- + @if($options) + + @endif +
+ @if($product->basic_selling_price) + @if($specs) +
+
+ @foreach($specs as $spec) + @php + $containEmptyOption = array_filter($spec['options'], function($n) { + return empty($n['name_fr']); + }); + @endphp + @if(sizeof($containEmptyOption) < 1 ) +
+ +
+ +
+ @endif + @endforeach +
+
+ @endif +
+
{{ __('Référence') }} : @{{ ref }}
+
+ @if($discount) +
+ {{ __('Prix catalogue') }} : + @{{ price }}{{ "€ ".__('HT') }}
- @endif - @endforeach +
+ {{ __('Votre prix') }} : + + @{{ priceDiscount }}{{ "€ ".__('HT') }} +
+ @else + {{ __('Prix unitaire') }} : + @{{ price }}{{ "€ ".__('HT') }} + @endif +
+ @if($options) +
{{ __('Statut') }} : + + @{{ statusText }} +
-
- @endif -
-
{{ __('Référence') }} : @{{ ref }}
-
- @if($discount) -
- {{ __('Prix catalogue') }} : - @{{ price }}{{ "€ ".__('HT') }} -
-
- {{ __('Votre prix') }} : - - @{{ priceDiscount }}{{ "€ ".__('HT') }} -
- @else - {{ __('Prix unitaire') }} : - @{{ price }}{{ "€ ".__('HT') }} @endif +
- @if($options) -
{{ __('Statut') }} : - - @{{ statusText }} - -
- @endif - -
- @endif + @endif +
@endauth @if(config('features.quote')) - - ? +
+ + ? +
@endif @isset($product->time_limit) -- 2.39.5