@endif
@endif
@if ($showLabel && $options['label'] !== FALSE && $options['label_show'])
{!! Form::customLabel($name, $options['label'], $options['label_attr']) !!}
@endif
@php
if ($options['image'] && isset($options['attr']['required'])) {
unset($options['attr']['required']);
foreach ($options['rules'] as $key => $rule) {
if ($rule === 'required') {
unset($options['rules'][$key]);
}
}
}
@endphp
{!! Form::input('file', $name, null, array_merge($options['attr'], ['accept' => $options['accept'], 'class' => 'file-upload'])) !!}
{{-- {!! Form::input('text', $name.'-alt', optional($options['image'])->getCustomProperty('alt')) !!} --}}
@include('admin::components.form-builder.help_block')
@include('admin::components.form-builder.errors')
@if($showLabel && $showField)
@if($options['wrapper'] !== FALSE)
@endif
@endif
@php
$name = str_replace(']','', str_replace('[','',$name));
@endphp
@push('scripts-footer')
@endpush