
<?php $__env->startSection('title', 'Register | E-Visa'); ?>
<?php $__env->startSection('content'); ?>
<!-- Contact Section -->
<?php
$countries = App\Models\Country::select('id', 'name')->orderBy('name', 'asc')->get();
?>
<section class="contact section light-background">
    <div class="container" data-aos="fade-up" data-aos-delay="100">
        <div class="row g-4 g-lg-5 d-flex justify-content-center">
            <div class="col-lg-8">
                <div class="contact-form" data-aos="fade-up" data-aos-delay="200">
                    <h3 class="fw-bold">Create your e-Visa account</h3>
                    <form action="<?php echo e(route('register')); ?>" method="post" data-aos="fade-up" data-aos-delay="300">
                        <?php echo csrf_field(); ?>
                        <div class="row gy-4">
                            <div class="col-lg-12">
                                <?php if($errors->any()): ?>
                                <div class="bg-warning p-3 mb-3 rounded">
                                    <div class="error-box">
                                        <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>
                                </div>
                                <?php endif; ?>
                            </div>
                            <h6 class="fw-bold">Personal Information</h6>
                            <div class="col-lg-6">
                                <input type="text" name="first_name" value="<?php echo e(old('first_name')); ?>" class="form-control" placeholder="Your First Name" required="">
                            </div>
                            <div class="col-lg-6">
                                <input type="text" name="last_name" value="<?php echo e(old('last_name')); ?>" class="form-control" placeholder="Your Last Name" required="">
                            </div>
                            <div class="col-lg-12">
                                <label for="nationality" class="form-label required-field">Select Nationality</label>
                                <select id="nationality" name="nationality" class="select2 form-control" required="">
                                    <option value="">--Choose One--</option>
                                    <?php $__currentLoopData = $countries; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $country): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($country->id); ?>" <?php echo e(old('nationality') == $country->id ? 'selected' : ''); ?>><?php echo e($country->name); ?></option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </select>
                            </div>
                            <h6 class="fw-bold">Login Information</h6>
                            <div class="col-lg-12">
                                <input type="email" class="form-control" name="email" value="<?php echo e(old('email')); ?>" placeholder="Your Email" required="">
                            </div>

                            <div class="col-lg-6">
                                <input type="password" class="form-control" name="password" placeholder="Password" required="">
                            </div>
                            <div class="col-lg-6">
                                <input type="password" class="form-control" name="password_confirmation" placeholder="Repeat Password" required="">
                            </div>

                            <div class="col-md-12 mb-3 text-end">
                                <strong>Already have an account?</strong> <a href="<?php echo e(route('login')); ?>">Login Now</a>
                            </div>

                            <div class="col-12 text-center">
                                <button type="submit" class="btn">Register</button>
                            </div>

                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</section><!-- /Contact Section -->
<?php $__env->stopSection(); ?>

<?php echo $__env->make('frontend.master', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH D:\xampp\htdocs\e-visa update\resources\views/credentials/register.blade.php ENDPATH**/ ?>