@php $prices = app(\Korzilla\Modules\Site\Catalog\PriceResolver::class) ->resolveMany($items->pluck('id')->all()); $currency = app(\Korzilla\Core\Settings\SettingsRepository::class)->string('catalog.currency_suffix', '₽'); @endphp {{-- Заголовок страницы здесь не печатается: его печатает сам блок. --}}
@foreach ($items as $item) @php($photo = $item->firstMedia('photo')) @php($price = $prices[$item->id] ?? null) @include('platform::partials.card-media', ['media' => $photo, 'alt' => $item->name]) {{ $item->name }} @include('catalog::partials.price', [ 'price' => $price, 'currency' => $currency, 'class' => 'kz-card__price', ]) @endforeach