@extends('frontend.layout.app') @section('content') Products/{{ $name }} Home Products @foreach($products as $product) thumbnail_img) }} class="img_center" alt="Laptop"> {{ $product->category->name }} id]) }} tabindex="0">{{$product->name }} @php $prignalprice=$product->unit_price; $descount=$product->discount; $price=$prignalprice-$descount; @endphp @php $choices = []; if($product->choice_options){ $rawChoices = json_decode($product->choice_options, true); foreach($rawChoices as $choice){ $choices[] = [ 'attribute_id' => $choice['attribute_id'], 'attribute_name' => \App\Models\Attribute::find($choice['attribute_id'])->name ?? '', 'values' => $choice['values'] ];}} @endphp Rs:{{ number_format($price,2) }} {{ number_format($product->unit_price,2) }} @endforeach @endsection @section('modal') @include('frontend.modal.addtocartmodal') @endsection @section('script') @endsection
{{ $product->category->name }}