|
9 | 9 |
|
10 | 10 | <tr wire:key="{{ $tableName }}-loader" wire:loading.class.remove="hidden d-none" {{ |
11 | 11 | $attributes->merge($loaderRow) |
12 | | - ->class(['hidden w-full text-center place-items-center align-middle' => $this->isTailwind && ($loaderRow['default'] ?? true)]) |
13 | | - ->class(['d-none w-100 text-center align-items-center' => $this->isBootstrap && ($loaderRow['default'] ?? true)]) |
| 12 | + ->class([ |
| 13 | + 'hidden w-full text-center place-items-center align-middle' => $this->isTailwind && ($loaderRow['default'] ?? true), |
| 14 | + 'd-none w-100 text-center align-items-center' => $this->isBootstrap && ($loaderRow['default'] ?? true), |
| 15 | + ]) |
14 | 16 | ->except(['default','default-styling','default-colors']) |
15 | 17 | }}> |
16 | 18 | <td colspan="{{ $colCount }}" wire:key="{{ $tableName }}-loader-column" {{ |
17 | 19 | $attributes->merge($loaderCell) |
18 | | - ->class(['py-4' => $this->isTailwind && ($loaderCell['default'] ?? true)]) |
19 | | - ->class(['py-4' => $this->isBootstrap && ($loaderCell['default'] ?? true)]) |
| 20 | + ->class([ |
| 21 | + 'py-4' => $this->isTailwind && ($loaderCell['default'] ?? true), |
| 22 | + 'py-4' => $this->isBootstrap && ($loaderCell['default'] ?? true), |
| 23 | + ]) |
20 | 24 | ->except(['default','default-styling','default-colors', 'colspan','wire:key']) |
21 | 25 | }}> |
22 | 26 | @if($this->hasLoadingPlaceholderBlade()) |
|
25 | 29 | <div class="h-min self-center align-middle text-center"> |
26 | 30 | <div class="lds-hourglass"{{ |
27 | 31 | $attributes->merge($loaderIcon) |
28 | | - ->class(['lds-hourglass' => $this->isTailwind && ($loaderIcon['default'] ?? true)]) |
29 | | - ->class(['lds-hourglass' => $this->isBootstrap && ($loaderIcon['default'] ?? true)]) |
| 32 | + ->class([ |
| 33 | + 'lds-hourglass' => $this->isTailwind && ($loaderIcon['default'] ?? true), |
| 34 | + 'lds-hourglass' => $this->isBootstrap && ($loaderIcon['default'] ?? true), |
| 35 | + ]) |
30 | 36 | ->except(['default','default-styling','default-colors']) |
31 | 37 | }}></div> |
32 | 38 | <div>{!! $this->getLoadingPlaceholderContent() !!}</div> |
|
0 commit comments