




<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"><?php echo $this->lang->line('main') ?></span>
                </div>
                
              </div>
            </div>

        <div class="row">
     <div class="col-md-12">
<div  style="float:right"><div  style="margin-left:10px"><a href="<?= base_url()?>/orders/add/" class="btn btn-block btn-primary"  style="margin-bottom:5px"><i class="icon-pencil  icon-white"> </i><?php echo $this->lang->line('add-an-invoice') ?></a> 	</div>
        </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">
              <a href="<?=base_url('producer/bill_report')?>" class="btn btn-primary " style="float: right;"><?php echo $this->lang->line('report') ?></a>
              <h3 class="box-title"><?php echo $this->lang->line('products') ?> </h3>
            </div>
            <!-- /.box-header -->
            <div class="box-body">
              <table class="table table-bordered">
                <tr>
           
                  <th><?php echo $this->lang->line('the-product') ?></th>
                      <th><?php echo $this->lang->line('current-bills') ?></th>
                      <th><?php echo $this->lang->line('invoices-ended') ?></th>
                  <th><?php echo $this->lang->line('fees') ?></th>
                  <th ><?php echo $this->lang->line('total-fees') ?></th>
                        <th ><?php echo $this->lang->line('total-discount') ?></th>
                        <th ><?php echo $this->lang->line('total') ?></th>
                        <th ><?php echo $this->lang->line('paid-up') ?>	</th>
                       <th style="width: 40px"></th>
                            
                             </tr>
                
                     <?php $count=0; foreach($all_groups as $row):?>
                <tr>
                  <td><?= $row['name']; ?></td>
                  
                <td><a  class="update btn btn-sm btn-success pull-right" href="<?= base_url('orders/all/1/'.$row['id'].'/2')?>"><?= $row['bills_orders']; ?></a></td>
                     <td><a  class="update btn btn-sm btn-danger pull-right" href="<?= base_url('orders/all/1/'.$row['id'].'/1')?>"><?= $row['bills_orders2']; ?></a></td>
                     
                  
                        <td><?= $row['valuess']; ?></td>
                        
                        <td><?= $row['payment']; ?></td>
                            <td><?= $row['discount']; ?></td>
                            
                               <td><?= $row['payment']-$row['discount']; ?></td>
                                <td><?= $row['discount']; ?></td>
          
                
            
             
                     <td>     <a  class="update btn btn-sm btn-success pull-right" href="<?= base_url('orders/all/1/'.$row['id'])?>"><i class="material-icons"><?php echo $this->lang->line('invoices') ?></i></a>
                    </td>
       
           
             
                   
                 
           
                </tr>
              
                    <?php endforeach; ?>
                
              </table>
            </div>
            <!-- /.box-body -->
                   
          </div>
          <!-- /.box -->

          
          <!-- /.box -->
        </div>
     </div>
      </div>
      <!-- /.row -->
  
