@props([ 'length' => 6, ]) @php $inputAttributes = $input?->attributes ?? new \Illuminate\View\ComponentAttributeBag; $isDisabled = filter_var($inputAttributes->get('disabled'), FILTER_VALIDATE_BOOLEAN); $isReadOnly = filter_var($inputAttributes->get('readonly'), FILTER_VALIDATE_BOOLEAN); @endphp
class(['fi-one-time-code-input-ctn']) }} > @foreach (range(0, $length - 1) as $index) @if ($index === 0) class(['fi-one-time-code-input-digit']) }} /> @else @endif @endforeach