| {{ $attribute->id }} |
{{ $attribute->name }}
|
{{ $type_array[$attribute->type] }} |
{{ ($attribute->required)?'Oui':'Non' }} |
{{ ($attribute->filtrable)?'Oui':'Non' }} |
@if($attribute->type == "select")
{{ ($attribute->multi_value)?'Oui':'Non' }}
@endif
|
{{ $attribute->unite }} |
@if($attribute->type == "select" && $attribute->multi_value == "0")
Ajouter un sous-attribut
@endif
|
@foreach($attribute->childs as $sub_attribute)
|
|
{{ $sub_attribute->id }} |
{{ $sub_attribute->parent_value }} > {{ $sub_attribute->name }}
|
{{ $type_array[$sub_attribute->type] }} |
{{ ($sub_attribute->required)?'Oui':'Non' }} |
{{ ($sub_attribute->filtrable)?'Oui':'Non' }} |
@if($sub_attribute->type == "select")
{{ ($sub_attribute->multi_value)?'Oui':'Non' }}
@endif
|
{{ $sub_attribute->unite }} |
|
@endforeach
@endforeach