18 lines
554 B
PHP
18 lines
554 B
PHP
@props([
|
|
'name',
|
|
'id',
|
|
'checked' => false,
|
|
'value',
|
|
'option_text',
|
|
])
|
|
|
|
<div class="relative flex items-start">
|
|
<div class="flex h-6 items-center">
|
|
<input id="{{ $id }}" name="{{ $name }}" type="radio" value="{{ $value }}" @if($checked) checked @endif {{ $attributes }} class="h-4 w-4 border-gray-300 text-indigo-600 focus:ring-indigo-600">
|
|
</div>
|
|
<div class="ml-3 text-sm leading-6">
|
|
<label for="no-filter" class="font-medium text-gray-900">{{ $option_text }}</label>
|
|
{{ $slot }}
|
|
</div>
|
|
</div>
|