@php $items = $data['items'] ?? []; @endphp
@forelse($items as $i => $item)
@include('v2-homepage::lse.forms._item-card', [
'containerId' => 'news-items-container',
'item' => $item,
'index' => $i,
'groupKey' => 'items',
'inputIdBase' => 'news-item',
'fields' => [
['type' => 'text', 'name' => 'title', 'label' => 'Título', 'size' => 4, 'placeholder' => 'Título', 'required' => true],
['type' => 'text', 'name' => 'excerpt', 'label' => 'Resumo', 'size' => 4, 'placeholder' => 'Resumo', 'maxlength' => 1000],
['type' => 'text', 'name' => 'date', 'label' => 'Data', 'size' => 2, 'placeholder' => 'Ex: 14 MAI'],
['type' => 'text', 'name' => 'url', 'label' => 'URL', 'size' => 2, 'placeholder' => '/noticia/...'],
['type' => 'image', 'name' => 'image_id', 'label' => 'Imagem', 'size' => 12],
],
])
@empty
Nenhuma notícia cadastrada. Clique em "Adicionar Notícia" para começar.
@endforelse