@extends('shop::layouts.master') @inject ('reviewHelper', 'Webkul\Product\Helpers\Review') @inject ('customHelper', 'Webkul\Velocity\Helpers\Helper') @inject ('productImageHelper', 'Webkul\Product\Helpers\ProductImage') @php $total = $reviewHelper->getTotalReviews($product); $avgRatings = $reviewHelper->getAverageRating($product); $avgStarRating = ceil($avgRatings); $productImages = []; $images = $productImageHelper->getGalleryImages($product); foreach ($images as $key => $image) { array_push($productImages, $image['medium_image_url']); } @endphp @section('page_title') {{ trim($product->meta_title) != "" ? $product->meta_title : $product->name }} @stop @section('seo') meta_description : str_limit(strip_tags($product->description), 120, '') }}"/> @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)
{{ __('shop::app.reviews.ratingreviews', [ 'rating' => $avgRatings, 'review' => $total]) }}
@endif @include ('shop::products.view.stock', ['product' => $product])
@include ('shop::products.price', ['product' => $product])
@include ('shop::products.add-to-cart', [ 'form' => false, 'product' => $product, 'showCompare' => true, 'showCartIcon' => false, ])
{!! view_render_event('bagisto.shop.products.view.short_description.before', ['product' => $product]) !!} @if ($product->short_description)

{{ __('velocity::app.products.short-description') }}

{!! $product->short_description !!}
@endif {!! view_render_event('bagisto.shop.products.view.short_description.after', ['product' => $product]) !!} {!! 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.configurable-options') @include ('shop::products.view.downloadable') @include ('shop::products.view.grouped-products') @include ('shop::products.view.bundle-options') @include ('shop::products.view.attributes', [ 'active' => true ]) {{-- product long description --}} @include ('shop::products.view.description') {{-- reviews count --}} @include ('shop::products.view.reviews', ['accordian' => true])
@if( isset($velocityMetaData['product_view_images']) && $velocityMetaData['product_view_images'] ) @foreach (json_decode($velocityMetaData['product_view_images'], true) as $image) @if ($image && $image !== '') @endif @endforeach @endif
{!! view_render_event('bagisto.shop.products.view.after', ['product' => $product]) !!} @endsection @push('scripts') @endpush