

<?php $__env->startSection('content'); ?>
    <div class="auth-container">
        <div class="auth-wrapper">
            <div class="auth-header">
                <div class="auth-logo">
                    <?php if(optional($settings)->logo_white && optional($settings)->logo_dark): ?>
                        <img src="<?php echo e(asset($settings->logo_dark)); ?>" class="logo logo-light" alt="<?php echo e(optional($settings)->website_name ?? 'Logo'); ?>">
                        <img src="<?php echo e(asset($settings->logo_white)); ?>" class="logo logo-dark" alt="<?php echo e(optional($settings)->website_name ?? 'Logo'); ?>">
                    <?php elseif(optional($settings)->logo_white): ?>
                        <img src="<?php echo e(asset($settings->logo_white)); ?>" class="logo" alt="<?php echo e(optional($settings)->website_name ?? 'Logo'); ?>">
                    <?php elseif(optional($settings)->logo_dark): ?>
                        <img src="<?php echo e(asset($settings->logo_dark)); ?>" class="logo" alt="<?php echo e(optional($settings)->website_name ?? 'Logo'); ?>">
                    <?php else: ?>
                        <span class="auth-logo-text"><?php echo e(optional($settings)->website_name ?? config('app.name')); ?></span>
                    <?php endif; ?>
                </div>
                <h2 class="title"><?php echo e($title ?? 'Forgot Password'); ?></h2>
                <p class="description">Enter your email address and we'll send you a verification code to reset your password.</p>
            </div>

            <form class="auth-form" method="POST" action="<?php echo e(route('user.forgot-password.submit')); ?>">
                <?php echo csrf_field(); ?>
                <div class="form-group">
                    <input type="email" name="email" id="email" class="form-control" placeholder="Email Address" value="<?php echo e(old('email')); ?>" required>
                </div>
                <?php if(optional($settings)->recaptcha == 1 && isset($captcha)): ?>
                <div class="form-group">
                    <label for="captcha" class="form-label">Captcha</label>
                    <div class="input-group" style="display: flex; align-items: center; gap: 8px;">
                        <input type="text" name="captcha" id="captcha" class="form-control" placeholder="Enter captcha" required autocomplete="off">
                        <span class="captcha-text" style="padding: 8px 12px; background: #eee; border-radius: 4px; font-weight: bold; letter-spacing: 2px;"><?php echo e($captcha); ?></span>
                        <button type="button" class="captcha-refresh btn btn-secondary" title="Refresh captcha"><i class="las la-sync-alt"></i></button>
                    </div>
                </div>
                <?php endif; ?>
                <div class="form-group">
                    <button type="submit" class="auth-btn">Send Reset Code</button>
                </div>
                <div class="auth-footer">
                    <p class="auth-footer-line">
                        Remember your password?
                        <a href="<?php echo e(route('user.login.page')); ?>" class="auth-footer-link">Login</a>
                    </p>
                </div>
            </form>
        </div>
    </div>
    <?php if(optional($settings)->recaptcha == 1 && isset($captcha)): ?>
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            var btn = document.querySelector('.captcha-refresh');
            if (btn) {
                btn.addEventListener('click', function() {
                    fetch('<?php echo e(route('user.refresh-captcha')); ?>', {
                        headers: { 'X-CSRF-TOKEN': document.querySelector('meta[name="csrf-token"]').content, 'Accept': 'application/json' }
                    }).then(function(r) { return r.json(); }).then(function(d) {
                        if (d.captcha) document.querySelector('.captcha-text').textContent = d.captcha;
                    });
                });
            }
        });
    </script>
    <?php endif; ?>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('frontend.layout.auth', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\xampp\htdocs\jjd\socialnum\sstack\mine\core\resources\views/frontend/auth/forgot-password.blade.php ENDPATH**/ ?>