{!! Form::open(['route' => ['backend.attributes.sub.store', $category->id, $attribute_parent->id], 'class' =>
'form-horizontal',
'id' =>
'attributes-form', 'method' => 'POST']) !!}
<div class="modal-header no-border">
    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span>
    </button>
    <h4 class="modal-title">
        Ajouter un sous-attribut
    </h4>
</div>
<div class="modal-body">
    <div class="col-md-6">
        <div class="form-group ">
            <label for="">Nom de l'attribut parent</label>
            <div class="form-control-static">{{ $attribute_parent->name }}</div>
        </div>
    </div>
    <div class="col-md-6">
        <div class="form-group ">
            <label for="">Valeur associée</label>
            @php
            $values = explode(PHP_EOL, $attribute_parent->value);
            @endphp
            <select name="parent_value" class="form-control" required>
                <option></option>
                @foreach($values as $value)
                <option>{{ trim($value) }}</option>
                @endforeach
            </select>
        </div>
    </div>
    <div class="clearfix">
        
    </div>
    @include('backend.attributes._form')
</div>
<div class="modal-footer no-border">
    <button type="button" class="btn btn-danger pull-left" data-dismiss="modal">Annuler</button>
    <button type="submit" class="btn btn-success">Enregistrer</button>
</div>
{!! Form::close() !!}