@php
if ($list == null) {
$list = [];
}
if ($attributes == null) {
$attributes = [];
}
$wrap_class_row = $attributes['wrap_class_row'] ?? '';
@endphp
{{--
--}}
@switch($type)
@case('text')
{{ Form::bsText($name, $value, $attributes) }}
@break
@case('tagify')
{{ Form::bsText($name, $value, array_merge($attributes, ['tagify' => 'true'])) }}
@break
@case('date')
{{ Form::bsText($name, $value, array_merge($attributes, ['input_type' => 'date'])) }}
@break
@case('color')
{{ Form::bsText($name, $value, array_merge($attributes, ['input_type' => 'color'])) }}
@break
@case('datetime')
{{ Form::bsText($name, $value, array_merge($attributes, ['input_type' => 'datetime'])) }}
@break
@case('number')
{{ Form::bsText($name, $value, array_merge($attributes, ['input_type' => 'number'])) }}
@break
@case('email')
{{ Form::bsText($name, $value, array_merge($attributes, ['input_type' => 'email'])) }}
@break
@case('price')
{{ Form::bsPrice($name, $value, $attributes) }}
@break
@case('textarea')
{{ Form::bsTextarea($name, $value, $attributes) }}
@break
@case('select')
{{ Form::bsSelect($name, $value, $list, $attributes) }}
@break
@case('multiselect')
{{ Form::bsMultiSelect($name, $value, $list, $attributes) }}
@break
@case('tags')
{{ Form::bsTags($name, $value, $list, $attributes) }}
@break
@case('checkbox')
@case('flag')
{{ Form::bsCheckbox($name, $value, $list, $attributes) }}
@break
@case('radio')
{{ Form::bsRadio($name, $value, $list, $attributes) }}
@break
@case('file')
{{ Form::bsFile($name, $value, $attributes) }}
@break
@case('dropzone')
{{ Form::bsDropzone($name, $value, $attributes) }}
@break
@case('file_manager')
{{ Form::bsFileManager($name, $value, $attributes) }}
@break
@case('single_file')
{{ Form::bsFileManagerMorph($name, $value, $attributes) }}
@break
@case('multiple_files')
{{ Form::bsFileManagerMorph($name, $value, ['multiple' => true] + $attributes) }}
@break
@case('tinymce')
{{ Form::bsTinyMce($name, $value, $attributes) }}
@break
@case('image')
{{ Form::bsImage($name, $value, $attributes) }}
@break
@case('hidden')
{{ Form::hidden($name, $value) }}
@break
@case('icons')
{{ Form::bsIcons($name, $value, $attributes) }}
@break
@case('site_sections')
{{ Form::bsSiteSections($name, $value, $list, $attributes) }}
@break
@case('db_sections')
{{ Form::bsDbSections($name, $value, $list, $attributes) }}
@break
@default
Invalid form type!
@endswitch