<!-- begin #content -->
<div id="content" class="content">
    <div class="row">
        <div class="col-md-6">
            <h1 class="page-header"><?php echo $this->lang->line('volunteer'); ?> <small><?php echo $this->lang->line('add_volunteer_page'); ?></small></h1>
        </div>
    </div>

    <!-- begin row -->
    <div class="row">
        <div class="col-lg-6 offset-lg-3" style="direction:rtl;text-align:right;">
            <!-- begin panel -->
            <div class="panel panel-inverse">
                <?php if ($this->session->flashdata('warning')) : ?>
                    <div class="alert alert-warning alert-dismissible fade show" role="alert">
                        <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                            <span aria-hidden="true">×</span>
                        </button>
                        <?php echo $this->session->flashdata('warning'); ?>
                    </div>
                <?php endif; ?>
                <div class="panel-body">
                    <?php echo form_open('admin/volunteers/add', array('data-parsley-validate' => 'true', 'name' => 'add_volunteer')); ?>
                    <div class="form-group">
                        <label><?php echo $this->lang->line('name'); ?></label>
                        <input autofocus class="form-control" type="text" name="name" placeholder="<?php echo $this->lang->line('ph_volunteer_name'); ?>" data-parsley-required="true" />
                    </div>
                    <div class="form-group">
                        <label><?php echo $this->lang->line('username'); ?></label>
                        <input class="form-control" type="text" name="username" placeholder="<?php echo $this->lang->line('ph_volunteer_username'); ?>" data-parsley-required="true" />
                    </div>
                       <div class="form-group">
                        <label><?php echo $this->lang->line('batch'); ?></label>
                        <select class="combobox" name="batch">
                            <option value=""><?php echo $this->lang->line('select_class'); ?></option>
                            <?php for ($start_year = date('Y') + 5; $start_year >= 1900; $start_year--) : ?>
                                <option value="<?php echo $start_year; ?>"><?php echo $start_year; ?></option>
                            <?php endfor; ?>
                        </select>
                    </div>
                        <div class="form-group">
                        <label><?php echo $this->lang->line('profession'); ?></label>
                        <select class="combobox" name="profession_id">
                            <option value=""><?php echo $this->lang->line('select_profession'); ?></option>
                            <?php
                            $professions_info = $this->db->get('profession')->result_array();
                            foreach ($professions_info as $profession) :
                            ?>
                                <option value="<?php echo $profession['profession_id']; ?>"><?php echo $profession['name']; ?></option>
                            <?php endforeach; ?>
                        </select>
                    </div>
                    
                   
                    
                      <!--  Abu Shquier Start -->
                    
              <div class="row">
        <div class="col-lg-12">
            <div class="form-group">
                <select title="Select Level" name="regcountry" class="form-control" id="country-name">      
                    <option value="">اختر المرحلة</option>
                    <?php
                    foreach ($geCountries as $key => $element) {
                        echo '<option value="'.$element['country_id'].'">'.$element['country_name'].'</option>';
                    }
                    ?>
                </select>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-lg-12">
            <div class="form-group">
                <select title="Select Fac" name="state_name" class="form-control" id="state-name">      
                    <option value="">اختر الكليّة</option>
                </select>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-lg-12">
            <div class="form-group">
                <select title="Select Dept" name="city_name" class="form-control" id="city-name">      
                    <option value="">اختر التخصّص</option>
                </select>
            </div>
        </div>
    </div>
            
                    <div class="form-group">
                        <label><?php echo $this->lang->line('email'); ?></label>
                        <input class="form-control" type="text" name="email" placeholder="<?php echo $this->lang->line('ph_volunteer_email'); ?>" data-parsley-required="true" />
                    </div>
                    <div class="form-group">
                        <label><?php echo $this->lang->line('password'); ?></label>
                        <input type="text" name="password" id="password-indicator-visible" class="form-control m-b-5" data-parsley-required="true" />
                    </div>
                    <div class="form-group">
                        <label><?php echo $this->lang->line('mobile'); ?></label>
                        <input class="form-control" type="text" name="mobile" placeholder="<?php echo $this->lang->line('ph_volunteer_mobile'); ?>" />
                    </div>
                  
                
            
            
            
           <!-- Abu Shquier End -->
                    <div class="form-group">
                        <label><?php echo $this->lang->line('status'); ?></label>
                        <select class="combobox" name="status" data-parsley-required="true">
                            <option value=""><?php echo $this->lang->line('select_status'); ?></option>
                            <option value="0"><?php echo $this->lang->line('pending'); ?></option>
                            <option value="1"><?php echo $this->lang->line('active'); ?></option>
                        </select>
                    </div>
                    
                    

                    <button type="submit" class="md-sm btn btn-success"><?php echo $this->lang->line('add'); ?></button>
                    <?php echo form_close(); ?>
                </div>
            </div>
            <!-- end panel -->
        </div>
        <!-- end col-6 -->
    </div>
    <!-- end row -->
</div>
<!-- end #content
<?php
$this->load->view('templates/footer');
//$this->load->view('alumni/index');

//include 'templates/footer.php';
?>