File tree 1 file changed +14
-5
lines changed
stubs/resources/views/flux
1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change 1
1
@props ([
2
2
' name' => $attributes -> whereStartsWith (' wire:model' )-> first (),
3
+ ' align' => ' right' ,
3
4
] )
4
5
5
6
@php
26
27
]);
27
28
@endphp
28
29
29
- <flux:with-reversed-inline-field :$attributes >
30
- <ui-switch {{ $attributes -> class ($classes ) } } data-flux-control data-flux-switch >
31
- <span class =" {{ \Illuminate \Support \Arr:: toCssClasses ($indicatorClasses ) } }" ></span >
32
- </ui-switch >
33
- </flux:with-reversed-inline-field >
30
+ @if ($align === ' left' )
31
+ <flux:with-inline-field :$attributes >
32
+ <ui-switch {{ $attributes -> class ($classes ) } } data-flux-control data-flux-switch >
33
+ <span class =" {{ \Illuminate \Support \Arr:: toCssClasses ($indicatorClasses ) } }" ></span >
34
+ </ui-switch >
35
+ </flux:with-inline-field >
36
+ @else
37
+ <flux:with-reversed-inline-field :$attributes >
38
+ <ui-switch {{ $attributes -> class ($classes ) } } data-flux-control data-flux-switch >
39
+ <span class =" {{ \Illuminate \Support \Arr:: toCssClasses ($indicatorClasses ) } }" ></span >
40
+ </ui-switch >
41
+ </flux:with-reversed-inline-field >
42
+ @endif
You can’t perform that action at this time.
0 commit comments