<div class="modal fade" id="createBranch" 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">Business Units</h4>
        </div>
        <div class="modal-body">
            <form id="branch_form" method="post" action="{{ route('branches.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>BusinessUnit Code</p>	
                    <input name="business_unit_code" type="text" class="form-control" id="business_unit_code" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 30px;float: left;padding: 0px 15px;">
                </div>
                <div class=form-group style="padding-left:20px;width=30%">     
                    <p>Business Unit <span>*</span></p>	
                    <input name="business_unit" type="text" class="form-control" id="business_unit" 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>Country<span>*</span> </p>	
                    <input name="country" type="text" class="form-control" id="country" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 30px;float: left;padding: 0px 15px;">
                </div>
                <div class=form-group style="padding-left:20px">     
                    <p>City<span>*</span> </p>	
                    <input name="city" type="text" class="form-control" id="city" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 30px;float: left;padding: 0px 15px;">
                </div>
                <div class=form-group style="padding-left:20px">     
                    <p>Address<span>*</span></p>	
                    <input name="address_1" type="text" class="form-control" id="address_1" 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>BusinessUnit Head<span>*</span></p>	
                    <input name="business_unit_head" type="text" class="form-control" id="business_unit_head" 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>
            </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("branch_form").submit();
 }
</script>
  