@extends('shop::layouts.master') @inject ('reviewHelper', 'Webkul\Product\Helpers\Review') @inject ('customHelper', 'Webkul\Velocity\Helpers\Helper') @section('page_title') {{ trim($product->meta_title) != "" ? $product->meta_title : $product->name }} @stop @section('seo') meta_description : \Illuminate\Support\Str::limit(strip_tags($product->description), 120, '') }}"/> @if (core()->getConfigData('catalog.rich_snippets.products.enable')) @endif @php $images = product_image()->getGalleryImages($product); $productImages = []; foreach ($images as $key => $image) { array_push($productImages, $image['medium_image_url']); } $productBaseImage = product_image()->getProductBaseImage($product, $images); @endphp @stop @push('css') @endpush @section('full-content-wrapper') {!! view_render_event('bagisto.shop.products.view.before', ['product' => $product]) !!}
@csrf()
{{-- product-gallery --}}
@include ('shop::products.view.gallery')
{{-- right-section --}}
{{-- product-info-section --}}

{{ $product->name }}

@if ($total = $reviewHelper->getTotalReviews($product))
{{ __('shop::app.reviews.ratingreviews', [ 'rating' => round($reviewHelper->getAverageRating($product)), 'review' => $total]) }}
@endif @include ('shop::products.view.stock', ['product' => $product])
@include ('shop::products.price', ['product' => $product]) @if ( Webkul\Tax\Helpers\Tax::isTaxInclusive() && $product->getTypeInstance()->getTaxCategory() ) {{ __('velocity::app.products.tax-inclusive') }} @endif
@if (count($offers = $product->getTypeInstance()->getCustomerGroupPricingOffers()) > 0)
@foreach ($offers as $offer) {{ $offer }}
@endforeach
@endif @include ('shop::products.view.configurable-options') {!! view_render_event('bagisto.shop.products.view.quantity.before', ['product' => $product]) !!} @if ($product->getTypeInstance()->showQuantityBox())
@else @endif {!! view_render_event('bagisto.shop.products.view.quantity.after', ['product' => $product]) !!} @include ('shop::products.view.downloadable') @include ('shop::products.view.grouped-products') @include ('shop::products.view.bundle-options')
@if (core()->getConfigData('catalog.products.storefront.buy_now_button_display')) @include ('shop::products.buy-now', [ 'product' => $product, ]) @endif @include ('shop::products.add-to-cart', [ 'form' => false, 'product' => $product, 'showCartIcon' => false, 'showCompare' => (bool) core()->getConfigData('general.content.shop.compare_option'), ])
@include ('shop::products.view.short-description') @include ('shop::products.view.attributes', [ 'active' => true ]) {{-- product long description --}} @include ('shop::products.view.description') {{-- reviews count --}} @include ('shop::products.view.reviews', ['accordian' => true])
{!! view_render_event('bagisto.shop.products.view.after', ['product' => $product]) !!} @endsection @push('scripts') @endpush