@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
@if (isset($option['type'])) @if ($option['type'] !== 'hidden') @endif @else @endif @include('view.form.form', $option) @if ($errors->has($item['name'])) {{$errors->first($item['name'])}} @endif
@endforeach @if (count($editor) > 0) @section('dropzone') @endsection @section('scripts') @endsection @endif