@extends('front.layouts.app') @section('title', $product->title) @section('content')
images->isEmpty()) style="background-image: url({{url('storage/'.$product->images[0]->image_path)}})" @endif>
@if ($product->images->isNotEmpty()) @forelse($product->images as $image) @empty @endforelse @else @endif

{{ $product->title }}

{{ $product->subtitle }}


{{ $product->description }}



{{ $product->sku }}
@if ($product->price_discount)
{{ round((($product->price-$product->price_discount)/$product->price * 100)) }}%
POPUST
@endif
@if($product->price_discount) {{ $product->price }} RSD/{{ $product->unit }}
{{ $product->price_discount }} RSD/{{ $product->unit }} @else {{ $product->price }} RSD/{{ $product->unit }} @endif
@if(!$relatedProducts->isEmpty())
@endif
@endsection @push('scripts') @endpush