@php $catalog = app(\Korzilla\Modules\Site\Catalog\CatalogPage::class); $price = $catalog->resolvedPrice($object); $settings = app(\Korzilla\Core\Settings\SettingsRepository::class); $currency = $settings->string('catalog.currency_suffix', '₽'); @endphp

{{ $heading ?? $object->name }}

@if ($object->article) Артикул: {{ $object->article }} @endif @php($photo = $object->firstMedia('photo')) @if ($photo)
{{ $object->name }}
@endif @php($gallery = $object->mediaOf('gallery')) @if (count($gallery) > 0) @endif
@include('catalog::partials.price', [ 'price' => $price, 'currency' => $currency, 'none' => $settings->string('catalog.no_price_label', 'Цена по запросу'), ])
{{-- Способ покупки — свойство товара: грузовик и запчасть к нему живут в одном каталоге, но покупаются по-разному. --}}
{!! app(\Korzilla\Modules\Site\Catalog\PurchaseActions::class)->render($object) !!}
@forelse ($catalog->stocks($object) as $stock) {{ $stock->warehouse_name }}: {{ rtrim(rtrim(number_format($stock->quantity, 3, ',', ' '), '0'), ',') }} @empty {{ $object->in_stock ? 'В наличии' : 'Под заказ' }} @endforelse
@if ($object->anons)

{{ $object->anons }}

@endif
@kzhtml($object->body)
@php($attributes = $catalog->attributes($object)) @if ($attributes !== []) @foreach ($attributes as $attribute) @endforeach
{{ $attribute['name'] }} {{ $attribute['value'] }}@if ($attribute['unit']) {{ $attribute['unit'] }}@endif
@endif @php($variants = $object->variants) @if ($variants->isNotEmpty()) @endif