@php Theme::layout('full-width'); Theme::set('bodyClass', 'single-product'); @endphp {!! Theme::partial('page-header', ['size' => 'xxxl']) !!}
{!! Theme::partial('ecommerce.product-gallery', compact('product', 'productImages')) !!}

{{ $product->name }}

{!! Theme::partial('ecommerce.product-price', compact('product')) !!} @if (is_plugin_active('marketplace') && $product->store_id)
{{ __('Sold By') }}: {{ $product->store->name }}
@endif
{!! apply_filters('ecommerce_before_product_description', null, $product) !!} {!! BaseHelper::clean($product->description) !!} {!! apply_filters('ecommerce_after_product_description', null, $product) !!}
{!! Theme::partial('ecommerce.product-availability', compact('product', 'productVariation')) !!} @if ($flashSale = $product->latestFlashSales()->first())
{{ __('Hurry up! Sale end in') }}
{{ __('Sold') }}: {{ $flashSale->pivot->sold . '/' . $flashSale->pivot->quantity }}
@endif {!! Theme::partial('ecommerce.product-cart-form', compact('product', 'selectedAttrs') + ['withButtons' => true, 'withVariations' => true, 'withProductOptions' => true, 'wishlistIds' => [], 'withBuyNow' => true]) !!}
{{ __('SKU') }}: {{ $product->sku }}
@if ($product->categories->count())
{{ __('Categories') }}: @foreach($product->categories as $category) {{ $category->name }}@if (!$loop->last), @endif @endforeach
@endif @if ($product->tags->count())
{{ __('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
{!! dynamic_sidebar('product_detail_sidebar') !!}
{!! BaseHelper::clean($product->content) !!}
@if (theme_option('facebook_comment_enabled_in_product', 'yes') == 'yes')
{!! apply_filters(BASE_FILTER_PUBLIC_COMMENT_AREA, Theme::partial('comments')) !!} @endif
@if (EcommerceHelper::isReviewEnabled())

{{ number_format($product->reviews_avg ?: 0, 2) }}

{!! Theme::partial('star-rating', ['avg' => $product->reviews_avg, 'count' => $product->reviews_count]) !!}
@foreach (EcommerceHelper::getReviewsGroupedByProductId($product->id, $product->reviews_count) as $item)
{{ __(':number Stars', ['number' => $item['star']]) }}
{{ $item['percent'] }} %
@endforeach
{{ __('Add your review') }}
{{ __('Your email address will not be published.') }} {{ __('Required fields are marked') }}
{!! Form::open([ 'route' => 'public.reviews.create', 'method' => 'POST', 'class' => 'form-review-product', 'files' => true, ]) !!}
@for ($i = 5; $i >= 1; $i--) @endfor
{{ __('Upload photos') }}
{{ __('You can upload up to :total photos, each photo maximum size is :max kilobytes', [ 'total' => EcommerceHelper::reviewMaxFileNumber(), 'max' => EcommerceHelper::reviewMaxFileSize(true), ]) }}
{!! Form::close() !!}
@if (count($product->review_images))

{{ __('Images from customer (:count)', ['count' => count($product->review_images)]) }}

@endif @if ($product->reviews_count)

{{ __(':total review(s) for ":product"', [ 'total' => $product->reviews_count, 'product' => $product->name, ]) }}

@endif
@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)
@foreach($product->faq_items as $faq)

{!! BaseHelper::clean($faq[1]['value']) !!}
@endforeach
@endif

{{ __('Related products') }}

@if (EcommerceHelper::isCartEnabled()) @if (EcommerceHelper::isQuickBuyButtonEnabled()) @endif @endif