@extends($_layout . 'master') @section('title', $page_title) @include($_lib . 'register-meta') @section('breadcrumb.show', 'breadcrumb') @php $hasPromo = $product->hasPromo(); // $reviews = $product->getReviewData(); $hasOption = $product->hasOption(); $u = $product->getViewUrl(); $user = $request->user(); add_product_schema($product); $reviewAnalytics = $product->getReviewData(); $downPercent = $product->getDownPercent(); $listPrice = $product->priceFormat('list'); $finalPrice = $product->final_price_format; @endphp @php $thumbnails = $product->getThumbnailOrderOption(); $thumbnailImages = [$product->getImage()]; if ($thumbnails) { foreach ($thumbnails as $thumbAttr) { if (is_array($attrValues = $thumbAttr->values) && count($attrValues)) { foreach ($attrValues as $attrVal) { if ($attrVal->thumbnail) { $thumbnailImages[] = $attrVal; } } } } } if ($product->gallery && count($product->gallery)) { foreach ($product->gallery as $item) { $thumbnailImages[] = $item->url; } } @endphp @section('content')
@if ($thumbnailImages)
@foreach ($thumbnailImages as $item)
{{ $product->name }}
@endforeach
@endif
@endsection