@if ($product->type != "configurable" && $product->type == "simple" && $product->totalQuantity() < 1 && $product->allow_preorder && core()->getConfigData('preorder.settings.general.enable_preorder')) @if (core()->getConfigData('preorder.settings.general.percent')) @if (core()->getConfigData('preorder.settings.general.preorder_type') == 'partial')

{{ __('preorder::app.shop.products.percent-to-pay', ['percent' => core()->getConfigData('preorder.settings.general.percent')]) }}

@endif @endif @endif @php $showCompare = core()->getConfigData('general.content.shop.compare_option') == "1" ? true : false @endphp @if ($product->type == "configurable")
{{ __('shop::app.products.add-to-cart') }} @include('shop::products.wishlist') @if ($showCompare) @include('shop::products.compare', [ 'productId' => $product->id ]) @endif
@elseif($product->type == "simple")
@csrf @if ($product->totalQuantity() < 1 && $product->allow_preorder && core()->getConfigData('preorder.settings.general.enable_preorder')) @else @endif
@include('shop::products.wishlist') @if ($showCompare) @include('shop::products.compare', [ 'productId' => $product->id ]) @endif
@else
@csrf
@include('shop::products.wishlist') @if ($showCompare) @include('shop::products.compare', [ 'productId' => $product->id ]) @endif
@endif