@php Theme::set('bodyClass', 'single-product'); $layout = MetaBox::getMetaData($product, 'layout', true); if (!$layout) { $layout = theme_option('product_single_layout'); } $layout = ($layout && in_array($layout, array_keys(get_product_single_layouts()))) ? $layout : 'product-right-sidebar'; Theme::layout($layout); Theme::asset()->container('footer')->usePath()->add('slick-js', 'js/plugins/slick.js', ['jquery']); Theme::asset()->usePath()->add('magnific-popup-css', 'css/plugins/magnific-popup.css'); Theme::asset()->container('footer')->usePath()->add('magnific-popup-js', 'js/plugins/magnific-popup.js', ['jquery']); Theme::asset()->usePath()->add('jquery-ui-css', 'css/plugins/jquery-ui.css'); Theme::asset()->container('footer')->usePath()->add('jquery-ui-js', 'js/plugins/jquery-ui.js'); @endphp
{!! Theme::partial('social-share', ['url' => $product->url, 'description' => $product->description]) !!} {{ __('Email to a Friend') }}
@foreach ($product->productLabels as $label)
color) style="background-color: {{ $label->color }}" @endif>{{ $label->name }}
@endforeach

{{ $product->name }}

@if (EcommerceHelper::isReviewEnabled())
({{ __(':count reviews', ['count' => $product->reviews_count]) }})
@endif
{{ format_price($product->front_sale_price_with_taxes) }} front_sale_price == $product->price) style="display: none" @endif> {{ get_sale_percentage($product->price, $product->front_sale_price) }} {{ __('Off') }} front_sale_price == $product->price) style="display: none" @endif>{{ format_price($product->price_with_taxes) }}
@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) !!}
@if ($product->variations()->count() > 0)
{!! render_product_swatches($product, [ 'selected' => $selectedAttrs, 'view' => Theme::getThemeNamespace() . '::views.ecommerce.attributes.swatches-renderer' ]) !!}
@endif {!! Theme::partial('product-availability', compact('product', 'productVariation')) !!}
@csrf {!! apply_filters(ECOMMERCE_PRODUCT_DETAIL_EXTRA_HTML, null, $product) !!}
  • sku) style="display: none" @endif id="product-sku"> {{ __('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) @if (!$loop->last),@endif @endforeach
  • @endif @if ($product->brand->id)
  • {{ __('Brands') }}: {{ $product->brand->name }}
  • @endif
{!! 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 (is_plugin_active('marketplace') && $product->store_id && $product->store->id)
    @if ($product->store->full_address)
  • {{ __('Address') }} {{ __('Address') }}: {{ $product->store->full_address }}
  • @endif @if ($product->store->phone)
  • {{ __('Contact Seller') }} {{ __('Contact Seller') }}: {{ $product->store->phone }}
  • @endif
{!! BaseHelper::clean($product->store->content) !!}
@endif @if (is_plugin_active('faq') && count($product->faq_items) > 0)
@foreach($product->faq_items as $faq)

{!! BaseHelper::clean($faq[1]['value']) !!}
@endforeach
@endif @if (EcommerceHelper::isReviewEnabled())
@if ($product->reviews_count > 0) @if (count($product->review_images))
{{ __('Images from customer (:count)', ['count' => count($product->review_images)]) }}
@endif

{{ __('Customer questions & answers') }}

{{ __('Customer reviews') }}

{{ __(':avg out of 5', ['avg' => number_format($product->reviews_avg, 2)]) }}
@foreach (EcommerceHelper::getReviewsGroupedByProductId($product->id, $product->reviews_count) as $item)
{{ __(':number star', ['number' => $item['star']]) }}
{{ $item['percent'] }}%
@endforeach
@else

{{ __('No reviews!') }}

@endif
reviews_count) style="border: none" @endif>

{{ __('Add a review') }}

{!! Form::open(['route' => 'public.reviews.create', 'method' => 'post', 'class' => 'form-contact comment_form form-review-product', 'files' => true]) !!} @if (!auth('customer')->check())

{{ __('Please') }} {{ __('login') }} {{ __('to write review!') }}

@endif
@for ($i = 1; $i <= 5; $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() !!}
@endif
@php $crossSellProducts = get_cross_sale_products($product, $layout == 'product-full-width' ? 4 : 3); @endphp @if (count($crossSellProducts) > 0)

{{ __('You may also like') }}

@foreach($crossSellProducts as $crossProduct)
@include(Theme::getThemeNamespace() . '::views.ecommerce.includes.product-item', ['product' => $crossProduct])
@endforeach
@endif