{{-- $product: Product --}} @php $primary = $product->images->firstWhere('is_primary', true) ?? $product->images->first(); [$minPrice, $maxPrice] = $product->effectivePriceRange(); $inStock = $product->isInStock(); @endphp
@if ($primary) {{ $product->name }} @else
{{ config('app.name', 'Astro Sabio') }}
@endif {{ $inStock ? t('in_stock', 'En Stock') : t('out_of_stock', 'Agotado') }}
@if ($product->category) {{ $product->category->name }} @endif

{{ $product->name }}

@if ($product->short_description)

{{ \Illuminate\Support\Str::limit($product->short_description, 90) }}

@endif
@if ($minPrice == $maxPrice) {{ number_format($minPrice, 2, ',', '.') }} {{ t('currency', '€') }} @else {{ t('from_price', 'Desde :price :curr', ['price' => number_format($minPrice, 2, ',', '.'), 'curr' => t('currency', '€')]) }} @endif
{{ t('view_product', 'Ver Producto') }}