@php $buttons = $data['buttons'] ?? [[]]; @endphp @foreach($buttons as $index => $button)
{!! Form::text("parameters[buttons][$index][text]", $button['text'] ?? '', ['class' => 'form-control', 'id' => "buttons-text-$index", 'required' => 'required', 'aria-required' => 'true', 'placeholder' => 'Ex: Acessar Portal']) !!}
{!! Form::text("parameters[buttons][$index][link]", $button['link'] ?? '', ['class' => 'form-control', 'id' => "buttons-link-$index", 'required' => 'required', 'aria-required' => 'true', 'placeholder' => 'Ex: /noticias ou https://...']) !!}
{!! Form::text("parameters[buttons][$index][bg_color]", $button['bg_color'] ?? '#ed1c24', ['class' => 'form-control color-hex', 'id' => "btn-bg-color-hex-$index", 'placeholder' => 'Ex: #ed1c24']) !!}
{!! Form::text("parameters[buttons][$index][text_color]", $button['text_color'] ?? '#ffffff', ['class' => 'form-control color-hex', 'id' => "btn-text-color-hex-$index", 'placeholder' => 'Ex: #ffffff']) !!}
@endforeach