@if(Auth::user()->hasAnyPermission(['All','Update Voucher']))

<!-- Modal ADD Voucher -->
<div class="modal fade" id="md_update_voucher" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  {{ Form::open(array('route' => 'voucher.update', 'class' => 'cls_form')) }}
  <div class="modal-dialog modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel">Update Voucher</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true"></span>
        </button>
      </div>
      <div class="modal-body" id="show_voucher">
       
         <div class="alert alert-danger alert-dismissible" @if(count($errors->all()) == 0) style="display:none" @endif>
                    @foreach($errors->all() as $e)
                    <strong>*</strong> {{$e}}
                  @endforeach
                </div>

       <div id="view_voucher_type">
        
      </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 cls_submit" content="update voucher">Update Voucher</button>
      </div>

    </div>

  </div>
  {{ Form::close() }}
</div>
<!-- END MODAL ADD BRANCH
  @endif