File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ public function __construct(
16
16
public ?string $ hint = null ,
17
17
public ?string $ optionValue = 'id ' ,
18
18
public ?string $ optionLabel = 'name ' ,
19
- public Collection $ options = new Collection (),
19
+ public Collection | array $ options = new Collection (),
20
20
) {
21
21
$ this ->uuid = md5 (serialize ($ this ));
22
22
}
@@ -38,8 +38,8 @@ public function render(): View|Closure|string
38
38
<input
39
39
type="radio"
40
40
name="{{ $name() }}"
41
- value="{{ $option-> $optionValue }}"
42
- aria-label="{{ $option-> $optionLabel }}"
41
+ value="{{ data_get( $option, $optionValue) }}"
42
+ aria-label="{{ data_get( $option, $optionLabel) }}"
43
43
{{ $attributes->whereStartsWith('wire:model') }}
44
44
{{ $attributes->class(["join-item capitalize btn input-bordered input bg-base-200"]) }}
45
45
/>
You can’t perform that action at this time.
0 commit comments