
<?php $__env->startSection('title', 'Register | E-Visa'); ?>
<?php $__env->startSection('content'); ?>
<?php
$countries = App\Models\Country::select('id', 'name')->orderBy('name', 'asc')->get();
?>
<?php $__env->startPush('style'); ?>
    <style>
        .select2-container .selection .select2-selection__arrow b::after{
            display: none !important;
        }
    </style>
<?php $__env->stopPush(); ?>
<section class="credential-section">
    <div class="credential-container">
        <div class="credential-card credential-card--wide">
            <h3 class="credential-title">Create your e-Visa account</h3>

            <form action="<?php echo e(route('register')); ?>" method="post">
                <?php echo csrf_field(); ?>

                <?php if($errors->any()): ?>
                    <div class="credential-error">
                        <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; ?>

                <!-- PERSONAL INFO -->
                <h6 class="credential-subtitle">Personal Information</h6>

                <div class="credential-grid">
                    <div class="credential-field">
                        <input type="text" name="first_name"
                               value="<?php echo e(old('first_name')); ?>"
                               placeholder="Your First Name" required>
                    </div>

                    <div class="credential-field">
                        <input type="text" name="last_name"
                               value="<?php echo e(old('last_name')); ?>"
                               placeholder="Your Last Name" required>
                    </div>
                </div>

                <div class="credential-field">
                    <select name="nationality" class="select2" required>
                        <option value="">-- Choose Nationality --</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>

                <!-- LOGIN INFO -->
                <h6 class="credential-subtitle">Login Information</h6>

                <div class="credential-field">
                    <input type="email" name="email"
                           value="<?php echo e(old('email')); ?>"
                           placeholder="Your Email" required>
                </div>

                <div class="credential-grid">
                    <div class="credential-field">
                        <input type="password" name="password"
                               placeholder="Password" required>
                    </div>

                    <div class="credential-field">
                        <input type="password" name="password_confirmation"
                               placeholder="Repeat Password" required>
                    </div>
                </div>

                <div class="credential-footer">
                    <strong>Already have an account?</strong>
                    <a href="<?php echo e(route('login')); ?>">Login Now</a>
                </div>

                <button type="submit" class="credential-btn">
                    Register
                </button>
            </form>
        </div>
    </div>
</section>

<?php $__env->stopSection(); ?>

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