@props(['field', 'view', 'items']) @php $base = $field['key']; $maxItems = $field['max'] ?? count($items); @endphp
{{ $field['label'] ?? ucfirst($base) }} {{ count($items) }} {{ count($items) === 1 ? 'item' : 'items' }}
@if(!empty($field['help']))
{{ $field['help'] }}
@endif
@foreach($items as $idx => $itemFields)
{{ $idx }} Item {{ $idx }}
@foreach($itemFields as $subField) @php $subKey = $subField['expanded_key']; $subName = "{$view}[{$subKey}]"; $colWidth = match($subField['type'] ?? 'text') { 'textarea', 'richtext' => 'col-12', 'boolean' => 'col-6 col-md-3', default => 'col-12 col-md-6', }; @endphp
@endforeach
@endforeach
Repeater fijo: {{ $maxItems }} items configurados en el schema. Agregar/quitar items requiere modificar el schema del demo.