<section class="content-header">
      <h1>
          <br>
      </h1>
    <ol class="breadcrumb" style="right: 10px;">
        <li><a href="<?=base_url('Dashboard/')?>"><i class="fa fa-dashboard"></i><?php echo $this->lang->line('main') ?></a></li>
        <li><a href="<?=base_url('bills/')?>"><?php echo $this->lang->line('invoices') ?></a></li>
      </ol>
    </section>
    <!-- Content Header (Page header) -->
<div class="row">
        <!-- left column -->
        <div class="col-md-12">
          <!-- general form elements -->
          <div class="box box-primary">
            <div class="box-header with-border">
              <h3 class="box-title"><?php echo $this->lang->line('modify-an-invoices') ?></h3>
            </div>
         
                 <?php if(isset($msg) || validation_errors() !== ''): ?>
            <div class="alert alert-warning alert-dismissible">
                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                <h4><i class="icon fa-warning"></i> Alert!</h4>
                <?= validation_errors();?>
                <?= isset($msg)? $msg: ''; ?>
            </div>
        <?php endif; ?>   
              
              
           <?php echo form_open_multipart(base_url(''.$thispage.'/edit/'.$edit['id'])); ?>
      <div class="box-body">
            
                <div class="form-group">
                  <label ><?php echo $this->lang->line('the-amount') ?> </label>
                  <input type="text" class="form-control" id="exampleInputEmail1" placeholder="<?php echo $this->lang->line('the-amount') ?> " name="text1" required autofocus value="<?=$edit['text1']?>">
                </div>
                  
                     <div class="form-group">
                      <label><?php echo $this->lang->line('type') ?></label>
                  <div class="radio">
                   
                      <input type="radio" name="catid"  value="2"  <?=$edit['checked'][2]?>>
                <label> <?php echo $this->lang->line('expenses') ?>
                    </label>
                  </div>
                  <div class="radio">
                  
                      <input type="radio" name="catid"  value="1" <?=$edit['checked'][1]?>>
               <label>   <?php echo $this->lang->line('income') ?>
                    </label>
                  </div>
                      
                         <div class="radio">
                    <input type="radio" name="catid"  value="3" <?=$edit['checked'][3]?>>
                 <label>
                       <?php echo $this->lang->line('advance') ?> <?php echo $this->lang->line('payment') ?>
                    </label>
                  </div>
                         <div class="radio">
                 
                      <input type="radio" name="catid"  value="5" <?=$edit['checked'][5]?>>
             <label>   <?php echo $this->lang->line('export') ?>
                    </label>
                  </div>
                      
                         <div class="radio">
                 
                      <input type="radio" name="catid"  value="8" <?=$edit['checked'][8]?>>
             <label>   <?php echo $this->lang->line('recovery') ?>
                    </label>
                  </div>
                
                </div>   
                  
        
           
                  
               
              <div class="form-group">
                  <label><?php echo $this->lang->line('describe') ?></label>
                  <textarea class="form-control" rows="3" placeholder="<?php echo $this->lang->line('describe') ?> ..." name="text2"><?=$edit['text2']?></textarea>
                </div>
                  
                  
                       <div class="form-group">
                  <label for="exampleInputPassword1">   <?php echo $this->lang->line('the-recipient-s-name') ?>	</label>
                  <input type="text" class="form-control" id="exampleInputPassword1" placeholder=" <?php echo $this->lang->line('the-recipient') ?> " name="text11" value="<?=$edit['text11']?>">
                </div>  
                  <div class="form-group">
                  <label for="exampleInputPassword1">  <?php echo $this->lang->line('free-to') ?>	</label>
                  <input type="text" class="form-control" id="exampleInputPassword1" placeholder="<?php echo $this->lang->line('to-me') ?> " name="text12" value="<?=$edit['text12']?>">
                </div>
                  
                  
                 
                    <div class="form-group">
                  <label for="exampleInputPassword1">  <?php echo $this->lang->line('the-phone') ?>	</label>
                  <input type="number" class="form-control" id="exampleInputPassword1" placeholder=" <?php echo $this->lang->line('the-phone') ?> " name="text13" value="<?=$edit['text13']?>">
                </div>
                
              <div class="form-group">
                  <label for="exampleInputPassword1"> <?php echo $this->lang->line('history') ?>	</label>
                  <input type="number" class="form-control" id="exampleInputPassword1" placeholder="<?php echo $this->lang->line('history') ?> " name="dateadd" value="<?=$edit['dateadd']?>">
                </div>
              </div>  
             
              <!-- /.box-body -->

              <div class="box-footer">
                  <button type="submit" class="btn btn-primary" name="submit" value="pl"><?php echo $this->lang->line('modification') ?></button>
              </div>
            </form>
          </div>
          <!-- /.box -->

   
        </div>
        <!--/.col (left) -->
        <!-- right column -->
      
        <!--/.col (right) -->
      </div>
