{{-- ? To implement in Blade: @includeIf('layouts.components.rounded_fixed_btn', ['rounded_fixed_btn' => ['save', 'archiv', 'delete']]) --}} @php $rounded_fixed_btn = $rounded_fixed_btn ?? []; $buttons = [ 'archiv' => [ 'class' => 'btn-archiv', 'icon' => 'archiv', 'title' => 'Archivieren', 'color' => 'secondary', ], 'save' => [ 'class' => 'btn-save', 'icon' => 'datei-speichern', 'title' => 'Speichern', 'color' => 'success', ], 'delete' => [ 'class' => 'btn-delete', 'icon' => 'loschen', 'title' => 'Löschen', 'color' => 'danger', ], ]; $visibleButtons = array_intersect($rounded_fixed_btn, array_keys($buttons)); @endphp @foreach ($visibleButtons as $buttonKey) @endforeach