
<?php $__env->startSection('content'); ?>
    <div class="az-content-breadcrumb">
        <span>Voucher</span>
    </div>
    <h2 class="az-content-title" style="display: inline">Voucher<span>
            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Journal Vouchers add')): ?>
                <a href="<?php echo e(route('voucher.create')); ?>" class="btn btn-az-primary" style="float: right">Add Voucher</a>
            <?php endif; ?>
        </span>
    </h2>
    


    
    <div class="row">
        <div class="col-md-12 col-lg-12 col-xl-12">
            

            <div>
                <table id="example2" class="table table-striped">
                    <thead>
                        <tr>
                            <th class="wd-10p">S.No</th>
                            <th class="wd-10p">Created Date</th>
                            <th class="wd-10p">Debit</th>
                            <th class="wd-10p">Credit</th>
                            <th class="wd-10p">Bussiness Partner Type</th>
                            <th class="wd-10p">Bussiness Partner</th>
                            <th class="wd-10p">Operations</th>
                        </tr>
                    </thead>
                    <tbody>
                        
                    </tbody>
                    <tfoot>
                        <tr>
                            <th class="wd-10p">S.No</th>
                            <th class="wd-10p">Created Date</th>
                            <th class="wd-10p">Debit</th>
                            <th class="wd-10p">Credit</th>
                            <th class="wd-10p">Bussiness Partner Type</th>
                            <th class="wd-10p">Bussiness Partner</th>
                            <th class="wd-10p">Operations</th>
                        </tr>
                    </tfoot>
                </table>
            </div>
            
            <!-- card -->
        </div>
        <!-- col -->
    </div>

    <div class="modal fade" id="deleteModal" tabindex="-1" role="dialog" aria-labelledby="deleteModalLabel"
        aria-hidden="true">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title" id="deleteModalLabel">Confirm Deletion</h5>
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                </div>
                <div class="modal-body">
                    Are you sure you want to delete this sub-control account?
                </div>
                <div class="modal-footer">
                    <form id="deleteForm" action="" method="POST">
                        <?php echo csrf_field(); ?>
                        <button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
                        <button type="submit" class="btn btn-danger">Delete</button>
                    </form>
                </div>
            </div>
        </div>
    </div>





    
<?php $__env->stopSection(); ?>

<?php $__env->startPush('scripts'); ?>
    <script>
        function confirmDelete() {
            return confirm('Are you sure you want to delete this voucher?');
        }

        $(function() {
            oTable = $('#example2').DataTable({
                responsive: !0
            });
        });

        $(document).ready(function() {
            $('#deleteModal').on('show.bs.modal', function(event) {
                var button = $(event.relatedTarget);
                var id = button.data('id');
                var actionUrl = '<?php echo e(url('voucher/destroy')); ?>/' + id;
                var modal = $(this);
                modal.find('#deleteForm').attr('action', actionUrl);
            });
        });
    </script>
<?php $__env->stopPush(); ?>

<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\wamp64\www\mds-scm\resources\views/voucher/index.blade.php ENDPATH**/ ?>