<?php $__env->startSection('content'); ?>
    <?php
        $register = getContent('register.content', true);
        $policyPages = getContent('policy_pages.element', orderById: true);
    ?>
    <?php if(gs('registration')): ?>
        <div class="section ">
            <div class="container">
                <div class="row">
                    <div class="col-12">
                        <div class="login-section__content">
                            <div class="row justify-content-center">
                                <div class="col-xl-6 col-lg-5 d-none d-lg-block">
                                    <div class="text-center login-section__image">
                                        <img alt="image" class="img-fluid login-section__image-is"
                                            src="<?php echo e(frontendImage('register', @$register->data_values->image, '425x600')); ?>">
                                    </div>
                                </div>
                                <div class="col-xl-6 col-lg-7 col-md-10 ">
                                    <div class="login-form">
                                        <div class="login-form__head mb-4">
                                            <h4 class="mt-lg-0 text-center">
                                                <?php echo e(__(@$register->data_values->heading)); ?></h4>
                                            <p class="text-center section__para mx-auto">
                                                <?php echo e(__(@$register->data_values->subheading)); ?>

                                            </p>
                                        </div>
                                        <?php echo $__env->make($activeTemplate . 'partials.social_login', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

                                        <form action="<?php echo e(route('user.register')); ?>" method="POST" class="verify-gcaptcha disableSubmission">
                                            <?php echo csrf_field(); ?>
                                            <div class="row">
                                                <?php if(session()->get('reference') != null): ?>
                                                    <div class="col-md-6">
                                                        <div class="form-group">
                                                            <label for="referenceBy" class="form-label"><?php echo app('translator')->get('Reference By'); ?></label>
                                                            <input type="text" name="referBy" id="referenceBy" class="form-control form--control"
                                                                value="<?php echo e(session()->get('reference')); ?>" readonly>
                                                        </div>
                                                    </div>
                                                <?php endif; ?>

                                                <div class="form-group col-sm-6">
                                                    <label class="form-label"><?php echo app('translator')->get('First Name'); ?></label>
                                                    <input type="text" class="form-control form--control" name="firstname"
                                                        value="<?php echo e(old(' firstname')); ?>" required>
                                                </div>
                                                <div class="form-group col-sm-6">
                                                    <label class="form-label"><?php echo app('translator')->get('Last Name'); ?></label>
                                                    <input type="text" class="form-control form--control" name="lastname"
                                                        value="<?php echo e(old(' lastname')); ?>" required>
                                                </div>

                                                <div class="col-md-12">
                                                    <div class="form-group">
                                                        <label class="form-label"><?php echo app('translator')->get('E-Mail Address'); ?></label>
                                                        <input type="email" class="form-control form--control checkUser" name="email"
                                                            value="<?php echo e(old('email',@request()->invite_email)); ?>" required <?php if(@request()->invite_email): echo 'readonly'; endif; ?>>
                                                    </div>
                                                </div>

                                                <div class="col-md-6">
                                                    <div class="form-group">
                                                        <label class="form-label"><?php echo app('translator')->get('Password'); ?></label>
                                                        <input type="password"
                                                            class="form-control form--control <?php if(gs('secure_password')): ?> secure-password <?php endif; ?>"
                                                            name="password" required>
                                                    </div>
                                                </div>

                                                <div class="col-md-6">
                                                    <div class="form-group">
                                                        <label class="form-label"><?php echo app('translator')->get('Confirm Password'); ?></label>
                                                        <input type="password" class="form-control form--control" name="password_confirmation" required>
                                                    </div>
                                                </div>

                                                <?php if (isset($component)) { $__componentOriginalff0a9fdc5428085522b49c68070c11d6 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalff0a9fdc5428085522b49c68070c11d6 = $attributes; } ?>
<?php $component = App\View\Components\Captcha::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('captcha'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\App\View\Components\Captcha::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalff0a9fdc5428085522b49c68070c11d6)): ?>
<?php $attributes = $__attributesOriginalff0a9fdc5428085522b49c68070c11d6; ?>
<?php unset($__attributesOriginalff0a9fdc5428085522b49c68070c11d6); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalff0a9fdc5428085522b49c68070c11d6)): ?>
<?php $component = $__componentOriginalff0a9fdc5428085522b49c68070c11d6; ?>
<?php unset($__componentOriginalff0a9fdc5428085522b49c68070c11d6); ?>
<?php endif; ?>

                                            </div>

                                            <?php if(gs('agree')): ?>
                                                <?php
                                                    $policyPages = getContent('policy_pages.element', false, orderById: true);
                                                ?>
                                                <div class="form-group">
                                                    <input type="checkbox" id="agree" <?php if(old('agree')): echo 'checked'; endif; ?> name="agree" required>
                                                    <label for="agree"><?php echo app('translator')->get('I agree with'); ?></label> <span>
                                                        <?php $__currentLoopData = $policyPages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $policy): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                            <a href="<?php echo e(route('policy.pages', $policy->slug)); ?>"
                                                                target="_blank"><?php echo e(__($policy->data_values->title)); ?></a>
                                                            <?php if(!$loop->last): ?>
                                                                ,
                                                            <?php endif; ?>
                                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                    </span>
                                                </div>
                                            <?php endif; ?>
                                            <div class="form-group">
                                                <button type="submit" id="recaptcha" class="btn btn--base h-45 w-100">
                                                    <?php echo app('translator')->get('Register'); ?></button>
                                            </div>
                                            <p class="mb-0"><?php echo app('translator')->get('Already have an account?'); ?> <a href="<?php echo e(route('user.login')); ?>"><?php echo app('translator')->get('Login'); ?></a></p>
                                        </form>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    <?php else: ?>
        <?php echo $__env->make($activeTemplate . 'partials.registration_disabled', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

    <?php endif; ?>


    <div class="modal fade" id="existModalCenter" tabindex="-1" role="dialog" aria-labelledby="existModalCenterTitle" aria-hidden="true">
        <div class="modal-dialog modal-dialog-centered" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title" id="existModalLongTitle"><?php echo app('translator')->get('You are with us'); ?></h5>
                    <span type="button" class="close" data-bs-dismiss="modal" aria-label="Close">
                        <i class="las la-times"></i>
                    </span>
                </div>
                <div class="modal-body">
                    <h6 class="text-center"><?php echo app('translator')->get('You already have an account please Login '); ?></h6>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-dark btn-sm" data-bs-dismiss="modal"><?php echo app('translator')->get('Close'); ?></button>
                    <a href="<?php echo e(route('user.login')); ?>" class="btn btn--base btn-sm"><?php echo app('translator')->get('Login'); ?></a>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>
<?php $__env->startPush('style'); ?>
    <style>
        .social-login-btn {
            border: 1px solid #cbc4c4;
        }
    </style>
<?php $__env->stopPush(); ?>

<?php if(gs('secure_password')): ?>
    <?php $__env->startPush('script-lib'); ?>
        <script src="<?php echo e(asset('assets/global/js/secure_password.js')); ?>"></script>
    <?php $__env->stopPush(); ?>
<?php endif; ?>

<?php $__env->startPush('script'); ?>
    <script>
        "use strict";
        (function($) {

            $('.checkUser').on('focusout', function(e) {
                var url = '<?php echo e(route('user.checkUser')); ?>';
                var value = $(this).val();
                var token = '<?php echo e(csrf_token()); ?>';

                var data = {
                    email: value,
                    _token: token
                }

                $.post(url, data, function(response) {
                    if (response.data != false) {
                        $('#existModalCenter').modal('show');
                    }
                });
            });
        })(jQuery);
    </script>
<?php $__env->stopPush(); ?>

<?php echo $__env->make($activeTemplate . 'layouts.frontend', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/ulsitlqp/certified.1-l.site/codecanyon-37346558-escrowlab-escrow-payment-platform/Files/core/resources/views/templates/basic/user/auth/register.blade.php ENDPATH**/ ?>