@extends('layouts.app') @section('title', $product->tr('name').' | '.setting_text('store.name', 'Mandano 888')) @section('description', $product->tr('short_description') ?: $product->tr('name')) @section('page', 'product') @section('content') @php // One clean list of gallery images: the main shot first, duplicates dropped so // the same file never appears twice in the slideshow. $gallery = collect([$product->image_url]) ->merge($product->gallery_urls) ->filter(fn ($url) => filled($url)) ->unique() ->values(); @endphp
{{ $product->category->tr('name') }}

{{ $product->tr('name') }}

{{ number_format($product->rating, 1) }} · {{ $product->reviews }} {{ __('product.reviews') }}
@php($displayCurrency = current_currency()) @php($displayPrice = product_price($product)) @php($onSale = $product->old_price !== null && $product->old_price > $displayPrice) @php($discount = $onSale ? (int) round((1 - $displayPrice / max(1, $product->old_price)) * 100) : 0)
{{ money($displayPrice) }} @if ($onSale) {{ money($product->old_price) }} -{{ $discount }}% @endif

{{ $product->tr('short_description') ?: str($product->tr('description'))->stripTags()->limit(220) }}

@foreach ($optionGroups as $group)
{{ $group['name'] }}
@foreach ($group['values'] as $value) @endforeach
@endforeach @php($attributeCodes = collect($optionGroups)->pluck('code')->all()) {{-- The plain size/colour pickers only appear when the product does not already describe that feature as a dynamic attribute, so one feature never gets two controls that could disagree. Either way the choice can be cancelled again. --}} @if ($product->sizes_list && ! in_array('size', $attributeCodes, true))
{{ __('product.size') }}
@foreach ($product->sizes_list as $index => $size) @endforeach
@endif @if ($product->colors_list && ! in_array('color', $attributeCodes, true))
{{ __('product.color') }}
@foreach ($product->colors_list as $index => $color) @endforeach
@endif
1
@if ($product->in_stock)
@csrf
@else {{ __('product.out_of_stock') }} @endif
{{ __('product.sku') }}{{ $product->sku ?: '—' }}
{{ __('product.stock') }}{{ $product->in_stock ? __('product.in_stock', ['count' => $product->stock]) : __('product.out_of_stock') }}
{{ __('product.shipping_note') }}{{ __('product.shipping_value') }}
{{ __('product.trust.authentic') }} {{ __('product.trust.returns') }} {{ __('product.trust.support') }}
@if ($product->tr('description'))
{!! nl2br(e($product->tr('description'))) !!}

{{ __('product.shipping_value') }}

{{ __('product.trust.returns') }}

@endif @if ($related->isNotEmpty())
{{ __('product.related_eyebrow') }}

{{ __('product.related') }}

@foreach ($related as $item) @include('partials.product-card', ['product' => $item]) @endforeach
@endif @include('partials.product-lightbox', ['gallery' => $gallery]) @include('partials.newsletter') @endsection