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

<?php ($unique_id = $voucher_id); ?>

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

  <div class="modal-dialog modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel">Create Voucher</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="row">
          <?php echo $__env->make('components.voucher.voucher_header', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        </div>

        <div class="account_section">
          
        </div>
       

       <div id="view_data"></div>
      
    </div>
    <div class="modal-footer">
        <button onclick="location.reload(true);" type="button" class="btn btn-secondary">Close</button>
        <button type="submit" class="btn btn-primary " onclick="storeVoucher(event,this)" content="add voucher">Add Voucher</button>
      </div>
    </div>
  </div>
  <?php echo e(Form::close()); ?>

</div>
<!-- END -->
<!-- CREDIT SECTION -->
<div class="credit_section" style="display: none;">
  <div class="card">
 <div class="card-header">
  <strong>Debit Account </strong>
</div>
<?php ($convention = 'debit'); ?>
<div class="card-body form-fieldset">
  <?php echo $__env->make('components.voucher.account_section', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> 
</div>
</div>
  
</div>
<!-- END -->

<!-- DEBIT SECTION -->
<div class="debit_section" style="display: none;">
  <div class="card">
 <div class="card-header">
  <strong>Credit Account </strong>
</div>
<?php ($convention = 'credit'); ?>
<div class="card-body form-fieldset">

  <?php echo $__env->make('components.voucher.account_section', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

</div>
</div>
  
</div>
<!-- END -->

<?php endif; ?>
<?php /**PATH /var/www/skylite/resources/views/voucher/modals/add_voucher.blade.php ENDPATH**/ ?>