Homepage Manager

Homepage Manager

Atur produk & kategori yang tampil di section homepage. Section kosong otomatis pakai mode otomatis.

@foreach ($sections as $sectionKey => $section) @php $meta = $section['meta']; $highlights = $section['highlights']; $count = $section['count']; $isCategory = $meta['type'] === \Beres\Highlight\Models\HomepageHighlight::TYPE_CATEGORY; @endphp
{{-- Header --}}

{{ $meta['label'] }}

{{ $meta['description'] }}

{{ $count }}{{ $meta['limit'] !== null ? '/'.$meta['limit'] : '' }} @if ($count === 0) · Auto @endif
{{-- Pinned items list --}}
@forelse ($highlights as $hl) @php $entity = $hl->entity; $name = $entity?->name ?? '(entitas tidak ditemukan)'; $sub = $entity?->sku ?? $entity?->slug ?? ''; @endphp

{{ $name }}

@if ($sub)

{{ $sub }}

@endif
@empty
Belum ada item dipin — section ini berjalan otomatis.
@endforelse
{{-- Search & add --}} @if ($meta['limit'] === null || $count < $meta['limit'])
@else
Section penuh — hapus item untuk menambah baru.
@endif
@endforeach
{{-- ==================================================================== GT-Strings Container Visually hidden but present in DOM so Google Translate scans & translates these on its pass. JS reads them back via t(key) so dynamically inserted text (flash messages, dynamic rows) is also translated in the active language. ==================================================================== --}} @push('scripts') @endpush