<?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>
                        
                        <option  value="$">
                                USD($)</option>
                                  <option  value="€">
                                Euro(€)</option>
                                  <option  value="£">
                                GBP(£)</option>
                                   <option  value="¥">
                                Yen(¥)</option>
                                 <option  value="R$">
                                BRL(R$)</option>
                                 <option  value="R">
                                Zar(R)</option>
                                
                       
                    </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>
<?php $__env->stopSection(); ?>

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