}
@endphp
-@if(\App\Models\Client::getClientConnected())
- @if(isset($template) && $template === "product-detail")
- <button data-ref="{{ $reference }}" data-product-id="{{ $id }}" class="btn cart-add" :class="{ 'pointer-events-none bg-grey-disabled' : (!isNaN(price) && !statusConfig) }">
- @elseif(isset($template) && $template === "miniature" && $options)
- <a href="{{ $link }}" class="btn text-center">
- @else
- <button data-ref="{{ $reference }}" data-price="{{ $price }}" data-product-id="{{ $id }}" class="btn cart-add">
- @endif
+@if(!\App\Models\Client::getClientConnected() && $hasprice)
+ <button class="btn pointer-events-none bg-grey-disabled">
<span class="btn-text relative">
<span class="add">
{{ $btnText }}
</span>
- <span class="added top-0 left-0 w-full h-full inline-flex items-center justify-center hidden" style="top:-2px;">
- @svg('tick', 'w-4 mr-3 inline left-0') <span>{{ __('Produit ajouté') }}</span>
- </span>
</span>
- @if(isset($template) && $template === "miniature" && $options)
- </a>
- @else
</button>
- @endif
@else
- <button class="btn pointer-events-none bg-grey-disabled">
- <span class="btn-text relative">
+ @if(isset($template) && $template === "product-detail")
+ <button data-ref="{{ $reference }}" data-product-id="{{ $id }}" class="btn cart-add" :class="{ 'pointer-events-none bg-grey-disabled' : (!isNaN(price) && !statusConfig) }">
+ @elseif(isset($template) && $template === "miniature" && $options)
+ <a href="{{ $link }}" class="btn text-center">
+ @else
+ <button data-ref="{{ $reference }}" data-price="{{ $price }}" data-product-id="{{ $id }}" class="btn cart-add">
+ @endif
+ <span class="btn-text relative">
<span class="add">
{{ $btnText }}
</span>
+ <span class="added top-0 left-0 w-full h-full inline-flex items-center justify-center hidden" style="top:-2px;">
+ @svg('tick', 'w-4 mr-3 inline left-0') <span>{{ __('Produit ajouté') }}</span>
+ </span>
</span>
- </button>
+ @if(isset($template) && $template === "miniature" && $options)
+ </a>
+ @else
+ </button>
+ @endif
@endif
@endauth
@if(config('features.quote'))
- <cart-add :id="$product->id" reference="" price="" template="product-detail"></cart-add>
+ <cart-add :id="$product->id" price="" reference="" :hasprice="$product->basic_selling_price" template="product-detail"></cart-add>
<span
data-tooltip="{{__('Ajoutez un ou plusieurs produits à votre sélection, ajustez les quantités et obtenez un devis.')}}"
class="font-display text-lg inline-block align-middle rounded-full border-grey-dark border-2 h-8 w-8 text-center ml-6">?</span>