@php $type_array = [ "text" => "Text", "long_text" => "Long text", "number" => "Numérique", "interval" => "Min/Max", "boolean" => "Oui/Non", "select" => "Liste de choix" ] @endphp @foreach($attributes as $attribute) @foreach($attribute->childs as $sub_attribute) @endforeach @endforeach
ID Nom Type Obligatoire Afficher dans le filtre Multi-valeurs Unité Action
{{ $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
{{ $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 }}