<?php $this->load->view('common/head')?>

<body>

<div class="page-container list-menu-view">

<!--Leftbar Start Here -->

<?php $this->load->view('common/sidebar')?>



    <div class="page-content">

    <!--Topbar Start Here -->

    <?php $this->load->view('common/header') ?>

        <div class="main-container">

            <div class="container-fluid">

                <div class="page-breadcrumb">

                    <div class="row">

                        <div class="col-md-7">

                            <div class="page-breadcrumb-wrap">

                                <div class="page-breadcrumb-info">

                                    

                                    <ul class="list-page-breadcrumb">

                                        <li><a href="#">Home</a>

                                        </li>

                                        <li class="active-page"> requirement</li>

                                    </ul>

                                </div>

                            </div>

                        </div>

                        <div class="col-md-5">

                        </div>

                    </div>

                </div>

                 <?php 

                    if($this->session->flashdata('msg')!=''){

                        echo '<div class="alert alert-success alert-dismissible">

                              <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>

                              <strong>'.$this->session->flashdata('msg').'</strong> 

                            </div>';

                    }

                    if($this->session->flashdata('err')!=''){

                        echo '<div class="alert alert-danger alert-dismissible">

                              <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>

                              <strong>'.$this->session->flashdata('err').'</strong> 

                            </div>';

                    }

                ?>

                <div class="row">

                    <div class="col-md-12 ">

                    <div class="box-widget widget-module">

                            <div class="widget-head clearfix">

                                <span class="h-icon"><i class="fa fa-bars"></i></span>

                                <h4>requirement</h4>

                            </div>

                            <div class="widget-container">

                                <div class=" widget-block">

                                     <table class="table table-bordered">

                                                <thead>

                                                    <tr>

                                                        <th> POST</th>

                                                        <th>Company</th>

                                                        <th>Location</th>

                                                        <th>Experiance</th>

                                                        <th>Salary</th>



                                                        <th>Status</th>

                                                        

                                                        <th>Action</th>

                                                    </tr>

                                                </thead>



                                                <tbody>

                                                    <?php foreach($requirement as $c){ 



                                                        ?>

                                                    <tr>

                                                        <td><?= $c['post']?></td>

                                                        <td><?= $c['company']?></td>

                                                        <td><?= $c['location']?></td>

                                                        

                                                        <td><?= $c['experiance']?></td>

                                                        <td><?= $c['salary']?></td>

                                                        <td>

                                                            <form method="post" action="<?= base_url('admin/requirement/status_change')?>">

                                                                <input type="hidden" name="id" value="<?= $c['id']?>">

                                                                <select class="form-control" name="status" onchange="if(confirm('Are You Sure Want TO Change Status?')){ this.form.submit()}">

                                                                    <option value="" <?php if($c['status']==''){ echo 'selected'; }?>>Inactive</option>

                                                                    <option <?php if($c['status']=='Active'){ echo 'selected'; }?>>Active</option>

                                                                </select>

                                                            </form>

                                                        </td>

                                                        <td>

                                                            

                                                             <a href="<?= base_url('admin/requirement/view/'.$c['id'])?>" class="btn btn-success"><i class="fa fa-eye"></i></a>

                                                             <a href="<?= base_url('admin/requirement/edit/'.$c['id'])?>" class="btn btn-success"><i class="fa fa-pencil"></i></a>

                                                            <a onclick="return confirm('Are You Sure Want to delete')" href="<?= base_url('admin/requirement/delete/'.$c['id'])?>" class="btn btn-danger"><i class="fa fa-trash-o"></i></a>

                                                        </td>

                                                    </tr>

                                                    <?php }?>

                                                    

                                                </tbody>

                                            </table>

                                           <div class="dt-pagination">

										<?= $links?>

									</div>

                                </div>

                            </div>

                        </div>

                    </div>

                    </div>

                  <?php $this->load->view('common/foot'); ?>

        </div>

    </div>



    <?php $this->load->view('common/footer')?>



    