<?php $__env->startSection('content'); ?>

<header class="header inner-pages-header min bg-img valign" style="background:url(<?php echo e(asset($header->image)); ?>)">
        <div class="container">
            <div class="row">
                <div class="col-lg-12">
                    <div class="caption text-center wow fadeIn" data-wow-delay=".5s">
                        <h2 class="pg_title"><?php echo e(__('web.regist')); ?></h2>
                        <div class="bread">
                            <a href="<?php echo e(url(getCurrentLocale().'/')); ?>"><?php echo e(__('web.home')); ?></a>
                            <span><i class="fas fa-arrows-alt-h"></i></span>
                            <span class="current_pg"><?php echo e(__('web.regist')); ?></span>
                        </div>
                    </div>
                </div>
            </div>
        </div>


        <img src="<?php echo e(url('')); ?>/assets/web/images/header_b.svg" alt="" class="header_lines"/>
    </header>
    <main>
        <!-- Start register-pg -->
        <section class="register-pg section-padding">
            <div class="container">
                <div class="inner">
                    <div class="row">
                        <div class="col-lg-7">
                            <div class="form-wrapper">
                                <div class="heading-box ">
                                    <h4 class="text-center"><b><?php echo e(__('web.create_acc')); ?></b></h4>
                                    <p class="another_option text-center mb-0"><?php echo e(__('web.haveacc')); ?> <a href="<?php echo e(url(getCurrentLocale().'/login')); ?>"><?php echo e(__('web.login')); ?></a></p>
                                </div>
                                <form method="post" action="<?php echo e(url(getCurrentLocale().'/registing')); ?>">
                                    <?php if($errors->any()): ?>
      <div class="alert alert-danger">
          <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; ?>
  <?php echo csrf_field(); ?>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label><?php echo e(__('web.name')); ?></label>
                                                <input type="text"name="name" class="form-control" placeholder="">
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label><?php echo e(__('web.email')); ?></label>
                                                <input type="email" name="email" class="form-control" placeholder="">
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label><?php echo e(__('web.phone')); ?></label>
                                                <input type="number" name="phone" class="form-control" placeholder="">
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label><?php echo e(__('web.gender')); ?></label>
                                                <select name="gender" class="form-control">
                                                    <option value="male"><?php echo e(__('web.male')); ?></option>
                                                    <option value="female"><?php echo e(__('web.female')); ?></option>
                                                </select>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label><?php echo e(__('web.city')); ?></label>
                                                <select class="form-control">
                                                    <?php $__currentLoopData = $countries; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                    <option value="<?php echo e($row->id); ?>"><?php echo e(countryname($row->id)); ?></option>
                                                    
                                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                </select>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label><?php echo e(__('web.date_of_birth')); ?></label>
                                                <input type="date" name="date_of_birth" class="form-control" placeholder="">
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label><?php echo e(__('web.password')); ?></label>
                                                <input type="password" name="password" class="form-control" placeholder="">
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label><?php echo e(__('web.repeat')); ?></label>
                                                <input type="password" name="confirm" class="form-control" placeholder="">
                                            </div>
                                        </div>
                                        <div class="col-md-12">
                                            <div class="custom-control custom-checkbox mt-4 ">
                                                <input type="checkbox" class="custom-control-input" id="customCheck" name="accept" required>
                                                <label class="custom-control-label" for="customCheck"><?php echo e(__('web.accept')); ?> <a target="_blank" href="<?php echo e(url(getCurrentLocale().'/terms')); ?>"><?php echo e(__('web.terms')); ?></a> <?php echo e(__('web.and')); ?> <a  target="_blank" href="<?php echo e(url(getCurrentLocale().'/policy')); ?>"><?php echo e(__('web.policy')); ?></a>
                                                </label>
                                            </div>
                                        </div>
                                        <div class="col-md-12 mt-5">
                                            <button class="butn butn-bg m-auto"><span><?php echo e(__('web.regist')); ?></span></button>
                                        </div>
                                        <div class="col-md-12 mt-4">
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                        <div class="col-lg-5">
                            <img src="<?php echo e(url('')); ?>/assets/web/images/register-1.svg" alt="" class="register_img"/>
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </main>

<?php $__env->startPush('js'); ?>
<script>
        //show password
        const togglePassword = document.querySelector('#togglePassword');
        const password = document.querySelector('#password');
    
        togglePassword.addEventListener('click', function (e) {
            // toggle the type attribute
            const type = password.getAttribute('type') === 'password' ? 'text' : 'password';
            password.setAttribute('type', type);
            // toggle the eye slash icon
            this.classList.toggle('fa-eye-slash');
        });
    </script>
<?php $__env->stopPush(); ?>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('web.layouts.main', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/omaralyomhost/public_html/healthy/resources/views/web/pages/regist.blade.php ENDPATH**/ ?>