<?php if(!empty($price_type)):?>
  <?php $setting = get_setting(); ?>
<div class="registration_area section-padding-top section-padding-bottom mt-50">
  <div class="container">
    <div class="row">
      <div class="col-sm-12 col-xs-12">
        <div class="registration_content">
          <div class="row align-center <?= direction();?>">
            <div class="col-sm-4 col-xs-12">
              <div class="register_left_content">
                <div class="pricing_content">
                  <h3 class="plan-title" data-aos="zoom-in" data-aos-duration="4000" data-aos-easing="linear">
                    <?= html_escape($price_type['type_name']) ;?>
                  </h3>
                  <div class="plan-cost">
                    <?php if($price_type['type'] != 'free'): ?>
                      <span class="plan-price"><?= get_currency('icon');?> <?= html_escape($price_type['price']);?></span>
                      <span class="plan-type">/ <?= !empty(lang($price_type['type']))?lang($price_type['type']):$price_type['type'];?></span>
                    <?php else: ?>
                      <span class="plan-price"><?= !empty(lang($price_type['type']))?lang($price_type['type']):$price_type['type'];?></span>
                    <?php endif; ?>
                    <h5><?= html_escape($price_type['type_limit'])==0?(!empty(lang('unlimited'))?lang('unlimited'):'unlimited'):(!empty(lang('only'))?lang('only'):'only').' '.html_escape($price_type['type_limit']);?></h5>
                  </div>
                    <div class="pricing_body">
                      <ul class="plan-features">
                        <?php foreach ($features as $key => $feature): ?>
                          <?php $feature_id = get_price_feature_id($feature['id'],$price_type['id']); ?>
                          <li><i class="fa <?= isset($feature_id['feature_id']) && $feature_id['feature_id']==$feature['id']?'fa-check':'fa-times';?>"> </i> <?= $feature['features'];?></li>
                        <?php endforeach ?>
                      </ul>
                    </div>
                </div>
              </div>
            </div>
            <div class="col-sm-8 col-xs-12">
              <div class="registration_form">
                <h4>Create your portfolio</h4>
                <form action="<?php echo base_url('admin/home/user_insert'); ?>" id="user_insert_form">
                  <!-- csrf -->
                  <input type="hidden" name="<?php echo $this->security->get_csrf_token_name(); ?>" value="<?php echo $this->security->get_csrf_hash(); ?>">
                  <!-- csrf -->

                  <div class="row">
                    <div class="col-sm-12 col-xs-12">
                      <div class="reg_msg" style="display: none;"></div>
                    </div>
                  </div>
                  <div class="row">
                    <div class="form-group col-sm-12">
                      <label for=""><?= html_escape(!empty(lang('your_name'))?lang('your_name'):'Your name')?></label>
                      <input type="text" name="name" class="form-control" placeholder="<?= html_escape(!empty(lang('your_name'))?lang('your_name'):'Your name')?>">
                    </div>
                  </div>
                  <div class="row ">
                    <div class="form-group col-sm-12">
                      <label for=""><?= html_escape(lang('username'))?></label>
                      <input type="text" name="username" id="username" class="form-control" placeholder="<?= html_escape(lang('username'))?>" autocomplete="off">
                      <div class="alert_msg"></div>
                      <div class="register_loader" style="display: none;">
                        <div class="gooey">
                          <span class="dot"></span>
                          <div class="dots">
                            <span></span>
                            <span></span>
                            <span></span>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>

                  <div class="row">
                    <div class="form-group col-sm-12">
                      <label for=""><?= html_escape(lang('email'))?></label>
                      <input type="email" name="email" class="form-control" placeholder="<?= html_escape(lang('email'))?>">
                    </div>
                  </div>

                  <div class="row">
                    <div class="form-group col-sm-12">
                      <label for=""><?= html_escape(lang('phone'))?></label>
                      <div class="regPhone">
                        <input type="tel" name="phone" id="reg_phone" class="form-control" placeholder="<?= html_escape(lang('phone'))?>">
                        <input type="hidden" name="country_code" class="reg_country_code" value="<?= get_currency('code') ;?>">
                        <input type="hidden" name="dial_code" class="reg_dial_code" value="<?= get_currency('dial_code') ;?>">
                      </div>
                    </div>
                  </div>

                  <div class="row">
                    <div class="form-group col-sm-6">
                      <label for=""><?= html_escape(lang('password'));?></label>
                      <input type="password" name="password" class="form-control" placeholder="<?= html_escape(lang('password'));?>">
                    </div>

                     <div class="form-group col-sm-6">
                      <label for=""><?= html_escape(lang('confirm_password'))?></label>
                      <input type="password" name="cpassword" class="form-control" placeholder="<?= html_escape(lang('confirm_password'));?>">
                    </div>
                  </div>
                  <div class="row">
                    <div class="form-group col-md-12">
                      <label class="pointer"><input type="checkbox" name="terms"> <?=  !empty(lang('read_terms'))?lang('read_terms'):'I have read the Terms & Condition and accept them';?></label>
                    </div>
                  </div>

                  <?php if(isset($setting['is_recaptcha']) && $setting['is_recaptcha']==1): ?>
                    <div class="row mb-5">
                      <div class="col-md-6">
                        <div class="g-recaptcha" data-sitekey="<?= !empty($setting['g_site_key'])?$setting['g_site_key']:"";?>"></div>
                      </div>
                    </div>
                  <?php endif;?>


                  <div class="row">
                    <div class="form-group col-sm-12 text-right">
                      <input type="hidden" name="slug" value="<?= isset($slug)?$slug:'';?>">
                     <button type="submit" name="btn" class="btn btn-primary reg_btn mail_send_btn" disabled="true"><?= !empty(lang('registration_btn_text'))?html_escape(lang('registration_btn_text')):"Register"?></button>
                    </div>
                  </div>

                </form>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
<?php endif; ?>

<!-- load pricing  -->
<?php $this->load->view('inc/home_pricing'); ?>



  <!--payment Modal -->
  <div id="paymentModal" class="modal fade" role="dialog" data-backdrop="static" data-keyboard="false" >
    <div class="modal-dialog modal-dialog-centered" >
      <!-- Modal content-->
      <div class="modal-content">
        <div class="modal-body">
            <div class="load_view"></div>
        </div>
      </div>

    </div>
  </div>



