File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 44
44
@elseif ($col [' type' ] === ' boolean' ) @php $hasCheckbox = true ;echo " \r " ; @endphp
45
45
<div class =" sm:col-span-4" >
46
46
<jet-label for =" {{ $col [' name' ]} }" value =" {{ $col [' label' ]} }" />
47
- <jet-checkbox class =" p-2" type =" checkbox" id =" {{ $col [' name' ]} }" name =" {{ $col [' name' ]} }" v-model =" form.{{ $col [' name' ]} }"
47
+ <jet-checkbox class =" p-2" type =" checkbox" id =" {{ $col [' name' ]} }" name =" {{ $col [' name' ]} }" :checked = " form. {{ $col [ ' name ' ] } } " v-model =" form.{{ $col [' name' ]} }"
48
48
:class =" {'border-red-500 sm:focus:border-red-300 sm:focus:ring-red-100': form.errors.{{ $col [' name' ]} } }"
49
49
></jet-checkbox >
50
50
<jet-input-error :message =" form.errors.{{ $col [' name' ]} }" class =" mt-2" />
Original file line number Diff line number Diff line change 44
44
@elseif ($col [' type' ] === ' boolean' )@php $hasCheckbox = true ; echo " \r " ; @endphp
45
45
<div class =" sm:col-span-4" >
46
46
<jet-label for =" {{ $col [' name' ]} }" value =" {{ $col [' label' ]} }" />
47
- <jet-checkbox class =" p-2" type =" checkbox" id =" {{ $col [' name' ]} }" name =" {{ $col [' name' ]} }" v-model =" form.{{ $col [' name' ]} }"
47
+ <jet-checkbox class =" p-2" type =" checkbox" id =" {{ $col [' name' ]} }" name =" {{ $col [' name' ]} }" :checked = " form. {{ $col [ ' name ' ] } } " v-model =" form.{{ $col [' name' ]} }"
48
48
:class =" {'border-red-500 sm:focus:border-red-300 sm:focus:ring-red-100': form.errors.{{ $col [' name' ]} } }"
49
49
></jet-checkbox >
50
50
<jet-input-error :message =" form.errors.{{ $col [' name' ]} }" class =" mt-2" />
You can’t perform that action at this time.
0 commit comments