@extends('layouts.page') @section('head') @include('elements.seo', [ 'title'=>$product->name, 'description'=> $product->sort_description ]) @endsection @section('content')

{{ $product->name }} {{-- @if($product->items->count()) {{ price($product->items->first()->pivot->price, $product->discount) }} @else {{ price($product->price, $product->discount) }} @endif --}}

@auth
@else @endauth @csrf

{!! $product->short_description !!}

@if ($product->variation && $product->items->count()) {{ $product->variation->name }} @endif
@foreach ($product->labels as $label) {{ $label->name }} @endforeach
Marca: {{ $product->brand->name }}
@if($product->related->count() )

Productos relacionados

@foreach ($product->related as $product)
{{-- --}}
{{ $product->name }}

@if ($product->discount)

{{ price($product->price, $product->discount) }} ({{ $product->discount }}%) {{ price($product->price) }}
@else
{{ price($product->price) }}
@endif

@endforeach
@endif @endsection @section('scripts') @endsection