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

@section('title', 'Employees')
@section('header-include')
  <link rel="stylesheet" href="css/bootstrap.css" type="text/css" />
  <link rel="stylesheet" href="css/animate.css" type="text/css" />
  <link rel="stylesheet" href="css/font-awesome.min.css" type="text/css" />
  <link rel="stylesheet" href="css/font.css" type="text/css" />
  <link rel="stylesheet" href="/js/select3/bootstrap.min.css" type="text/css"/>
  <link rel="stylesheet" href="/js/select3/bootstrapselect.min.css" type="text/css"/>
<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><a href="/jobtitle">Job Title</a></li>
          <li class="active">Edit</li>
        </ul>             
        @include('Layout.messages')
        @include('Layout.errors')   
        <form method="post" action="{{ route('jobtitle.update', $jobtitles->id) }}">
        @method('PATCH')
        @csrf
        <div class="form-group">
          <label for="name">Job Title Code</label>
          <input type="text" class="form-control" name="job_title_code" value={{ $jobtitles->job_title_code }} />
        </div>
        <div class="form-group">
          <label for="name">Job Title</label>
          <input type="text" class="form-control" name="job_title" value={{ $jobtitles->job_title }} />
        </div>
        <div class=col-md-4 style="width:20%">
          <p>Role Code <span>*</span></p>          
          <select name="rolecode" id="rolecode" class="form-control selectpicker" data-live-search="true" data-size="5" style="width:15em;" onfocus='this.size=5;' onblur='this.size=1;' onchange='this.size=1; this.blur();'>
              @foreach($rolecodes as $rolecode)
                <option value="{{ $rolecode->role_code }}" @if($selectedrole = $rolecode->role_code) {{'selected'}} @endif>{{ $rolecode->role }}</option>
              @endforeach
           </select>
        </div>                      
        <div class=col-md-4 style="width:20%">
            <p>Pay Grade Code<span>*</span></p>			
            <select name="job_paygrade_code" id="job_paygrade_code" class="form-control selectpicker" data-live-search="true" data-size="5"  style="width:15em;" onfocus='this.size=5;' onblur='this.size=1;' onchange='this.size=1; this.blur();'>
                @foreach($pay_codes as $pay_code)
                  <option value="{{ $pay_code->payfrequency_code }}" @if($selectedpaycode = $pay_code->payfrequency_code) {{'selected'}} @endif>{{ $pay_code->pay_frequency }}</option>
                @endforeach
            </select>
         </div>                  
         <div class="form-group">
            <label for="name">Minimum Experience</label>
            <input type="text" class="form-control" name="minimum_experience" value={{ $jobtitles->minimum_experience }} />
          </div>
          <div class="form-group">
            <label for="name">Description</label>
             <textarea cols="3" rows="2" class="form-control" name="description" value={{ $jobtitles->description }}></textarea>
          </div>
            <button type="submit" class="btn btn-primary">Update</button>
            <a class="btn btn-default btn-close" href="{{ route('jobtitle.index') }}">Cancel</a>
          </form>
    </section>
</section>
<script src="/js/select3/jquery.min.js"></script>
<script src="/js/select3/jquery.min.js"></script>
<script src="/js/select3/bootstrapselect.min.js"></script>
@endsection