@php Theme::layout('full-width'); Theme::set('bodyClass', 'single-product'); use Illuminate\Support\Str; @endphp {!! Theme::partial('page-header', ['size' => 'xxxl']) !!}
{!! Theme::partial('ecommerce.product-gallery', compact('product', 'productImages')) !!} {!! Theme::partial( 'ecommerce.product-cart-form', compact('product', 'selectedAttrs', 'productVariation') + [ 'withButtons' => true, // 'withVariations' => true, // 'withProductOptions' => true, 'wishlistIds' => \Theme\Farmart\Supports\Wishlist::getWishlistIds([$product->id]), 'withBuyNow' => true, ], ) !!}

{{ $product->name }}

{!! Theme::partial('ecommerce.product-price', compact('product'))!!} {!! Theme::partial('ecommerce.product-availability', compact('product', 'productVariation')) !!}
@if (is_plugin_active('marketplace') && $product->store_id)
{{ __('Sold By') }}: {{ $product->store->name }}
@endif {{-- {!! Theme::partial('ecommerce.product-availability', compact('product', 'productVariation')) !!} --}} @if (Botble\Ecommerce\Facades\FlashSale::isEnabled() && ($flashSale = $product->latestFlashSales()->first()))
{{ __('Hurry up! Sale end in') }}
@endif
{{-- @if (is_plugin_active('marketplace') && $product->store_id)
{{ __('Sold By') }}: {{ $product->store->name }}
@endif @if (Botble\Ecommerce\Facades\FlashSale::isEnabled() && ($flashSale = $product->latestFlashSales()->first()))
{{ __('Hurry up! Sale end in') }}
--}} {{--
@if (Botble\Ecommerce\Facades\FlashSale::isShowSaleCountLeft())
{{ __('Sold') }}: {{ $flashSale->sale_count_left_label }}
@endif
--}} {{--
@endif --}} {!! Theme::partial( 'ecommerce.product-cart-form', compact('product', 'selectedAttrs', 'productVariation') + [ 'withButtons' => false, 'withVariations' => true, 'withProductOptions' => true, 'wishlistIds' => \Theme\Farmart\Supports\Wishlist::getWishlistIds([$product->id]), 'withBuyNow' => false, ], ) !!} {{--
{{ __('SKU') }}: {{ $product->sku }}
--}} @if ($product->categories->isNotEmpty()) {{--
{{ __('Categories') }}: @foreach ($product->categories as $category) {{ $category->name }}@if (!$loop->last),@endif @endforeach
--}} @php // dd($product); $url = url($product->url); // dd($url); $message = "Check out this product: " . $url; @endphp
{{ __('Share') }}: Copy Product Link
{{-- --}}
@endif @if ($product->tags->isNotEmpty())
{{ __('Tags') }}: @foreach ($product->tags as $tag) {{ $tag->name }}@if (!$loop->last),@endif @endforeach
@endif @if (theme_option('social_share_enabled', 'yes') == 'yes')
{!! Theme::partial('share-socials', compact('product')) !!}
@endif
{!! apply_filters('ecommerce_before_product_description', null, $product) !!} {!! BaseHelper::clean($product->description) !!} {!! apply_filters('ecommerce_after_product_description', null, $product) !!}
{{--
{!! dynamic_sidebar('product_detail_sidebar') !!}
--}}
{!! BaseHelper::clean($product->content) !!}
{!! apply_filters(BASE_FILTER_PUBLIC_COMMENT_AREA, null, $product) !!}
@if (EcommerceHelper::isReviewEnabled())
@include('plugins/ecommerce::themes.includes.reviews')
@endif {{-- @if (is_plugin_active('marketplace') && $product->store_id)
@include(Theme::getThemeNamespace() . '::views.marketplace.includes.info-box', [ 'store' => $product->store, ])
@endif --}} @if (is_plugin_active('faq') && count($product->faq_items) > 0)
@include('plugins/ecommerce::themes.includes.product-faqs', ['faqs' => $product->faq_items])
@endif
@if (($relatedProducts = get_related_products($product, 6)) && $relatedProducts->isNotEmpty())

{{ __('Related products') }}

@endif
{{--
--}}
@if (EcommerceHelper::isCartEnabled()) @if (EcommerceHelper::isQuickBuyButtonEnabled()) @endif @endif