<?php $__env->startSection('title', 'Sign up'); ?>
<?php $__env->startSection('content'); ?>


<body class="auth-body">
    
    <link rel="stylesheet" href="temp/custom/css/intlTelInput.css">
    
    
        <div class="auth-container">
            <div class="container text-center">
            <div class="text-center">
                <a href="/">
                    <img src="<?php echo e(asset('storage/app/public/'.$settings->logo)); ?>" style="height: 60px" class="text-center" />
                </a>
            </div>
            <h4>Create an Account</h4>
                    
        <form action="<?php echo e(route('register')); ?>" method="POST" class="validate mt-4" id="register">
        <?php echo csrf_field(); ?>
    
    
        <div class="form-group">
                <input type="text" placeholder="Username" required name="username"  class="form-control">
                <div  > <?php $__errorArgs = ['username'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
            <small class="fs-6 text-danger"><?php echo e($message); ?></small>
        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?></div>
            </div>
            <div class="form-group">
                <input type="text" placeholder="Your Full Name" required name="name" value="" class="form-control">
                <div  > <?php $__errorArgs = ['name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
            <small class="fs-6 text-danger"><?php echo e($message); ?></small>
        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?></div>
        
            <div class="form-group">
            </div>
                    <div class="form-group">
                <input type="email" placeholder="Email" required name="email" value="" class="form-control">
                <div  > 
                    <div  >
                    <?php $__errorArgs = ['email'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                    <i class="fa fa-spinner fa-spin center"></i>  <small class="fs-6 text-danger"><?php echo e($message); ?></small>
              <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?></div>
                
               
            </div>
            <div class="form-group text-black-50 mt-3 ">
                <select class="form-control" name="country" required>
                <option selected="true" disabled="disabled">Choose Country</option>
                <?php echo $__env->make('auth.countries', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
            </select>
            </div>
            <!--<div class="form-group text-black-50">-->
            <!--    <input type="tel" placeholder=" Enter Phone Number" required name="phone" value="" class="form-control">-->
                
            <!--</div>-->





            <div class="form-group text-black-50 mt-3 ">
                <input name="s_currency" value="<?php echo e($settings->s_currency); ?>" id="s_c" type="hidden">
                <div class="form-group ">
                    <select name="currency" id="select_c" class="form-control   select2" onchange="changecurr()"
                        style="width: 100%">
                        
                        <option selected="true" disabled="disabled">Select Currency</option>
                        <?php $__currentLoopData = $currencies; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $currency): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <option id="<?php echo e($key); ?>" value="<?php echo html_entity_decode($currency); ?>">
                                <?php echo e($key . ' (' . html_entity_decode($currency) . ')'); ?></option>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </select>
            </div>
        </div>
            
            <div class="form-group text-black-50">
                <input type="tel" placeholder=" Enter Phone Number" required name="phone" value="" class="form-control">
                
            </div>
           
            <div class="form-group">
                <input type="password" placeholder="Password" name="password"  class="form-control">
                <div ><?php $__errorArgs = ['password'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
            <small class="fs-6 text-danger"><?php echo e($message); ?></small>
        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?></div>
            </div>
            <div class="form-group">
                <input type="password" placeholder="Confirm Password" required name="password_confirmation" class="form-control" >
            </div>
    
    
        <?php if(Session::has('ref_by')): ?>
        <div class="form-group">
            
              
                <!-- Input -->
                <input type="text" class="form-control" value="<?php echo e(session('ref_by')); ?>"
                    name="ref_by" hidden required>
           
        </div>
        <?php endif; ?>
    
            <div class="form-group">
                <div class="custom-control custom-checkbox text-primary">
                    <input type="checkbox" name="agree" class="custom-control-input" id="agree" required>
                    <label class="custom-control-label" for="agree">I agree to <?php echo e($settings->site_name); ?> 
                    <a href="rules" target="_blank" class="text-primary font-weight-bold">Terms and conditions</a></label>
                </div>
            </div>
            <button type="submit" class="btn btn-primary btn-block">Register</button>
            <p class="text-muted text-center mt-5">Already have an account ? <a href="<?php echo e(route('login')); ?>" class="text-muted font-weight-bold">Login</a></p>
            <p class="text-muted text-center">© Copyright <?php echo e($settings->site_name); ?>   All Rights Reserved.</p>
        </form>
            </div>
        <a href="<?php echo e(route('login')); ?>">Already have an account</a></div>
   
    
    
    
    <style>
      .skiptranslate {
        display: none !important;?>
      }
      body {
        top: 0 !important;
      }
    </style>
    <div id="google_translate_element" style="display:none"></div>
    <script type="text/javascript">
    function googleTranslateElementInit() {
      new google.translate.TranslateElement({pageLanguage: "en"}, 'google_translate_element');
    }
    </script>
    <script type="text/javascript" src="https://translate.google.com/translate_a/elementa0d8.js?cb=googleTranslateElementInit"></script>
    <script>

         function changecurr() {
                var e = document.getElementById("select_c");
                var selected = e.options[e.selectedIndex].id;
                document.getElementById("s_c").value = selected;
                console.log(selected);
            }
        </script>

    </body>
    
    
    </html>
    
   <script type="text/javascript">window.$crisp=[];window.CRISP_WEBSITE_ID="94e10767-69be-49fd-8693-a28525b50c73";(function(){d=document;s=d.createElement("script");s.src="https://client.crisp.chat/l.js";s.async=1;d.getElementsByTagName("head")[0].appendChild(s);})();</script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.guest1', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home1/tststrit/intl.teststrintl.com/resources/views/auth/register.blade.php ENDPATH**/ ?>