$(document).on("click", "#open-configurator", function () {
$(this).hide()
+ $("#pre-info").hide()
$("#product-price-container, #features-quotes").removeClass("hidden")
})
@auth('web-clients')
@if($options)
+ <div id="pre-info" class="mb-6">
+ <div class="opt-ref text-navy" v-cloak>{{ __('Référence') }} : <span ref="refProduct" data-ref="{{ $product->reference }}">@{{ ref }}</span></div>
+ <div class="opt-price text-navy">
+ @if($discount)
+ <div>
+ {{ __('Prix catalogue') }} :
+ <span class="line-through" ref="optprice" v-cloak data-default="{{ $product->basic_selling_price }}">
+ @{{ formatPrice(price) }}
+ </span>
+ {{ "€ ".__('HT') }}
+ </div>
+ <div>
+ {{ __('Votre prix') }} :
+ <span ref="discount" data-value="{{ $discount }}"></span>
+ <span v-cloak data-default="{{ $product->basic_selling_price }}">
+ @{{ formatPrice(priceDiscount) }}
+ </span>
+ {{ "€ ".__('HT') }}
+ </div>
+ @else
+ {{ __('Prix unitaire') }} :
+ <span ref="optprice" v-cloak data-default="{{ \App\Models\ECommerceCommon::formatPrice($product->basic_selling_price) }}">
+ @{{ price }}
+ </span>{{ "€ ".__('HT') }}
+ @endif
+ </div>
+ </div>
<button id="open-configurator" class="btn">
Configurer le produit
</button>