@forelse ($rows as $a) @php $editPayload = [ 'id' => $a->id, 'attribute_name' => $a->attribute_name, 'attribute_key' => $a->attribute_key, 'attribute_value' => $a->attribute_value, 'description' => $a->description, 'status' => (bool) $a->status, ]; @endphp {{ $a->attribute_name }} {{ $a->attribute_key }} {{ $a->attribute_value ?: '/' }} {{ $a->description ?: '/' }} @if ($a->status) Active @else Off @endif @empty {{-- actionButtonAttrs (not actionHref) so the button opens the New-attribute modal via the same data-attr-modal-open JS hook the top-right button uses. Was actionHref="#new-attribute" — a bare anchor that only set the URL hash and never opened the modal (the reported "Create attribute button not working"). --}} @include('user.partials.empty-state', [ 'message' => 'No attributes match the current filters. Create attributes to store reusable customer fields.', 'resetHref' => url('/attributes'), 'actionButtonAttrs' => 'data-attr-modal-open', 'actionLabel' => 'Create attribute', ]) @endforelse