We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce8d894 commit db54ac6Copy full SHA for db54ac6
resources/views/filament/tables/columns/translations.blade.php
@@ -1,11 +1,17 @@
1
@php
2
$flags = $getState(); // Example: More than 4 flags
3
+ $visibleFlags = [];
4
+ $remainingFlags = 0;
5
+
6
try {
- $visibleFlags = array_slice($flags, 0, 3); // Show only the first 3
7
+ if (is_array($flags)) {
8
+ $visibleFlags = array_slice($flags, 0, 3); // Show only the first 3
9
+ $remainingFlags = max(0, count($flags) - 3); // Count remaining flags
10
+ }
11
} catch (\Exception $e) {
12
$visibleFlags = [];
13
14
}
- $remainingFlags = count($flags) - 4; // Count remaining flags
15
@endphp
16
<x-filament-forms::field-wrapper>
17
0 commit comments