@php $editor = []; @endphp @foreach ($form as $item) @php $option = []; $option = $item; if($option['form'] == 'editor'){ $editor[]['name'] = $item['name'].'editor'; } if (isset($item['asset'])){ $option['asset'] = $item['asset']; } if (isset($item['data'])){ $option['dataselect'] = $item['data']; } if (isset($item['placeholder'])){ $option['placeholder'] = ucwords($item['placeholder']); } @endphp