<link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
<div style="background-color: #f5f8fa;">
   <div class="uk-section-large">
      <div class="uk-container uk-container-large">
         <div uk-grid class="uk-child-width-1-1@s uk-child-width-2-3@l">
            <div class="uk-width-1-1@s uk-width-1-5@l uk-width-1-3@xl"></div>
            <div class="uk-width-1-1@s uk-width-3-5@l uk-width-1-3@xl">
               <div class="uk-card uk-card-default">
                  <div class="uk-card-header">
                     <h1>نیا اکاؤنٹ بنائیں</h1>
                  </div>
                  <div class="uk-card-body">
                     <center>
                        <h4><a class="uk-link-reset" href="<?=site_url()?>"><?=lang('site.name')?></a></h4>
                        <br />
                        <?=get('msg')?>
                        <?php if(count($errors)>0){
                           foreach ($errors as $err){
                           	echo "<p style='color: red'> $err</p>";
                           }
                           }
                           ?>	
                     </center>
                     <?php echo form_open(add_gets_to_url(current_url(),"s,return")); ?>
                     <fieldset class="uk-fieldset">
                        <div class="uk-margin">
                           <div class="uk-position-relative">
                              <span class="uk-form-icon ion-android-person"></span>
                              <input  class="uk-input"  name="user_name" placeholder="یوزر نیم" value="<?=set_value('user_name')?>">
                           </div>
						   <span style="color: red"><?=form_error('user_name')?></span>
                        </div>
                        <div class="uk-margin">
                           <div class="uk-position-relative">
                              <span class="uk-form-icon ion-android-person"></span>
                              <input  class="uk-input"  name="email" value="<?=set_value('email')?>" type="email"  placeholder="ای میل ایڈریس"> 
                           </div>
						   <span style="color: red"><?=form_error('email')?></span>
                        </div>
                        <div class="uk-margin">
                           <div class="uk-position-relative">
                              <span class="uk-form-icon ion-locked"></span>
                              <input class="uk-input" name="password" type="password"  placeholder="پاسورڈ">
                           </div>
						   <span style="color: red"><?=form_error('password')?></span>
                        </div>
                        <div class="uk-margin">
                           <div class="uk-position-relative">
                              <span class="uk-form-icon ion-locked"></span>
                              <input class="uk-input" name="user_re_pass" type="password"  placeholder="دوبارہ پاسورڈ داخل کریں">
                           </div>
						   <span style="color: red"><?=form_error('user_re_pass')?></span>
                        </div>
                        <div class="uk-margin">
						<?=$form_chack['form_code']?>
						</div>
                        <div class="uk-margin">
                           <button type="submit" class="uk-button uk-button-primary"><span class="ion-android-person-add"></span>
                          &nbsp; اکاؤنٹ بنائیں
                           </button>
                        </div>
                        <hr />
                        <center>
                           <p>
                              کیا آپ پہلے اکاؤنٹ بنا چکے ہیں؟
                           </p>
                           <a href="<?=base_url("accounts/log/in/?".lnks('return,s'))?>" class="uk-button uk-button-primary">
                            <span class="ion-forward"></span>&nbsp; اپنے اکاؤنٹ میں لاگ ان ہوں
                           </a>
                        </center>
                     </fieldset>
                     </form>
                  </div>
               </div>
            </div>
            <div class="uk-width-1-1@s uk-width-1-5@l uk-width-1-3@xl"></div>
         </div>
      </div>
   </div>
</div>
