<div class="col-lg-12">
    
    <section class="panel">
        <header class="panel-heading" style="min-height:120px">

            <h4 class="text-center"><i class="fa fa-truck truck_icon"></i><br/> <b>ETC Cargo Limited - ICD Container Out – Vehicle Gate Entry(Transit)- Gate1 – Entry officer  </b></h4>

        </header>
 
        <div class="panel-body"> 
            <form class="form-horizontal" method="post" action="<?php echo base_url();?>icd/token_type_ctrl/transit_search_list">
                <div class="col-lg-12">
                    <div class="form-group col-md-8">
                        <div class="col-lg-12">
                            <input type="text" class="form-control" placeholder="Token No" name="token_no_val">

                        </div>
                    </div> 
                    <div class="col-lg-">
                        <button type="submit" class="btn btn-success"> <i class="fa fa-search"></i>&nbsp; </button>
                    </div>                    
                </div>
            </form>
        </div>

        
        <div class="panel-body">
            <section id="unseen">
                <table class="table table-bordered table-striped table-condensed">
                    <thead>
                        <tr>
                            <th>Date & Time</th>
                            <th>Ref No </th>
                            <th>Bill Of Lading</th>
                            <th>Proforma Invoice </th>
                            <th>Gate Entry No</th>
                            <th>Token No </th> 
                            <th>Token Exp Date  </th>
                            <th>Type</th>
                            <th>Token Type </th>
                            <th>&nbsp;</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php
							foreach($igetl_list as $igetl_key=>$igetl_row){
                                if($igetl_row['igetl_token_type']=='Transit-Empty-Container'){
                                    if($igetl_row['igetl_iovgete_proceed_geo_status']=='1' && $igetl_row['igetl_iovgete_aproove_iao_status']=='0'){
                        ?>     
                                        <tr>
                                            <td> <?php echo $igetl_row['idl_date'];?>  </td>
                                            <td><?php echo $igetl_row['idl_ref_no'];?> </td>
                                            <td><?php echo $igetl_row['idl_bill_of_loading'];?> </td>
                                            <td><?php echo $igetl_row['idl_proforma_invoice'];?> </td>
                                            <td><?php echo $igetl_row['igedl_gate_entry_no'];?>  </td> 
                                            <td><?php echo $igetl_row['igetl_token_no'];?>  </td>
                                            <td><?php echo $igetl_row['igetl_expiry_date'];?>  </td>
                                            <td><?php echo $igetl_row['csl_name'];?>  </td>
                                            <td><?php echo $igetl_row['igetl_token_type'];?>  </td>                                     
                                            <td>
                                                <a href="<?php echo base_url();?>icd/transit_empty_ctrl/icd_out_vehicle_transit_empty_aproove_form/<?php echo $igetl_row['igetl_id'];?>" class="btn btn-sm btn-success fa fa-eye"> </a>                                              
                                            </td>   
                                        </tr>
                        <?php
                                    }
                                    if($igetl_row['igetl_iovgete_aproove_iao_status']=='1' && $igetl_row['igetl_gpote_igeo_status']=='0'){
                        ?>     
                                        <tr>
                                            <td> <?php echo $igetl_row['idl_date'];?>  </td>
                                            <td><?php echo $igetl_row['idl_ref_no'];?> </td>
                                            <td><?php echo $igetl_row['idl_bill_of_loading'];?> </td>
                                            <td><?php echo $igetl_row['idl_proforma_invoice'];?> </td>
                                            <td><?php echo $igetl_row['igedl_gate_entry_no'];?>  </td> 
                                            <td><?php echo $igetl_row['igetl_token_no'];?>  </td>
                                            <td><?php echo $igetl_row['igetl_expiry_date'];?>  </td>
                                            <td><?php echo $igetl_row['csl_name'];?>  </td>
                                            <td><?php echo $igetl_row['igetl_token_type'];?>  </td>                                     
                                            <td>
                                                <a href="<?php echo base_url();?>icd/transit_empty_ctrl/icd_gate_pass_out_icd_gate_transit_empty_form/<?php echo $igetl_row['igetl_id'];?>" class="btn btn-sm btn-success fa fa-eye"> </a>                                              
                                            </td>   
                                        </tr>
                        <?php
                                    }
                                    if($igetl_row['igetl_gpote_aproove_iomo_status']=='1' && $igetl_row['igetl_igvpote_igeo_status']=='0'){
                        ?>     
                                        <tr>
                                            <td> <?php echo $igetl_row['idl_date'];?>  </td>
                                            <td><?php echo $igetl_row['idl_ref_no'];?> </td>
                                            <td><?php echo $igetl_row['idl_bill_of_loading'];?> </td>
                                            <td><?php echo $igetl_row['idl_proforma_invoice'];?> </td>
                                            <td><?php echo $igetl_row['igedl_gate_entry_no'];?>  </td> 
                                            <td><?php echo $igetl_row['igetl_token_no'];?>  </td>
                                            <td><?php echo $igetl_row['igetl_expiry_date'];?>  </td>
                                            <td><?php echo $igetl_row['csl_name'];?>  </td>
                                            <td><?php echo $igetl_row['igetl_token_type'];?>  </td>                                     
                                            <td>
                                                <a href="<?php echo base_url();?>icd/transit_empty_ctrl/icd_gate_vehicle_pass_out_transit_empty_form/<?php echo $igetl_row['igetl_id'];?>" class="btn btn-sm btn-success fa fa-eye"> </a>                                              
                                            </td>   
                                        </tr>
                        <?php
                                    }
                                }
                                if($igetl_row['igetl_token_type']=='Transit-Material'){
                                    if($igetl_row['igetl_otm_geo_status']=='1' && $igetl_row['igetl_otm_iao_status']=='0'){
                        ?>     
                                        <tr>
                                            <td> <?php echo $igetl_row['idl_date'];?>  </td>
                                            <td><?php echo $igetl_row['idl_ref_no'];?> </td>
                                            <td><?php echo $igetl_row['idl_bill_of_loading'];?> </td>
                                            <td><?php echo $igetl_row['idl_proforma_invoice'];?> </td>
                                            <td><?php echo $igetl_row['igedl_gate_entry_no'];?>  </td> 
                                            <td><?php echo $igetl_row['igetl_token_no'];?>  </td>
                                            <td><?php echo $igetl_row['igetl_expiry_date'];?>  </td>
                                            <td><?php echo $igetl_row['csl_name'];?>  </td>
                                            <td><?php echo $igetl_row['igetl_token_type'];?>  </td>                                     
                                            <td>
                                                <a href="<?php echo base_url();?>icd/iao_ctrl/icd_out_transit_material_authorize_form/<?php echo $igetl_row['igetl_id'];?>" class="btn btn-sm btn-success fa fa-eye"> </a>                                              
                                            </td>   
                                        </tr>
                        <?php
                                    }
                                    if($igetl_row['igetl_otm_proceed_geo_status']=='1' && $igetl_row['igetl_otm_igeo_status']=='0'){
                        ?>     
                                        <tr>
                                            <td> <?php echo $igetl_row['idl_date'];?>  </td>
                                            <td><?php echo $igetl_row['idl_ref_no'];?> </td>
                                            <td><?php echo $igetl_row['idl_bill_of_loading'];?> </td>
                                            <td><?php echo $igetl_row['idl_proforma_invoice'];?> </td>
                                            <td><?php echo $igetl_row['igedl_gate_entry_no'];?>  </td> 
                                            <td><?php echo $igetl_row['igetl_token_no'];?>  </td>
                                            <td><?php echo $igetl_row['igetl_expiry_date'];?>  </td>
                                            <td><?php echo $igetl_row['csl_name'];?>  </td>
                                            <td><?php echo $igetl_row['igetl_token_type'];?>  </td>                                     
                                            <td>
                                                <a href="<?php echo base_url();?>icd/igeo_ctrl/icd_out_transit_material_icd_gate_form/<?php echo $igetl_row['igetl_id'];?>" class="btn btn-sm btn-success fa fa-eye">  </a>                                              
                                            </td>   
                                        </tr>
                        <?php
                                    }
                                    if($igetl_row['igetl_otm_igeo_status']=='1' && $igetl_row['igetl_tm_igeo_status']=='0'){
                        ?>     
                                        <tr>
                                            <td> <?php echo $igetl_row['idl_date'];?>  </td>
                                            <td><?php echo $igetl_row['idl_ref_no'];?> </td>
                                            <td><?php echo $igetl_row['idl_bill_of_loading'];?> </td>
                                            <td><?php echo $igetl_row['idl_proforma_invoice'];?> </td>
                                            <td><?php echo $igetl_row['igedl_gate_entry_no'];?>  </td> 
                                            <td><?php echo $igetl_row['igetl_token_no'];?>  </td>
                                            <td><?php echo $igetl_row['igetl_expiry_date'];?>  </td>
                                            <td><?php echo $igetl_row['csl_name'];?>  </td>
                                            <td><?php echo $igetl_row['igetl_token_type'];?>  </td>                                     
                                            <td>
                                                <a href="<?php echo base_url();?>icd/igeo_ctrl/icd_transit_material_icd_gate_form/<?php echo $igetl_row['igetl_id'];?>" class="btn btn-sm btn-success fa fa-eye">  </a>                                              
                                            </td>   
                                        </tr>
                        <?php
                                    }
                                    if($igetl_row['igetl_tm_iomo_status']=='1' && $igetl_row['igetl_tm_print_igeo_status']=='0'){
                        ?>     
                                        <tr>
                                            <td> <?php echo $igetl_row['idl_date'];?>  </td>
                                            <td><?php echo $igetl_row['idl_ref_no'];?> </td>
                                            <td><?php echo $igetl_row['idl_bill_of_loading'];?> </td>
                                            <td><?php echo $igetl_row['idl_proforma_invoice'];?> </td>
                                            <td><?php echo $igetl_row['igedl_gate_entry_no'];?>  </td> 
                                            <td><?php echo $igetl_row['igetl_token_no'];?>  </td>
                                            <td><?php echo $igetl_row['igetl_expiry_date'];?>  </td>
                                            <td><?php echo $igetl_row['csl_name'];?>  </td>
                                            <td><?php echo $igetl_row['igetl_token_type'];?>  </td>                                     
                                            <td>
                                                <a href="<?php echo base_url();?>icd/igeo_ctrl/icd_out_transit_material_icd_gate_print_form/<?php echo $igetl_row['igetl_id'];?>" class="btn btn-sm btn-success fa fa-eye">  </a>                                              
                                            </td>   
                                        </tr>
                        <?php
                                    }
                                }
                            }
                        ?>
                    </tbody>
                </table>
            </section>
        </div>

    </section>
</div>