File manager - Edit - /var/www/ratemypay_dev/storage/framework/views/5049f5567ad2615cf3a03775b4ceaa65.php
Back
<?php $__env->startSection('title', 'Verify Email - Business - ' . config('app.name')); ?> <?php $__env->startSection('tab', 'signin'); ?> <?php $__env->startSection('content'); ?> <?php if(!empty($error)): ?> <div class="mb-6 rounded-xl border border-[#FCA5A5] bg-[#FEF2F2] px-4 py-3 text-sm text-[#B91C1C]"> Invalid code. Please try again. </div> <?php endif; ?> <h1 class="text-[28px] font-bold text-[#101828] mb-2">Verify Your Email</h1> <p class="text-sm text-[#4A5565] mb-8"> We've sent a 6-digit verification code to<br> <span class="font-semibold text-[#101828]"><?php echo e($email); ?></span> </p> <form action="<?php echo e(route('business.verify-email.submit')); ?>" method="POST" x-data="{ digits: ['', '', '', '', '', ''], secondsLeft: 59, timer: null, startTimer() { clearInterval(this.timer); this.timer = setInterval(() => { if (this.secondsLeft > 0) this.secondsLeft--; else clearInterval(this.timer); }, 1000); }, resend() { this.secondsLeft = 59; this.startTimer(); }, get isComplete() { return this.digits.every(d => d && d.length === 1); }, handleInput(event, i) { const v = event.target.value.replace(/\D/g, '').slice(-1); this.digits[i] = v; event.target.value = v; if (v && i < 5) this.$refs['d' + (i + 1)].focus(); }, handleKey(event, i) { if (event.key === 'Backspace' && !this.digits[i] && i > 0) { this.$refs['d' + (i - 1)].focus(); } }, handlePaste(event) { const text = (event.clipboardData || window.clipboardData).getData('text').replace(/\D/g, '').slice(0, 6); if (!text) return; event.preventDefault(); for (let i = 0; i < 6; i++) this.digits[i] = text[i] || ''; const last = Math.min(text.length, 6) - 1; this.$refs['d' + Math.max(last, 0)].focus(); } }" x-init="startTimer()"> <?php echo csrf_field(); ?> <input type="hidden" name="email" value="<?php echo e($email); ?>"> <label class="block text-sm font-semibold text-[#101828] mb-3">Enter Verification Code</label> <div class="flex gap-2 justify-between mb-4"> <?php for($i = 0; $i < 6; $i++): ?> <input type="text" inputmode="numeric" maxlength="1" name="code[]" x-ref="d<?php echo e($i); ?>" x-model="digits[<?php echo e($i); ?>]" @input="handleInput($event, <?php echo e($i); ?>)" @keydown="handleKey($event, <?php echo e($i); ?>)" @paste="handlePaste($event)" value="<?php echo e(!empty($error) ? '3' : ''); ?>" class="w-[52px] h-[56px] text-center text-xl font-semibold rounded-xl border-2 focus:outline-none transition <?php echo e(!empty($error) ? 'border-[#F87171] text-[#B91C1C]' : 'border-[#E5E7EB] focus:border-[#2F3D7E] focus:ring-2 focus:ring-[#2F3D7E]/20'); ?>"> <?php endfor; ?> </div> <div class="text-center text-sm text-[#4A5565] mb-6"> <template x-if="secondsLeft > 0"> <span>Resend code in <span class="font-semibold text-[#2F3D7E]" x-text="secondsLeft + 's'"></span></span> </template> <template x-if="secondsLeft === 0"> <button type="button" @click="resend()" class="font-semibold text-[#2F3D7E] hover:underline"> Resend code </button> </template> </div> <button type="submit" :disabled="!isComplete" :class="isComplete ? 'bg-[#2F3D7E] hover:bg-[#1E2858]' : 'bg-[#9B9FB8] cursor-not-allowed'" class="w-full h-12 rounded-xl text-white font-medium text-sm transition"> Verify Code </button> </form> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.business-auth', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /var/www/ratemypay_dev/resources/views/business/auth/verify-email.blade.php ENDPATH**/ ?>
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings