<?php if($errors->any()): ?>
    <div class="alert alert-danger">
        <ul>
            <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <li><?php echo e($error); ?></li>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </ul>
    </div>
<?php endif; ?>

<form action="<?php echo e(Path::AppUrl('/save-contact-us')); ?>" method="POST" class="contact-form d-grid gap-3">
    <?php echo csrf_field(); ?>
    <div>
        <input type="text" name="name" class="form-control rounded-3" placeholder="<?php echo e(__('website.name')); ?>" required />
    </div>

    <div>
        <input type="email" name="email" class="form-control rounded-3" placeholder="<?php echo e(__('website.email')); ?>" />
    </div>

    <div>
        <input type="tel" name="phone" class="form-control rounded-3" placeholder="<?php echo e(__('website.phone')); ?>"
            required />
    </div>

    <div>
        <textarea name="message" class="form-control rounded-3" rows="6"
            placeholder="<?php echo e(__('website.message')); ?>"></textarea>
    </div>
    <?php if(config('services.recaptcha.sitekey') && config('services.recaptcha.sitekey') !== 'Key'): ?>
        <div class="g-recaptcha" data-sitekey="<?php echo e(config('services.recaptcha.sitekey')); ?>"></div>
    <?php endif; ?>
    <?php $__errorArgs = ['recaptcha_token'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
        <span class="text-danger"><?php echo e($message); ?></span>
    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
    <button type="submit" class="btn-send px-4 py-3 rounded-3 mt-3 fw-semibold">
        <span class="btn-content"><?php echo e(__('website.send')); ?>

            <span><i class="fas fa-paper-plane ms-2"></i></span>
        </span>
    </button>
</form>
<!-- /.form-one -->
<!-- <======================= EndContactForm =========================> -->
<?php if(config('services.recaptcha.sitekey') && config('services.recaptcha.sitekey') !== 'Key'): ?>
    <script src="https://www.google.com/recaptcha/api.js?render=<?php echo e(config('services.recaptcha.sitekey')); ?>"></script>
    <script>
        grecaptcha.ready(function () {
            // Generate token when form is loaded
            grecaptcha.execute('<?php echo e(config('services.recaptcha.sitekey')); ?>', {
                action: 'contact'
            }).then(function (token) {
                var tokenInput = document.getElementById('recaptcha_token');
                if (tokenInput) {
                    tokenInput.value = token;
                }
            }).catch(function (error) {
                console.warn('reCAPTCHA error:', error);
            });
        });
    </script>
<?php endif; ?><?php /**PATH /home/egypetoo/public_html/resources/views/components/website/partials/contact-form.blade.php ENDPATH**/ ?>