@inject ('toolbarHelper', 'Webkul\Product\Helpers\Toolbar')

@php
    $showWishlist = core()->getConfigData('general.content.shop.wishlist_option') == "1" ? true : false;
@endphp


<!-- <div class="item-gallery-cart"> -->

    <form class='product-buttons-wrapper' action="{{ route('cart.add', $product->product_id) }}" method="POST">
        @csrf
        <input type="hidden" name="product_id" value="{{ $product->product_id }}">
        <input type="hidden" name="quantity" value="1">
        <button class="to-cart" {{ $product->isSaleable() ? '' : 'disabled' }}>
            <div class="to-cart-img">
                <img src="../assets/icons/icon (cart) 2.svg" alt="">
            </div>
            <span class="to-cart-text">
                {{ ($product->type == 'booking') ?  __('shop::app.products.book-now') :  __('shop::app.products.add-to-cart') }}
            </span>
        </button>
    </form>

    @if ($showWishlist)
        @include('shop::products.wishlist')
    @endif

<!-- </div> -->

               