<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 id="payFrequency_form" method="post" action="{{ route('payfrequency.store') }}" enctype="multipart/form-data" class="form-inline" style="padding-top:10px;"> 
            {{ csrf_field() }}
            <div class=form-group style="padding-left:20px;width=30%">     
            <p>Pay Frequency<span>*</span></p>	
                <input name="payfrequency" type="text" name="payfrequency" class="form-control" id="payfrequency" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 30px;float: left;padding: 0px 15px;"
                          required>
            </div>
            <div class=form-group style="padding-left:20px;width=30%">     
            <p>Short Code <span>*</span></p>	
                <input name="shortcode" type="text" name="shortcode" class="form-control" id="shortcode" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 30px;float: left;padding: 0px 15px;"
                          required>
            </div>
            <div class=form-group style="padding-left:20px">     
            <p>Description </p>	
            <textarea id=payfrequencyDescription name="payfrequencyDescription" class="form-control inputstl" rows="3"></textarea>
            </form> 
        </div>
        <div class="modal-footer">
        <button type="button" onclick="form_submit()" class="btn btn-primary">Save </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("payFrequency_form").submit();
 }
</script>
  