@if ($product->getTypeInstance()->isCustomizable())
@php
$options = $product->customizable_options()->with([
'product',
'customizable_option_prices',
])->get();
@endphp
@if ($options->isNotEmpty())
{!! view_render_event('bagisto.shop.products.view.customizable-options.before', ['product' => $product]) !!}
{!! view_render_event('bagisto.shop.products.view.customizable-options.after', ['product' => $product]) !!}
@pushOnce('scripts')
@endPushOnce
@endif
@endif