<div class="col-lg-12">
    <section class="panel">
        <header class="panel-heading" style="min-height:120px">
            <div class="col-lg-3"> <span>Ref No : <?php echo $idl_data['idl_ref_no'];?></span> </div>
            <div class="col-lg-6">
                <h4 class="text-center"><i class="fa fa-truck truck_icon"></i><br/> <b>ETC Cargo Limited(ICD018) - Container Details Entry – Truck Nomination Officer </b></h4></div>
            <div class="col-lg-3"><span>Date : <?php echo $idl_data['idl_date'];?></span></div>
        </header>
        <div class="clear"></div>
        <div class="panel-body">
            <form class="form-horizontal" method="post" action="<?php echo base_url();?>icd/tno_ctrl/update_truck_nominationy_details/<?php echo $idl_data['idl_id'];?>">
                <div class="col-lg-12">
                    <div class="form-group col-md-6">
                        <label class="col-lg-4 col-sm-4">Vessel Name </label>
                        <div class="col-lg-8">

							<input type="text" class="form-control" value="<?php echo $idl_data['idl_vessel_name'];?>" readonly required>
                            
                        </div>
                    </div>
                    
                    <div class="form-group col-md-6">
                        <label class="col-lg-4 col-sm-4">Bill Of Lading </label>
                        <div class="col-lg-8">
                            <input type="text" class="form-control" value="<?php echo $idl_data['idl_bill_of_loading'];?>" readonly required>
                        </div>
                    </div>                   
                    <div class="form-group col-md-6">
                        <label class="col-lg-4 col-sm-4">Shipping Line </label>
                        <div class="col-lg-8">
							<input type="text" class="form-control" value="<?php echo $idl_data['idl_shipping_line'];?>" readonly required>
                        </div>
                    </div>
                    <div class="form-group col-md-6">
                        <label class="col-lg-4 col-sm-4">Time In </label>
                        <div class="col-lg-8">
							<input type="text" class="form-control" value="<?php echo $idl_data['idl_time_in'];?>" readonly >
                        </div>
                    </div>
                    <div class="form-group col-md-6">
                        <label class="col-lg-4 col-sm-4">Payment Agency </label>
                        <div class="col-lg-8">
                            <input type="text" class="form-control" value="<?php echo $idl_data['pal_name'];?>" readonly required>
                        </div>
                    </div>
					<div class="form-group col-md-6">
                        <label class="col-lg-4 col-sm-4">Container Status </label>
                        <div class="col-lg-8">
							<input type="text" class="form-control" value="<?php echo $idl_data['csl_name'];?>" readonly required>
                        </div>
                    </div>                    
                    <div class="form-group col-md-6">
                        <label class="col-lg-4 col-sm-4">Proforma Invoice  </label>
                        <div class="col-lg-8">
                            <input type="text" class="form-control" value="<?php echo $idl_data['idl_proforma_invoice'];?>" readonly>
                        </div>
                    </div>
                    <div class="form-group col-md-6">
                        <label class="col-lg-4 col-sm-4 ">Type Of Cargo </label>
                        <div class="col-lg-8">
                            <input type="text" class="form-control" value="<?php echo $idl_data['ctl_name'];?>" readonly required>
                        </div>
                    </div> 
                    <div class="form-group col-md-6">
                        <label class="col-lg-4 col-sm-4">Billing Reference </label>
                        <div class="col-lg-8">
                            <input type="text" class="form-control" value="<?php echo $idl_data['idl_bill_refer'];?>" readonly>
                        </div>
                    </div>  
                    <div class="form-group col-md-6">
                        <label class="col-lg-4 col-sm-4"> Destination </label>
                        <div class="col-lg-8">
                            <input type="text" class="form-control" value="<?php echo $idl_data['idl_destination'];?>" readonly>
                        </div>
                    </div>                           
                </div>
				<header class="panel-heading">
                    <h4 class="text-center"> 
                        <b> Container Details </b>                    
                    </h4>
                </header>

                <div class="panel-body">
                    <section id="unseen">
                        <table class="table table-bordered table-striped table-condensed col-md-12">
                            <thead>
                                <tr>
                                    <th class="col-md-1">Container No </th>
                                    <th class="numeric col-md-1"> Size </th>
                                    <th class="col-md-2">  Type </th>
                                    <th class="col-md-2">  Status </th>
                                    <th class="col-md-2">  Truck No </th>
                                    <th class="col-md-2">  Trailer No </th>
                                    <th class="col-md-2">   Driver Name </th>
                                    <th class="col-md-2">   License </th>
                                    <th class="col-md-2">   Transporter </th>

                                </tr>
                            </thead> 
                            <tbody id="tbody_id">   
                            <?php
                                foreach($icdl_list as $icdl_key=>$icdl_row){
                            ?>  
                                    <tr> 
                                        <td> 
                                            <input type="hidden" name="icdl_id[]"  value="<?php echo $icdl_row['icdl_id']; ?>"  required> 
                                            <input type="text" class="form-control" value="<?php echo $icdl_row['icdl_c_no']; ?>" readonly>  
                                        </td>
                                        <td> 
                                            <input type="text" class="form-control" value="<?php echo $icdl_row['icdl_c_size']; ?>" readonly>  
                                        </td>
                                        <td> 
                                            <input type="text" class="form-control" value="<?php echo $icdl_row['icdl_c_type']; ?>" readonly>    
                                        </td>
                                        <td> 
                                            <input type="text" class="form-control" value="<?php echo $icdl_row['icdl_c_status']; ?>" readonly>   
                                        </td>
                                        
                                        <td> 
                                            <input type="text" class="form-control" id="truck_no_id_<?php echo $icdl_key;?>" readonly>  
                                        </td>
                                        <td> 
                                            <input type="text" class="form-control" readonly >  
                                        </td>
                                        <td> 
                                            <input type="text" class="form-control" readonly >  
                                        </td>
                                        <td> 
                                            <input type="text" class="form-control" readonly >  
                                        </td>
                                        <td> 
                                            <select class="form-control" id="transporter_id_<?php echo $icdl_key;?>" name="icdl_transporter[]" >                <option value="0">--Select--</option>
                                                <?php
                                                    foreach($tl_list as $tl_key=>$tl_row){
                                                ?>
                                                        <option value="<?php echo $tl_row['tl_id']; ?>"><?php echo $tl_row['tl_name']; ?></option>
                                                        
                                                <?php
                                                    }
                                                ?>
                                            </select>
                                            <!-- <input type="text" class="form-control" id="transporter_id_<?php echo $icdl_key;?>" name="icdl_transporter[]" >   -->
                                        </td>
                                    </tr>
                            <?php
                                }
                            ?>
                            </tbody>
                        </table>

                        <div class=" col-lg-offset-5">
                            <div class="col-lg-2">
                                <button type="submit" class="btn btn-success"> <i class="fa fa-thumbs-up"></i>&nbsp; Save</button>
                            </div>

                        </div>

                    </section>
                </div>
                <!---->

            </form>
        </div>
    </section>

</div>

