We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
zero
1 parent a7f133d commit 3f16b20Copy full SHA for 3f16b20
src/View/Components/Rating.php
@@ -29,7 +29,16 @@ public function size(): ?string
29
public function render(): View|Closure|string
30
{
31
return <<<'HTML'
32
- <div class="rating gap-1 {{ $size }}">
+ <div class="rating gap-1 {{ $size }}" x-cloak>
33
+ <!-- NO RATING-->
34
+ <input
35
+ type="radio"
36
+ name="{{ $modelName() }}"
37
+ value="0"
38
+ class="rating-hidden hidden"
39
+ {{ $attributes->whereStartsWith('wire:model') }}
40
+ />
41
+
42
@for ($i = 1; $i <= $total; $i++)
43
<input
44
type="radio"
0 commit comments