@foreach($photo as $pto)
@endforeach
{{$product->name}}
Out of Stock
{{ number_format(\App\Models\ProductVariation::where('product_id',$product->id)->get()[0]->price,0) }} MMK
({{\App\Models\ProductVariation::where('product_id',$product->id)->get()[0]->discount ?? 0 }} % OFF)
Category | {{ $product->Category->name ?? '' }} |
Brand | {{ $product->Brand->name ?? '' }} |
Sub Category | {{ $product->SubCategory->name ?? '' }} |
Type | {{ $product->Type->name ?? '' }} |
Size
{{ number_format($variation[0]->price) }} MMK
{{ number_format($variation[0]->discount_price) }} MMK
{{-- add to cart--}}
@else
@endif
@if($discount)
{{ $discount->name}}
{{ $discount->discount }} % DISCOUNT
@endif
--}}
{{--
--}}
--}}
{{-- --}}
{{--
--}}
{{-- --}}
{{--
--}}
{{-- --}}
{{--
--}}
{{-- {{$product->name}}
--}} {{--{{$product->detail}}
--}} {{--You May Also Like
@foreach($relatedProducts as $p)
@if($p->stock <1)
Out Of Stock
@endif
@endforeach
{{$p->name ?? ''}}
{{number_format($p->variations[0]['price'],0)}} MMK
@if($p->variations[0]['discount'] != 0)
{{number_format($p->variations[0]['discount_price'],0)}} MMK
({{ $p->variations[0]['size'] }})
@endif
{{-- --}}
@php
$photos=\App\Models\ProductPhoto::where('product_id',$p->id)->get()->take(3);
@endphp
@foreach($photos as $index=>$pto)
name}}')>
@endforeach