<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
   <section class="content-header">
      <div class="container-fluid">
         <div class="row mb-2">
            <div class="col-sm-6">
               <h4><?php echo htmlspecialchars($title) ?></h4>
            </div>
            <div class="col-sm-6">
               <ol class="breadcrumb float-sm-right">
                  <li class="breadcrumb-item"><a href="<?php echo base_url() ?>dashboard">Home</a></li>
                  <li class="breadcrumb-item active"><?php echo htmlspecialchars($title) ?></li>
               </ol>
            </div>
         </div>
      </div>
      <!-- /.container-fluid -->
   </section>

   <section class="content">
      <div class="container">
         <div class="row"> 
            <div class="col-md-12 col-lg-12">
               <div class="card">
                  <div class="card-header">
                     <h3 class="card-title">All Job Application Details</h3>
                  </div>
                  <!-- /.card-header -->
                  <div class="card-body">
                     <table width="100%" id="example1" class="table table-bordered table-striped">
                        <thead>
                           <tr>
                            <th>Job Title</th>
                            <th>Applicatn Name</th>
                            <th>Father Name</th>
                            <th>Gender</th>
                            <th>Phone No</th>
                            <th>Email Id</th>
                            <th>Address</th>
                            <th>Application Date</th>
                            <th></th>
                           </tr>
                        </thead>
                        <tbody>
                          <?php foreach ($get_all_job_application as $key => $application):?>
                            <?php $job_title = $this->career_model->view_job_by_id($application->job_id) ?>
                           <tr>
                              <td><?php echo $job_title->title ?></td>
                              <td><?php echo $application->name ?></td>
                              <td><?php echo $application->father_name ?></td>
                              <td><?php echo $application->gender ?></td>
                              <td><?php echo $application->phone_no ?></td>
                              <td><?php echo $application->email_id ?></td>
                              <td><?php echo $application->address ?></td>
                              <td><?php echo $application->date ?></td>
                              <td><a class="dropdown-item" onclick="return confirm('Are you sure?')" href="<?php echo base_url(); ?>delete-job-application/<?php echo $application->id ?>"><i class="fa fa-trash-o" aria-hidden="true"></i></a></td>
                           </tr>
                        <?php endforeach; ?>
                        </tbody>
                     </table>
                  </div>
                  <!-- /.card-body -->
               </div>
               <!-- /.card -->
            </div>
         </div>
      </div>
   </div>
   
</section>
</div>
<!-- /.content-wrapper -->
