<<<<<<< 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('roles.update', $role->id) }}">
        @method('PATCH')
        @csrf
        <div class="form-group">
              <label for="name">Role Code</label>
              <input type="text" class="form-control" name="role_code" value={{ $role->role_code}} />
            </div> 
            <div class="form-group">
              <label for="name">Role </label>
              <input type="text" class="form-control" name="role" value={{ $role->role}} />
            </div> 
        <div class=col-md-4 style="width:20%">
        <label for="name">Employment status</label>
              <select name="employmentstatus_code" id="employmentstatus_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($status_codes as $status_code)
                <option value="{{ $status_code->employment_status_code }}" @if($selectedemploymentstatus_code = $status_code->employment_status_code) {{'selected'}} @endif>{{ $status_code->employment_status }}</option>
              @endforeach
           </select>
        </div>         
        <div class="form-group">
          <label for="name">Description</label>
          <textarea cols="3" rows="2" class="form-control" name="description" value={{ $role->description }}></textarea>
        </div>
        <button type="submit" class="btn btn-primary">Update</button>
        <a class="btn btn-default btn-close" href="{{ route('roles.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