{{-- One block in the page editor. Expects $index (a number, or __BLOCK__ inside a template), $type, $data and $mediaPreviews. --}} @php $definition = \App\Services\Content\BlockDefinitions::get($type) ?? ['label' => $type, 'icon' => 'layout-dashboard', 'hint' => '', 'fields' => []]; $data = is_array($data) ? $data : []; $prefix = 'blocks['.$index.'][data]'; @endphp
{{ $definition['hint'] }}
@endif