<div class="container-fluid 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(); ?>">Home</a>
                </li>
                
                <li class="breadcrumb-item">Imported Student's Documents</li>
            </ul>
            
            <a href="<?php echo base_url(); ?>Import/upload_students" target="_blank">Import Students</a>
            
            <div class="table-responsive">
                <table class="table table-bordered table-striped" id="mytable">
                    <thead>
                        <tr>
                            <th class="sl_no">Sl. No.</th>
                            <th>Document Name</th>
                            <th>Document Type</th>
                            <th>Status</th>
                            <th>Date</th>
                            <th>View</th>
                        </tr>
                    </thead>
                    
                    <tbody>
                        <?php 
                        $i=0;
                        $table="import_documents";
                        $get_all_docs=$this->ImportModel->get_data($table);
                        if($get_all_docs){
                            foreach($get_all_docs as $docs){
                                $i=$i + 1;
                        ?>
                        <tr>
                            <td><?php echo $i; ?></td>
                            <td><?php echo $docs['document_name']; ?></td>
                            <td><?php echo $docs['document_type']; ?></td>
                            <td><?php echo $docs['status']; ?></td>
                            <td><?php echo date("d-m-Y h:i:sa",strtotime($docs['created_at'])); ?></td>
                            <td>
                                <a href="<?php echo base_url()."Import/doc_data/".$docs['id']; ?>" target="_blak" class="btn btn-sm btn-outline-warning">View</a>
                            </td>
                        </tr>
                        <?php
                            }
                        }
                        ?>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>