@extends('themes.smartbazar.layouts.master') @section('title', $product->meta_title ?? $product->name) @php $activeVariants = ($product->variants ?? collect())->where('status', 1)->values(); $hasVariants = $activeVariants->isNotEmpty(); $displayStock = $hasVariants ? (int) $activeVariants->sum('stock') : (int) $product->stock; $currentPrice = $product->effective_price; $hasDiscount = $product->sale_price && $product->sale_price < $product->price; $phone = trim((string) ($setting->phone ?? '')); $shareUrl = url()->current(); $phoneDial = \App\Support\BangladeshPhone::toTelUri($phone) ?: ''; $phoneWaUrl = wa_me_url($phone, 'আমি ' . $product->name . ' সম্পর্কে জানতে চাই। ' . $shareUrl); $galleryImages = collect(); if ($product->thumbnail) { $galleryImages->push((object) [ 'src' => asset($product->thumbnail), 'alt' => $product->thumbnailAlt(), ]); } foreach ($product->images as $img) { $galleryImages->push((object) [ 'src' => asset($img->image), 'alt' => $img->effectiveAlt($product->name), ]); } if ($galleryImages->isEmpty()) { $galleryImages->push((object) ['src' => '', 'alt' => $product->name]); } @endphp @push('styles') @endpush @section('content')
Brand: {{ $product->brand->name }}
@endif| Area | Delivery Charge | Times |
|---|---|---|
| {{ $row['area'] }} | @if($product->is_freeshipping) Free @else ৳{{ number_format($row['charge'], 0) }} @endif | {{ $row['time'] ?: '—' }} |
{{ $review->comment }}