@props([ 'name', 'label' => null, 'value' => 0, 'max' => 5, 'style' => 'stars', // stars|emoji|numbers 'allowHalf' => false, 'readonly' => false, 'help' => null, 'error' => null, ]) @php $resolvedError = $error ?? $errors->first($name); $emojis = ['😡', '😕', '😐', '🙂', '😍']; @endphp
@for ($i = 1; $i <= $max; $i++) @if ($style === 'emoji') @elseif ($style === 'numbers') @else @endif @endfor