@extends('website.includes.master') @section('title') Product Detail @endsection @section('content') @forelse($product->images as $p=>$image) @empty @endforelse @forelse($product->images as $p1=>$image1) @empty @endforelse @csrf {{ $product->name }} @if(!empty($product->cut_price)) {{ $setting->currency_symbol }}{{ $product->cut_price }} @endif {{ $setting->currency_symbol }}{{ $product->price }} Availability: {{ $product->stock }} @if(!empty($product->tags)) Tags: {{ $product->tags }} @endif @for($i=1;$i<=8;$i++) {{ $i }} @endfor @if(isset($product->colors) && !empty($product->colors)) @forelse($product->colors as $c=>$color) @empty @endforelse @endif @if($product->stock=="in stock") Add to cart @else {{ $product->stock }} @endif Product Details {{ $product->shortdetail }} {{-- Description--}} {!! $product->description !!} Related Products But I must explain to you how all this mistaken idea @forelse($relatedproducts as $relatedproduct) @if(!empty($relatedproduct->discount)) {{ $relatedproduct->discount }}% @endif @if($relatedproduct->stock=="in stock") @endif @if(isset(Auth::guard('websiteuser')->user()->id) && $relatedproduct->wishlist) @else @endif {{ $relatedproduct->name }} @if(!empty($relatedproduct->cut_price)) {{ $setting->currency_symbol }}{{ $relatedproduct->cut_price }} @endif {{ $setting->currency_symbol }}{{ $relatedproduct->price }} @empty No products available @endforelse @endsection
Availability: {{ $product->stock }}
Tags:
{{ $product->shortdetail }}
But I must explain to you how all this mistaken idea