@php
$existing = $items->first();
$langId = $existing ? ($translations[$existing->idspotlight]->firstWhere('locale', 'id') ?? null) : null;
$langEn = $existing ? ($translations[$existing->idspotlight]->firstWhere('locale', 'en') ?? null) : null;
@endphp
@if (!$existing)
Belum ada data Produk Spotlight. Klik Edit untuk mengisi.
@else
@if ($existing->gambar)
 }})
@else
Belum ada gambar
@endif
Judul (ID)
{{ $langId->judul ?? '-' }}
Judul (EN)
{{ $langEn->judul ?? '-' }}
Deskripsi (ID)
{!! $langId->deskripsi ?? '-' !!}
Deskripsi (EN)
{!! $langEn->deskripsi ?? '-' !!}
Tombol
{{ $langId->cta_text ?? '-' }}
{{ $existing->cta_link ?? '-' }}
{{ !empty($existing->is_new_tab) ? 'Tab Baru (_blank)' : 'Tab Sama (_self)' }}
@endif