@extends('layouts.frontend.app') @section('style') {{ $product->name }} @endsection @section('content')
@include('layouts.frontend.header')

{{$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)
@if($product->stock>0) @endif
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
@if($product->stock>0)
{{-- 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)
Product image @if($p->stock <1) Out Of Stock @endif

{{$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 {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{-- ( 2 Reviews )--}} {{--
--}} @php $photos=\App\Models\ProductPhoto::where('product_id',$p->id)->get()->take(3); @endphp
@foreach($photos as $index=>$pto) product descname}}')> @endforeach
@endforeach
@include('layouts.frontend.footer')
@include('partials.login_modal') @endsection @section('script') @endsection