<div class="container-fluid mt-3 mb-3 bg-white">
    <div class="row">
        <div class="col-sm-12 pt-3 pb-3">
            <ul class="breadcrumb">
                <li class="breadcrumb-item">
                    <a href="<?php echo base_url(); ?>Welcome">Home</a>
                </li>
                <li class="breadcrumb-item">
                    Transport Deleted Invoices
                </li>
            </ul>    
                <div class="table-responsive">
                    <table class="table table-bordered table-striped" id="mytable">
                        <thead>
                            <tr>
                                <th>Sl.No.</th>
                                <th>Inv. No.</th>
                                <th>Name</th>
                                <th>Father's Name</th>
                                <th>Fee Date</th>
                                <th>Est. Fee</th>
                                <th>Prev. Bal.</th>
                                <th>Prev. Extra</th>
                                <th>Discount</th>
                                <th>Received Fee</th>
                                <th>Bal. </th>
                                <th>Extra</th>
                                <th>Invoice</th>
                                <th>Deleted By</th>
                                <th>Deleted At</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php
                            $count=0;
                            $acedemic_session=$this->session->userdata("acedemic_session");
                            $invoices_data=$this->TransportModel->get_transport_deleted_invoices_comb_data($acedemic_session);
                            if($invoices_data){
                                foreach($invoices_data as $invoices){
                                    $count++;
                            ?>
                            <tr>
                            <td><?php echo $count;?></td>
                            <td><?php echo $invoices['invoice_id']; ?></td>
                            <td><?php echo $invoices['student_name']; ?></td>
                            <td><?php echo $invoices['father_name'];?></td>
                            <td><?php echo date('d-M-Y',strtotime($invoices['fee_date'])); ?></td>
                            <td><?php echo $invoices['esatimate_fee'];?></td>
                            <td><?php echo $invoices['prev_bal_added'];?></td>
                            <td><?php echo $invoices['extra_amount_used'];?></td>
                            <td><?php echo $invoices['discount'];?></td>
                            <td><?php echo $invoices['received_fee'];?></td>
                            <td><?php echo $invoices['balance_fee'];?></td>
                            <td><?php echo $invoices['extra_fee'];?></td>
                            <td>
                                <a href="<?php echo base_url();?>Transport/deleted_invoice/<?php echo $invoices['invoice_id'];?>" class="btn btn-sm btn-info" target="_blank">
                                <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-printer-fill" viewBox="0 0 16 16">
                                    <path d="M5 1a2 2 0 0 0-2 2v1h10V3a2 2 0 0 0-2-2H5zm6 8H5a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1z"/>
                                    <path d="M0 7a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2h-1v-2a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v2H2a2 2 0 0 1-2-2V7zm2.5 1a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1z"/>
                                </svg>
                                </a>
                            </td>
                            <td>
                                <?php echo $invoices['deleted_by_salutation']." ".$invoices['deleted_by_name']; ?>
                            </td>
                            <td><?php echo date("d-m-Y h:i:sa",strtotime($invoices['deleted_at'])); ?></td>
                        </tr>
                            <?php
                                }
                            }
                            ?>
                          
                        </tbody>
                    </table>
                </div>
                
            </ul>
        </div>
    </div>
</div>