<?php if(Auth::user()->hasAnyPermission(['All','Add Bank'])): ?>

<!-- Modal ADD BANK -->
<div class="modal fade" id="md_add_bank" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <?php echo e(Form::open(array('route' => 'bank.store', 'class' => 'cls_form', 'id' => "form_add_bank"))); ?>

  <div class="modal-dialog modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel">Add Bank</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-body form-fieldset">
            <div class="row">

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

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

            </div>
          </div>

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

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

            </div>
          </div>

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

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

            </div>
          </div>

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

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

            </div>
          </div>

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

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

            </div>
          </div>

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

            <div class="input-group mb-3">
              <?php echo e(Form::Textarea('location', '', ['class' => 'form-control form-control-sm cls_required', 'placeholder' => 'Location' , 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default', 'rows' => '2'])); ?>

            </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" class="btn btn-primary <?php if(EF::getUrl() === 'bank'): ?> cls_submit <?php endif; ?>" <?php if(EF::getUrl() != "bank"): ?> onclick="storeBank(event,this);" <?php endif; ?> content="add bank">Add Bank</button>
      </div>
    </div>
  </div>
  <?php echo e(Form::close()); ?>

</div>
<!-- END MODAL ADD BANK -->

<?php endif; ?><?php /**PATH /home/ubuntu/rebmgisplus/skylite/resources/views/bank/modals/add_bank.blade.php ENDPATH**/ ?>