{!! Form::select('type', [ "" => "Séléctionnez un type", "text" => "Text", "long_text" => "Long text", "number" => "Numérique", "interval" => "Min/Max", "boolean" => "Oui/Non", "select" => "Liste de choix", ], null, ['class' => 'form-control', 'id' => 'attribute_type', 'required' => 'required']) !!}
{!! Form::text('name', null, ['class' => 'form-control', 'required' => 'required', 'placeholder' => "Nom de l'attribut"]) !!}
@php if(isset($attribute) && $attribute->type != "") { $current_attribute = $attribute->type; }else{ $current_attribute = ""; } @endphp {{--Type: text--}} {{--End Type: text--}} {{--Type: long_text--}} {{--End Type: long_text--}} {{--Type: number--}} {{--End Type: number--}} {{--Type: interval--}} {{--End Type: interval--}} {{--Type: boolean--}} {{--End Type: boolean--}} {{--Type: select--}} {{--End Type: select--}}
{!! Form::select('required', ['1' => 'Oui', '0' => 'Non'], null, ['class' => 'form-control', 'style' => 'width: 100%;']) !!}
{!! Form::select('filtrable', ['1' => 'Oui', '0' => 'Non'], null, ['class' => 'form-control', 'style' => 'width: 100%;']) !!}
{!! Form::text('unite', null, ['class' => 'form-control', 'placeholder' => "Unité", 'style' => 'width: 100%;']) !!}