|
1 |
| -@if ($isTailwind) |
2 |
| - @if ($status) |
3 |
| - @if ($type === 'icons') |
4 |
| - @if ($successValue === true) |
5 |
| - <x-heroicon-o-check-circle class="inline-block h-5 w-5 text-green-500" /> |
6 |
| - @else |
7 |
| - <x-heroicon-o-check-circle class="inline-block h-5 w-5 text-red-500" /> |
8 |
| - @endif |
9 |
| - @elseif ($type === 'yes-no') |
10 |
| - @if ($successValue === true) |
11 |
| - <span>Yes</span> |
12 |
| - @else |
13 |
| - <span>No</span> |
14 |
| - @endif |
15 |
| - @endif |
16 |
| - @else |
17 |
| - @if ($type === 'icons') |
18 |
| - @if ($successValue === false) |
19 |
| - <x-heroicon-o-x-circle class="inline-block h-5 w-5 text-green-500" /> |
20 |
| - @else |
21 |
| - <x-heroicon-o-x-circle class="inline-block h-5 w-5 text-red-500" /> |
22 |
| - @endif |
23 |
| - @elseif ($type === 'yes-no') |
24 |
| - @if ($successValue === false) |
25 |
| - <span>Yes</span> |
26 |
| - @else |
27 |
| - <span>No</span> |
28 |
| - @endif |
29 |
| - @endif |
30 |
| - @endif |
31 |
| -@elseif ($isBootstrap) |
| 1 | +@if($isToggleable && $toggleMethod != '') |
| 2 | + <button wire:click="{{ $toggleMethod }}('{{ $rowPrimaryKey }}')" |
| 3 | + @if($hasConfirmMessage) wire:confirm="{{ $confirmMessage }}" @endif |
| 4 | +> |
| 5 | +@endif |
32 | 6 | @if ($status)
|
33 | 7 | @if ($type === 'icons')
|
34 | 8 | @if ($successValue === true)
|
35 |
| - <x-heroicon-o-check-circle class="d-inline-block text-success laravel-livewire-tables-btn-small" /> |
36 |
| - @else |
37 |
| - <x-heroicon-o-check-circle class="d-inline-block text-danger laravel-livewire-tables-btn-small" /> |
| 9 | + <x-heroicon-o-check-circle |
| 10 | + @class( |
| 11 | + [ |
| 12 | + "inline-block h-5 w-5 text-green-500" => $isTailwind, |
| 13 | + "d-inline-block text-success laravel-livewire-tables-btn-small" => $isBootstrap |
| 14 | + ] |
| 15 | + ) |
| 16 | + /> |
| 17 | + @else |
| 18 | + <x-heroicon-o-check-circle @class( |
| 19 | + [ |
| 20 | + "inline-block h-5 w-5 text-red-500" => $isTailwind, |
| 21 | + "d-inline-block text-danger laravel-livewire-tables-btn-small" => $isBootstrap |
| 22 | + ] |
| 23 | + ) |
| 24 | + /> |
38 | 25 | @endif
|
39 | 26 | @elseif ($type === 'yes-no')
|
40 | 27 | @if ($successValue === true)
|
|
46 | 33 | @else
|
47 | 34 | @if ($type === 'icons')
|
48 | 35 | @if ($successValue === false)
|
49 |
| - <x-heroicon-o-x-circle class="d-inline-block text-success laravel-livewire-tables-btn-small" /> |
50 |
| - @else |
51 |
| - <x-heroicon-o-x-circle class="d-inline-block text-danger laravel-livewire-tables-btn-small" /> |
| 36 | + <x-heroicon-o-x-circle @class( |
| 37 | + [ |
| 38 | + "inline-block h-5 w-5 text-green-500" => $isTailwind, |
| 39 | + "d-inline-block text-success laravel-livewire-tables-btn-small" => $isBootstrap |
| 40 | + ] |
| 41 | + ) |
| 42 | + /> |
| 43 | + @else |
| 44 | + <x-heroicon-o-x-circle @class( |
| 45 | + [ |
| 46 | + "inline-block h-5 w-5 text-red-500" => $isTailwind, |
| 47 | + "d-inline-block text-danger laravel-livewire-tables-btn-small" => $isBootstrap |
| 48 | + ] |
| 49 | + ) |
| 50 | + /> |
52 | 51 | @endif
|
53 | 52 | @elseif ($type === 'yes-no')
|
54 | 53 | @if ($successValue === false)
|
|
58 | 57 | @endif
|
59 | 58 | @endif
|
60 | 59 | @endif
|
| 60 | +@if($isToggleable && $toggleMethod != '') |
| 61 | + </button> |
61 | 62 | @endif
|
0 commit comments