@extends('layouts.shop') @section('title', ($product->meta_title ?: $product->name).' — '.setting('site_name', 'BambooNest')) @section('meta_description', $product->meta_description ?: $product->short_description) @php $images = $product->images->isNotEmpty() ? $product->images->map(fn ($i) => ['url' => $i->url, 'alt' => $i->alt ?: $product->name])->values()->all() : [['url' => $product->image_url, 'alt' => $product->name]]; $variantsData = $product->variants->map(fn ($v) => [ 'id' => $v->id, 'name' => $v->name, 'sku' => $v->sku, 'price' => (float) ($v->price ?? $product->price), 'compare' => (float) ($v->compare_at_price ?? $product->compare_at_price ?? 0), 'stock' => (int) $v->stock, ])->values()->all(); $cfg = [ 'id' => $product->id, 'price' => (float) $product->price, 'compare' => (float) ($product->compare_at_price ?? 0), 'stock' => (int) $product->stock, 'tracked' => (bool) $product->track_inventory, 'backorder' => (bool) $product->allow_backorder, 'images' => $images, 'variants' => $variantsData, ]; @endphp @section('content')
Inclusive of all taxes (GST included)
{{ $product->short_description }}
@endif {{-- Eco Badges --}} @if(!empty($product->eco_badges))Select Option
{{ $rev->body }}
— {{ $rev->user?->name ?? 'Customer' }}