<?php  $this->load->view('master/common/header.php',$data);
$base_name = $data['base_name'];
?>
                <div class="content">
                    
                    <!-- Start Content-->
                    <div class="container-fluid">
                        
                        <!-- start page title -->
                        <div class="row">
                            <div class="col-12">
                                <div class="page-title-box">
                                    <div class="page-title-right">
                                        <ol class="breadcrumb m-0">
                                            <li class="breadcrumb-item"><a href="javascript: void(0);"><?= $base_name;?></a></li>
                                            <li class="breadcrumb-item active text-capitalize"><?= $page;?></li>
                                        </ol>
                                    </div>
                                    <h4 class="page-title text-uppercase"><?= $page;?></h4>
                                </div>
                            </div>
                        </div>     
                        <!-- end page title --> 

                        <div class="row">
                            <div class="col-md-12 col-xl-12">
                                <div class="card-box">
                                    <div class="row">
                                        <div class="col-sm-12">
                                            <table id="key-table" class="table table-bordered dt-responsive nowrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
                                                <thead>
                                                    <tr>
                                                        <th>S.no.</th>
                                                        <th>Full Name</th>
                                                        <th>Phone No.</th>
                                                        <th>Email</th>
                                                        <!--<th>Address</th>-->
                                                        <th>State</th>
                                                        <th>District</th>
                                                        <th>CV</th>
                                                        <th>Date Of Enquiry</th>
                                                        <th>Action</th>
                                                    </tr>
                                                </thead>
                                                <tbody>
                                                    <?php 
                                                            if (!empty($career)) {
                                                                $i=0;
                                                                foreach ($career as $row) {
                                                                    $i++;
                                                                ?>
                            								        <tr>
                                                                        <td><?=$i;?></td>
                                    									<td><?=$row['name'];?></td>
                                    									<td><?=$row['phone'];?></td>
                                    									<td><?=$row['email'];?></td>
                                    									<!--<td><?=$row['address'];?></td>-->
                                    									<td><?=$row['state'];?></td>
                                    									<td><?=$row['district'];?></td>
                                    									<td><a class="btn btn-sm btn-info" href="<?=base_url('uploads/website/cv/'.$row['cv']);?>"> View CV</a></td>
                                    									<td><?=date('d-M-Y h:i:s A',strtotime($row['addon']));?></td>
                                    									<td class="text-center">
                                    									    <div class="row">
                                    									        <div class="col-sm-12">
                                    									            <form class="form-horizontal" onsubmit="return deletecareer();" action="<?= base_url('master/action/delete');?>" method="post" enctype="multipart/form-data">
                                                                                        <input type="hidden" name="table" value="tbl_career" />
                                                                                        <input type="hidden" name="page" value="Career Enquiry" />
                                                                                        <input type="hidden" name="id" value="<?=$row['id'];?>" />
                                                                                        
                                                                                        <button type="submit" class="btn btn-danger btn-sm" title="Delete">Delete</button>
                                            										</form>
                                    									        </div>
                                    									    </div>
                                    									</td>
                                    								</tr>
                            								<?php }?>
                            								<?php } else {?>
                            								<tr>
                            									<td colspan="9" class="text-center">Records Not Found</td>
                            								</tr>
                            								<?php }?>
                                                </tbody>
                                            </table>
                                        </div> <!-- end col--><!-- end col-->
                                    </div> <!-- end row-->
                                </div>
                            </div>
                        </div>
                        <!-- end row -->
                        
                    </div> <!-- end container-fluid -->
                </div> <!-- end content -->
                
<?php $this->load->view('master/common/footer.php'); ?>

<script type="text/javascript">
	function deletecareer() {
		if (confirm("Are You Sure You Want To Delete This Career Enquiry ?")) {
            return true;
		}
		return false;
	}
</script>