diff --git a/resources/views/components/table-repeater.blade.php b/resources/views/components/table-repeater.blade.php index c22c9f4..7e052dd 100644 --- a/resources/views/components/table-repeater.blade.php +++ b/resources/views/components/table-repeater.blade.php @@ -26,13 +26,6 @@ $statePath = $getStatePath(); - foreach ($containers as $uuid => $row) { - $visibleExtraItemActions = array_filter( - $extraItemActions, - fn (Action $action): bool => $action(['item' => $uuid])->isVisible(), - ); - } - foreach ($extraActions as $extraAction) { $visibleExtraActions = array_filter( $extraActions, @@ -107,6 +100,12 @@ class="table-repeater-rows-wrapper divide-y divide-gray-950/5 dark:divide-white/ > @if (count($containers)) @foreach ($containers as $uuid => $row) + @php + $visibleExtraItemActions = array_filter( + $extraItemActions, + fn (Action $action): bool => $action(['item' => $uuid])->isVisible(), + ); + @endphp