<!-- begin:: Subheader -->
<div class="kt-subheader   kt-grid__item" id="kt_subheader">
<div class="kt-container  kt-container--fluid ">
    <div class="kt-subheader__main">       
        <div class="kt-subheader__breadcrumbs">
            <a  class="kt-subheader__breadcrumbs-link">
                Users </a>
            <span class="kt-subheader__breadcrumbs-separator"></span>
            <a class="kt-subheader__breadcrumbs-link">
                Add User </a>
            <span class="kt-subheader__breadcrumbs-separator"></span>
            
        </div>
    </div>                                        
</div>
</div>
<!-- end:: Subheader -->
<!-- begin:: Content -->
<div class="kt-container  kt-container--fluid  kt-grid__item kt-grid__item--fluid">
   <div class="kt-portlet">
      <div class="kt-portlet__body kt-portlet__body--fit">
         <div class="kt-grid  kt-wizard-v1 kt-wizard-v1--white" id="kt_projects_add" data-ktwizard-state="first">            
            <div class="kt-grid__item kt-grid__item--fluid kt-wizard-v1__wrapper">
               <!--begin: Form Wizard Form-->
               <form class="kt-form" id="kt_form" action="<?=base_url();?>admin/process_add_center<?php if(isset($_GET['center_id'])){ echo '?center_id='.$_GET['center_id'];} ?>" method="post" novalidate="novalidate">
                  <!--begin: Form Wizard Step 1-->
                  <div class="kt-wizard-v1__content" data-ktwizard-type="step-content" data-ktwizard-state="current">
                     <div class="kt-heading kt-heading--md">Basic Information:</div>
                     <div class="kt-section kt-section--first">
                        <div class="kt-wizard-v1__form">
                           <div class="row">
                             <?php $validation = \Config\Services::validation(); ?>
                              <div class="col-xl-12">
                                 <div class="kt-section__body">                                    
                                    <div class="form-group row <?= $validation->hasError('first_name') ? 'has-error' : ''; ?>">
                                        <label class="col-xl-3 col-lg-3 col-form-label">Name
                                            <span class="required"> * </span>
                                        </label>
                                        <div class="col-lg-9 col-xl-9">
                                            <input type="text" name="first_name" id="first_name" placeholder="Enter Full Name" class="form-control input-height" value="<?=old('first_name');?>" required/> 
                                            <span class="help-block"> <?= $validation->getError('first_name'); ?> </span>
                                            </div>
                                    </div>
                                    <div class="form-group row <?= $validation->hasError('mobile') ? 'has-error' : ''; ?>">
                                        <label class="col-xl-3 col-lg-3 col-form-label">Mobile No.
                                            <span class="required"> * </span>
                                        </label>
                                        <div class="col-lg-9 col-xl-9">
                                            <input name="mobile" id="mobile" type="text" placeholder="Mobile Number" maxlength="10" class="form-control input-height" value="<?=old('mobile');?>" required/> 
                                            <span class="help-block"> <?= $validation->getError('mobile'); ?> </span>
                                            </div>
                                    </div>                                           
                                    <div class="form-group row <?= $validation->hasError('email') ? 'has-error' : ''; ?>">
                                        <label class="col-xl-3 col-lg-3 col-form-label">Email ID
                                        </label>
                                        <div class="col-lg-9 col-xl-9">
                                             <input type="text" class="form-control input-height" name="email" id="email" placeholder="Email Address" value="<?=old('email');?>" required/>
                                        <span class="help-block"> <?= $validation->getError('email'); ?> </span>
                                        </div>
                                    </div>
                                    <div class="form-group row <?= $validation->hasError('user_name') ? 'has-error' : ''; ?>">
                                        <label class="col-xl-3 col-lg-3 col-form-label">User Name
                                            <span class="required"> * </span>
                                        </label>
                                        <div class="col-lg-9 col-xl-9">
                                            <input type="text" name="user_name" id="user_name" placeholder="Enter User Name" class="form-control input-height" value="<?=old('user_name');?>" autocomplete="nope" required/>
                                            <span class="help-block"> <?= $validation->getError('user_name'); ?> </span>
                                            </div>
                                    </div>
                                    <div class="form-group row <?= $validation->hasError('password') ? 'has-error' : ''; ?>">
                                        <label class="col-xl-3 col-lg-3 col-form-label">Password
                                            <span class="required"> * </span>
                                        </label>
                                        <div class="col-lg-9 col-xl-9">
                                            <input type="password" name="password" id="password" placeholder="Enter password" class="form-control input-height" value="<?=old('password');?>"  autocomplete="new-password" required/>
                                             <span class="help-block"> <?= $validation->getError('password'); ?> </span>
                                            </div>
                                    </div>
                                     <div class="form-group row <?= $validation->hasError('university') ? 'has-error' : ''; ?>">
                                        <label class="col-xl-3 col-lg-3 col-form-label">University  
                                            <span class="required"> * </span>
                                        </label>
                                        <div class="col-lg-9 col-xl-9">                                             
                                            <?php $selectedUniversity = old('university'); ?>

                                            <select name="university" id="university" class="form-control input-height" required>
                                                <option value="">Choose University</option>

                                                <option value="Jaipur National University"
                                                    <?= ($selectedUniversity == 'Jaipur National University') ? 'selected' : ''; ?>>
                                                    Jaipur National University
                                                </option> 

                                                <option value="Jagannath University"
                                                    <?= ($selectedUniversity == 'Jagannath University') ? 'selected' : ''; ?>>
                                                    Jagannath University
                                                </option> 

                                                <option value="JECRC"
                                                    <?= ($selectedUniversity == 'JECRC') ? 'selected' : ''; ?>>
                                                    JECRC
                                                </option> 

                                                <option value="Chandigarh University"
                                                    <?= ($selectedUniversity == 'Chandigarh University') ? 'selected' : ''; ?>>
                                                    Chandigarh University
                                                </option> 

                                                <option value="Lingayas - Distance"
                                                    <?= ($selectedUniversity == 'Lingayas - Distance') ? 'selected' : ''; ?>>
                                                    Lingayas - Distance
                                                </option> 

                                                <option value="Lingayas - B.tech"
                                                    <?= ($selectedUniversity == 'Lingayas - B.tech') ? 'selected' : ''; ?>>
                                                    Lingayas - B.tech
                                                </option>

                                                <option value="Lingayas - Law"
                                                    <?= ($selectedUniversity == 'Lingayas - Law') ? 'selected' : ''; ?>>
                                                    Lingayas - Law
                                                </option>   

                                            </select> 

                                            <span class="help-block">
                                                <?= $validation->getError('university'); ?>
                                            </span>
                                        </div>
                                    </div>
                                    <?php /*
                                    <div class="form-group row <?php if(form_error('counselor_id')){ ?>has-error<?php } ?>">
                                        <label class="col-xl-3 col-lg-3 col-form-label">RM Name
                                                    <span class="required"> * </span>
                                        </label>
                                        <div class="col-lg-9 col-xl-9">                        
                                          <select name="counselor_id" id="counselor_id" class="form-control input-height" required>
                                                        <option value="">Choose RM</option>
                                            <?php
                                            $counselor = get_counselor_list();
                                            foreach($counselor as $value){ ?>
                                            <option value="<?=$value['id'];?>" <?=set_select('counselor_id', $value['id']);?>><?=$value['counselor_name'];?></option>
                                          <?php } ?>    
                                        </select> 
                                        <span class="help-block"> <?=form_error('counselor_id'); ?> </span>
                                      </div>
                                     </div> */?>
                                    <div class="form-group row">
                                        <label class="col-xl-3 col-lg-3 col-form-label">Status
                                            <span class="required"> * </span>
                                        </label>
                                        <div class="col-lg-9 col-xl-9"> 
                                        
                                            <input type="radio" name="status" id="optionsRadios" value="1" <?php echo set_checkbox('status', '1'); ?> checked />
                                            <label for="optionsRadios">
                                                Active 
                                            </label>
                                            <input type="radio" name="status" id="optionsRadios1" value="2" <?php echo set_checkbox('status', '2'); ?> />
                                            <label for="optionsRadios1">
                                                Inactive
                                            </label>                                                                        
                                            
                                        </div>
                                    </div>                                                
                                    
                                 </div>
                              </div>
                           </div>
                        </div>
                     </div>
                  </div>
                  <!--end: Form Wizard Step 1-->         
                 <!--begin: Form Actions -->
                  <div class="kt-form__actions">                    
                     <button type="Submit" class="btn btn-brand btn-md btn-tall btn-wide kt-font-bold kt-font-transform-u" data-ktwizard-type="action-next">
                        Submit
                     </button>
                  </div>
                  <!--end: Form Actions -->
               </form>
               <!--end: Form Wizard Form-->
            </div>
         </div>
      </div>
   </div>
</div>