

<div class="kt-content  kt-grid__item kt-grid__item--fluid kt-grid kt-grid--hor" id="kt_content">
  
            <!-- begin:: Content Head -->
            <div class="kt-subheader  kt-grid__item" id="kt_subheader">
              <div class="kt-container  kt-container--fluid ">
                <div class="kt-subheader__main">
                  <h3 class="kt-subheader__title"><a href="<?php echo base_url() ?>Dashboard/"><?php echo $this->lang->line('dashboard'); ?></a></h3>
                  <span class="kt-subheader__separator kt-subheader__separator--v"></span>
                  <span class="kt-subheader__desc"><a href="<?=base_url('user/')?>"><?php echo $this->lang->line('the-students') ?></a></span>
                </div>
              </div>
            </div>
<div class="row">
    <!-- Main content -->

    <div class="row">
        <div class="col-md-12">
            <div class="box">
                <div class="box-header with-border">
                    <h3 class="box-title"><?php echo $this->lang->line('view-student') ?> </h3>
                </div>
                <!-- /.box-header -->
                <div class="box-body">
                    <table class="table table-bordered">
                        <tr>

                            <th  colspan="4"><?php echo $this->lang->line('data') ?></th>

                        </tr>

                        <tr>
                            <td><?php echo $this->lang->line('the-name') ?></td>
                            <td><?= $show['username']; ?></td>
                            <td><?php echo $this->lang->line('civil-no') ?></td>
                            <td><?= $show['cid_user']; ?></td>
                        </tr>

                        <tr>
                            <td><?php echo $this->lang->line('e-mail') ?></td>
                            <td><?= $show['email']; ?> </td>
                            <td><?php echo $this->lang->line('nationality') ?></td>
                            <td><?= $show['city']; ?> </td>
                        </tr>
                          <tr>
                            <td><?php echo $this->lang->line('students') ?> <?php echo $this->lang->line('mobile') ?></td>
                            <td><?= $show['phone']; ?> </td>
                            <td><?php echo $this->lang->line('guardion') ?> <?php echo $this->lang->line('mobile') ?></td>
                            <td><?= $show['phone_father']; ?> </td>

                        </tr>
                        
                           <tr>
                            <td> <?php echo $this->lang->line('region') ?></td>
                            <td><?= $show['country']; ?> </td>
                            <td><?php echo $this->lang->line('the-piece') ?>  </td>
                            <td><?= $show['city3']; ?> </td>
                        </tr>
                        
                          <tr>
                            <td><?php echo $this->lang->line('title') ?></td>
                            <td><?= $show['title']; ?> </td>
                            <td><?php echo $this->lang->line('the-description') ?>  </td>
                            <td><?= $show['note']; ?> </td>
                        </tr>
                        <tr>
                            <td><?php echo $this->lang->line('date-of-birth') ?></td>
                            <td><?= $show['age']; ?> </td>
                            <td><?php echo $this->lang->line('sex') ?></td>
                            <td><?= $show['sex']; ?> </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </div>
        <!-- /.row -->
    <!-- /.box -->
</div>
     <div class="row hidden-print" style="margin-left: 30px;">
        <br>
        <?php  if(get_ap('student_edit',$this->operator_id)==1){ ?>
        <a title="Edit" class="update btn btn-sm btn-primary pull-right" href="<?= base_url('' . $this->thispage . '/edit/' . $show['id']) ?>"><i class="material-icons"><?php echo $this->lang->line('edit') ?></i></a>
      <?php }  if(get_ap('student_del',$this->operator_id)==1){ ?>


       <button title="delete" class="update btn btn-sm btn-danger pull-right" onclick="alert_box()"><i class="material-icons"><?php echo $this->lang->line('delete') ?></i></button>
        <?php } ?>

        <br> <br>     <!-- /.box -->
</div>
  <div class="row">
    <!-- Main content -->
   
      <div class="row">
        <div class="col-md-12">
          <div class="box">
            <div class="box-header with-border">
              <h3 class="box-title"> <?php echo $this->lang->line('invoices') ?> </h3>
            </div>
            <!-- /.box-header -->
            <div class="box-body">
              <table class="table table-bordered">
                <tr>
              <th><?php echo $this->lang->line('date-added') ?></th>
                   <th><?php echo $this->lang->line('number') ?></th>
                  <th ><?php echo $this->lang->line('the-product') ?></th>
                   <th ><?php echo $this->lang->line('the-beginning') ?></th>
                   <th ><?php echo $this->lang->line('end') ?></th>
                        <th ><?php echo $this->lang->line('fees') ?></th>
                   <th ><?php echo $this->lang->line('payment') ?></th>
                      <th ><?php echo $this->lang->line('status') ?></th>
                       <th style="width: 40px"></th>
                             </tr>
                     <?php $count=0; foreach($bills_orders as $row):?>
                <tr>
                  <td><?= $row['date_now']; ?></td>
                        <td><?= $row['id']; ?></td>
                      <td><?= $row['name_order']; ?> </td>
                          <td><?= $row['start_date']; ?> </td>
                              <td><?= $row['expiry_date']; ?> </td>
                                  <td><?php if(empty($row['discount_remainder'])){
                echo $row['payment'];
                }else{
                echo $row['discount_remainder'];
                }?> </td>
                
             <td><?php $row['paid']=4; if($row['paid']=='0')echo '<span class="label label-danger">'.$this->lang->line('not-paid').'</span>'; 
             if($row['paid']=='1')echo '<span class="label label-success">'.$this->lang->line('payment-is-made').'</span>';
                     if($row['paid']=='3')echo '<span class="label label-warning">'.$this->lang->line('complimentary').'</span>';
                             if($row['paid']=='4')echo '<span class="label label-primary">'.$this->lang->line('retriever').'</span>';
             
             ?></td>
             
               <td><?php if($row['active']!='0')echo '<span class="label label-danger">'. $this->lang->line('not-active') .'</span>'; 
             if($row['active']=='0')echo '<span class="label label-success">'.$this->lang->line('active').'</span>';
             ?></td>
                    <td>     <button  class="update btn btn-sm btn-warning pull-right" onclick="alert_box()"><i class="material-icons"><?php echo $this->lang->line('delete') ?></i></button>
                    </td>
                </tr>
                    <?php endforeach; ?>
              </table>
            </div>
            <!-- /.box-body -->
          </div>
          <!-- /.box -->
          <!-- /.box -->
        </div>
     </div>
      </div><script>function alert_box() { 
  var result= confirm("Are You Confirm!")
  if(result){
    window.location.href = "<?php echo base_url(''.$this->thispage.'/del/'.$show['id']) ?>";

  }
  
}</script>