File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/resources/views/crud/fields Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 33 $field [' value' ] = old_empty_or_null ($field [' name' ], ' ' ) ?? $field [' value' ] ?? $field [' default' ] ?? ' 0' ;
44 $field [' onLabel' ] = $field [' onLabel' ] ?? ' ' ;
55 $field [' offLabel' ] = $field [' offLabel' ] ?? ' ' ;
6- $field [' color' ] = $field [' color' ] ?? ' primary ' ;
6+ $field [' color' ] = $field [' color' ] ?? ' var(--bg-switch-checked-color) ' ;
77@endphp
88
99{{-- Wrapper --}}
1414
1515 <div class =" d-inline-flex align-items-center" >
1616 {{-- Switch --}}
17- <label class =" form-switch switch switch-sm switch-label switch-pill switch-{{ $field [' color' ] } } mb-0" style =" --bg-switch-checked-color : {{ $field[' color' ] }};" >
17+ <label class =" form-switch switch switch-sm switch-label switch-pill switch-{{ $field [' color' ] } } mb-0" @if ( $field [ ' color ' ] !== ' var(--bg-switch-checked-color) ' ) style =" --bg-switch-checked-color : {{ $field[' color' ] }};" @endif >
1818 <input
1919 type =" hidden"
2020 name =" {{ $field [' name' ] } }"
You can’t perform that action at this time.
0 commit comments