@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 {{ $product->name }} @if(!empty($product->cut_price)) ${{ $product->cut_price }} @endif ${{ $product->price }} Availability: {{ $product->stock }} @if(!empty($product->tags)) Tags: {{ $product->tags }} @endif 1 2 3 4 5 red green balck @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 {{ $relatedproduct->name }} @if(!empty($relatedproduct->cut_price)) ${{ $relatedproduct->cut_price }} @endif ${{ $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