<?php if(Auth::user()->hasAnyPermission(['All','Add Head'])): ?>
<!-- Modal ADD Branch -->
<div class="modal fade" id="md_add_head" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <?php echo e(Form::open(array('route' => 'head.store', 'class' => '', 'id' => 'form_add_head'))); ?>

  <div class="modal-dialog modal-md" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel">Add Head</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true"></span>
        </button>
      </div>
      <div class="modal-body">
        <div class = "card">
          <div class = "card-header">
                   <div class = "col-md-5">
    <strong class="strong-margin">HEAD INFORMATION</strong>
     </div>
              <div class = "col-md-6">
               
   
     </div>
             <div class = "col-md-1">
           <img src = "<?php echo e(asset('assets/images/icons/userinformation.png')); ?>"/>
               
   
     </div>
          </div>
          <div class = "card-body form-fieldset">
                    <div class="row">

            <div class="col-sm-12">
              <label class="label-color"> Nature: <i style = "color:red;">*</i></label>
              <small class="form-errors pull-right req" value="*"><?php echo e($errors->first('nature',":message")); ?></small>

              <div class="input-group mb-3">
              
                <select onchange="showHeadCode(event);" name="nature" class="form-control form-control-sm cls_selection">
                  <option value="Selected" selected>Select Nature</option>
                
                </select>
       
              </div>
            </div>

          
          
            <div class="col-sm-12">
            <label class="label-color"> Code: <i style = "color:red;">*</i></label>
            <small class="form-errors pull-right req" value="*"><?php echo e($errors->first('code',":message")); ?></small>
            <div class="input-group mb-3">
           
              <?php echo e(Form::Text('code',$code, ['class' => 'form-control form-control-sm show_code', 'placeholder' => 'Code #' , 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default', 'readonly' => true])); ?>

            </div>
          </div>

          <div class="col-sm-12">
              <label class="label-color"> Name: <i style = "color:red;">*</i></label>
            <small class="form-errors pull-right req" value="*"><?php echo e($errors->first('name',":message")); ?></small>

            <div class="input-group mb-3">
             
              <?php echo e(Form::Text('name', '', ['class' => 'form-control form-control-sm cls_fullname', 'placeholder' => 'Name' , 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default'])); ?>

            </div>
           </div>

            
          
        
       </div>
          </div>

        </div>

      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
        <button type="submit" onclick="storeHead(event,this);" class="btn btn-primary" content="add head">Add Head</button>
      </div>
    </div>
  </div>
  <?php echo e(Form::close()); ?>

</div>
<!-- END MODAL ADD BRANCH -->
<?php endif; ?><?php /**PATH /home/ubuntu/rebmgisplus/skylite/resources/views/accounts/modals/add_head.blade.php ENDPATH**/ ?>