@extends('Layout.Employeesmaster')

@section('title', 'Employees')
<style>
.info p {
  text-align:center;
  color: #999;
  text-transform:none;
  font-weight:600;
  font-size:15px;
  margin-top:2px
}

.info i {
  color:#F6AA93;
}


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-block;    
    margin-right: 10px;
 }


</style>

@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">Pay Frequency</li>
                </ul>              
               
        @if ( session('success') )
        <div class="alert alert-success alert-dismissible" role="alert">
          <button type="button" class="close" data-dismiss="alert" aria-label="Close">
            <span aria-hidden="true">×</span>
            <span class="sr-only">Close</span>
        </button>
        <strong>{{ session('success') }}</strong>
    </div>
    @endif
 
    @if (session('error'))
    <div class="alert alert-danger alert-dismissible" role="alert">
        <button type="button" class="close" data-dismiss="alert" aria-label="Close">
            <span aria-hidden="true">×</span>
            <span class="sr-only">Close</span>
        </button>
        <strong>{{ session('error') }}</strong>
    </div>
    @endif
 
    @if (count($errors) > 0)
    <div class="alert alert-danger">
      <a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
      <div>
        @foreach ($errors->all() as $error)
        <p>{{ $error }}</p>
        @endforeach
    </div>
</div>
@endif
<div class=container-fluid>
<div class=row>
    <legend style="padding:25px 5px 5px 10px">Pay Frequency</legend>
    <div class="pull-right" style="margin:5px 20px 5px 10px;">
                <a href="" class="btn btn-info btn-sm" data-toggle="modal" data-target="#createPayfrequency"><i class="fa fa-plus"></i></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">
                <thead>
                   <tr>
                    <th>Action</th>
                    <th>Pay Frequency</th>
                    <th>Short Code</th>
                    <th>Description</th>
                   </tr>
                </thead>
                <tbody>
                <tr>
                    <td>
                        <a href=""><span class="btn btn-default btn-sm"><i class="fa fa-eye no-margin"></i></span></a>
                        <a href=""><span class="btn btn-default btn-sm"><i class="fa fa-edit no-margin"></i></span></a>   
                        <a href=""><span class="btn btn-danger btn-sm"><i class="fa fa-trash no-margin"></i></span></a>                     
                    </td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                </tr>                               
                <tr>
                   <td colspan="2" class="text-center">Nothing to display</td>
                </tr>
                </tbody>
            </table>
        </div>                
    </div>
</div>
</section>
</section>

<!-- Modal -->
<div class="modal fade" id="createPayfrequency" role="dialog">
    <div class="modal-dialog">
    
      <!-- Modal content-->
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal">&times;</button>
          <h4 class="modal-title">Pay Frequency</h4>
        </div>
        <div class="modal-body">
            <form method="post" action="" enctype="multipart/form-data" class="form-inline" style="padding-top:10px;"> 
            <div class=form-group style="padding-left:20px">     
            <p>Pay Frequency<span>*</span></p>	
                <input name="payfrequency" type="text" class="form-control" id="payfrequency" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 10em;height: 30px;float: left;padding: 0px 15px;"
                          required>
            </div>
            <div class=form-group style="padding-left:20px">     
            <p>Short Code <span>*</span></p>	
                <input name="shortcode" type="text" class="form-control" id="shortcode" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 10em;height: 30px;float: left;padding: 0px 15px;"
                          required>
            </div>
            <div class=form-group style="padding-left:20px">     
            <p>Description <span>*</span></p>	
                <input name="description" type="text" class="form-control" id="description" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 10em;height: 30px;float: left;padding: 0px 15px;"
                          required>            </div>
            </form> 
        </div>
        <div class="modal-footer">
        <button type="button" onclick="form_submit()" class="btn btn-primary">Save changes</button>
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        </div>
      </div>
      
    </div>
  </div>
  
<script type="text/javascript">
function form_submit() {
  document.getElementById("my_form").submit();
 }
</script>
  
 @endsection
 @section('footer-include')
    <!-- fuelux -->
    <script src="/js/libs/underscore-min.js"></script>
    <script src="/js/fuelux/fuelux.js"></script>
    {{--<script src="js/fuelux/demo.datagrid.js"></script>--}}
    <!-- select2 -->
@endsection

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

        });
       
    </script>

@endsection