<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
@extends('Layout.Employeesmaster')
=======
@extends('Layout.employees_master')
>>>>>>> Storing employee info

@section('title', 'Employees')
@section('header-include')
<style>
form {
  border-radius: 5px; 
  width:100%;   
  background-color: #FFFFFF;
  overflow: hidden;
}

p span {
  color: #F00;
}

p {
  margin: 0px;
  font-weight: 500;
  line-height: 2;
  color:#333;
}

a {
  text-decoration:inherit
}


.form-group {
  overflow: hidden;
  clear: both;
}
 .form-control {
    
    position:relative;
    clear: both;    
    margin-top: 2px;
    display:inline-inline;    
    margin-right: 10px;
}
</style>
@endsection
@section('content')
<section id="content">    
        <section class="scrollable padder">
                <ul class="breadcrumb no-border no-radius b-b b-light pull-in">
                    <li><a href="."><i class="fa fa-home"></i> Home</a></li>                    
                    <li class="active">Job Title</li>
                </ul>              
               
                @include('Layout.messages')
                @include('Layout.errors')
                <div class=container-fluid>
                    <div class=row>
                    <legend style="padding:25px 5px 5px 10px">Job Title</legend>
                        <div class="pull-right" style="margin:5px 20px 5px 10px;">
                        <a href="" class="btn btn-info btn-sm" data-toggle="modal" data-target="#createjobtitle"><i class="fa fa-plus"></i>Add Job Title</a>
                        </div>
                    </div>
                    <div class=row style="padding:0px 5px 5px 10px">
                        <div class="table-responsive" style="padding:0px 5px 5px 10px">
                            <table class="table table-striped m-b-sm datagrid ">
                                @if(count($jobtitles) > 0)
                                <tr>
                                    <th>Action</th>
                                    <th>Job Title Code</th>
                                    <th>Job Title</th>
                                    <th>Role Code</th>
                                    <th>Pay Grade Code</th>
                                    <th>Minimum Experience</th>
                                    <th>Description</th>
                                </tr>
                                </thead>
                                <tbody>
                                @foreach($jobtitles as $jobtitle)
                                    <tr id="employmentjobtitle-row-{{ $jobtitle->id }}">
                                        <td>
                                            <form action="{{ route('jobtitle.destroy', $jobtitle->id)}}" method="post" style=position:relative;float:right>
                                            @csrf
                                            @method('DELETE')
                                            <a href="{{ route('jobtitle.edit',$jobtitle->id)}}" ><span class="btn btn-default"><i class="fa fa-edit no-margin"></i></span></a>  
                                            <button data-toggle="tooltip" data-placement="top" title="Delete" type="submit" class="btn btn-danger" onclick="return confirm('Are you sure you want to delete this item?');"><i class="fa fa-trash no-margin"></i></button>
                                            </form>
                                        </td>
                                        <td>{{ $jobtitle->job_title_code }}</td>
                                        <td>{{ $jobtitle->job_title}}</td>
                                        <td>{{ $jobtitle->role_code}}</td>
                                        <td>{{ $jobtitle->job_paygrade_code}}</td>
                                        <td>{{ $jobtitle->minimum_experience}}</td>
                                        <td>{{ $jobtitle->description}}</td>
                                    </tr> 
                                    @endforeach
                                    @else            
                                    <tr>
                                        <td colspan="2" class="text-center">Nothing to display</td>
                                    </tr>  
                                    @endif                          
                                </tbody>
                                
                            </table>
                        </div>                
                    </div>
                 </div>
            </section>
    </section>

<!-- Modal -->
@include('Modals/jobtitle')


@endsection
@section('footer-include')
<script src="/js/bootstrap.js"></script>   
@endsection

@section('j-script')
    <!-- Jquery -->
    <script>
        $(document).on('ready', function(){

        });
       
    </script>

@endsection