@extends('frontend.app') @php use App\Models\Information; use App\Models\BanglaText; use App\Models\Page; $aboutUs=Page::where('page','about')->first(); $termsCondition=Page::where('page','term')->first(); $info = Information::first(); $bangla_text = BanglaText::first(); $data=getProductInfo($singleProduct); @endphp @push('css') @endpush @section('content')
{{ $singleProduct->name}} image
@foreach($singleProduct->images as $im)
{{ $singleProduct->name}} image
@endforeach

{{ $singleProduct->name}}

@php $curr = $info->currency; @endphp

@if($singleProduct->after_discount >0) @php $curr = $info->currency; @endphp @if($curr == 'BDT') ৳ {{ (int)$data['old_price'] }} @elseif ($curr == 'Dollar') $ {{ $data['old_price'] }} @elseif ($curr == 'Euro') € {{ $data['old_price'] }} @elseif ($curr == 'Rupee') {{ $data['old_price'] }} @else @endif @endif @if($curr == 'BDT') ৳ {{ (int)$data['price'] }} @elseif ($curr == 'Dollar') $ {{ $data['price'] }} @elseif ($curr == 'Euro') € {{ $data['price'] }} @elseif ($curr == 'Rupee') {{ $data['price'] }} @else @endif

{{ $singleProduct->stock_quantity && $singleProduct->stock_quantity > 0 ? $singleProduct->stock_quantity : '0' }} Items left
@php $totalReviews = $singleProduct->reviews->count(); $averageRating = $totalReviews > 0 ? round($singleProduct->reviews->avg('review'), 2) : 0; @endphp {{ $totalReviews }} Reviews @for ($i = 1; $i <= 5; $i++) @if ($i <= $averageRating) @elseif ($i - 0.5 <= $averageRating) @else @endif @endfor {{ number_format($averageRating, 2) }}/5 See Reviews
@php $singleProductName = $singleProduct->name; $sku = $singleProduct->sku; $singleProductUrl = url("/product-show/{$singleProduct->id}"); $message = "Hello, I am interested in your product: {$singleProductName} - ({$sku}). Here is the link: {$singleProductUrl}"; $encodedMessage = urlencode($message); $whatsappNumber = preg_replace('/[^0-9]/', '', $info->whats_num ?? ''); @endphp

প্রোডাক্ট কোড : {{ $singleProduct->sku }}

@csrf

Brand : {{ $singleProduct->brand ? $singleProduct->brand->name : 'N/A' }}

- +
@foreach($charges as $charge) @endforeach
কুরিয়ার ডেলিভারি খরচ
{{ $charge->title }} ৳ {{ number_format($charge->amount, 0) }}
    {!! $singleProduct->feature !!}
Short Description
@if($singleProduct->video_link)
{!! $singleProduct->video_link !!}
@endif {!! $singleProduct->body !!}
({{$singleProduct->reviews->count()}}) Relative Product
    @include("frontend.products.partials.reviewList")
Start Comment Respond
Add a Review

Related Products

@foreach($products as $product)
@include('frontend.products.partials.product_section')
@endforeach
@endsection @push('js') @endpush