@if (isset($value) && isset($checked) == false) @php $checked = $value == 'true'; @endphp @endif @php $rand = rand(1, 999); if (session()->hasOldInput()) { $__old = session()->getOldInput($name); $checked = $__old !== null && in_array((string) $__old, ['true', '1', 'on'], true); } @endphp
@if ($label) @endif @if ($errors->has($name))
{{ $errors->first($name) }}
@endif