@extends('layouts.master') @section('page') {{$product->name}} | {{setting('site.title')}} @endsection @section('content')
@if (session()->has('success_message'))
{{ session()->get('success_message') }}
@endif @if(count($errors) > 0)
@endif
@if ($product->quantity <= 0) Out
of Stock
@endif {{$product->name}}

{{$product->name}}

@if ($product->price > 0) @if($product->on_sale)

$ {{$product->price}} $ {{$product->on_sale}}

@else

$ {{$product->price}}

@endif @endif
@if ($product->quantity <= 0)

Currently out of stock

@else

In Stock

@endif
@if (Auth::check() && $product->quantity > 0)
@if ($product->price > 0)
Add to Cart
@else @endif
@elseif(!Auth::check() && $product->quantity > 0) @if ($product->price > 0) @else @endif @endif
@php $images=json_decode($product->gallery,true); @endphp @if ($images && count($images) > 0 )
@foreach ($images as $item) @endforeach
@endif
@if ($product->description)

{!! $product->description !!}

@endif
@if($relatedProducts->count() > 0)

Related Products

@foreach ($relatedProducts as $item)
{{$item->name}}
@if ($product->on_sale)

$ {{$product->price}}

$ {{$product->on_sale}}

@else @if ($product->price > 0)

$ {{$product->price}}

@else Ask for price @endif @endif
@endforeach
@endif
@endsection @push('styles') @endpush @push('scripts') @endpush