
<?php $__env->startSection('content'); ?>
    <div class="az-content-breadcrumb">
        <span>Invoice Preference</span>
    </div>
    <h2 class="az-content-title" style="display: inline"> Invoice Preference <span>
            <a href="<?php echo e(route('invoice.create')); ?>" class="btn btn-az-primary" style="float: right">Add Invoice Preference</a></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">Product Category Name</th>
                            <th class="wd-10p">Product Category(Urdu)</th>
                            <th class="wd-10p">Status</th>
                            <th class="wd-10p">Created By</th>
                            <th class="wd-10p">Created</th>
                            <th class="col-2" >Operations</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php $__currentLoopData = $invoice; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $discount): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>

                                <td><?php echo e($key + 1); ?></td>
                                <td><?php echo e($discount->products_category_name); ?></td>
                                <td><?php echo e($discount->products_category_name_urdu); ?></td>
                                <td><?php echo e($discount->products_category_status); ?></td>
                                <td><?php echo e($discount->name); ?></td>
                                <td><?= date('d-m-Y', strtotime($discount->created_at))?></td>

                                <td> <a class="btn btn-rounded btn-primary" href="<?php echo e(route('invoice.edit',\Crypt::encrypt($discount->id_products_category))); ?>">
                                    Edit
                                </a>

                                 <a class="btn btn-rounded btn-danger" href="<?php echo e(route('invoice.destroy',\Crypt::encrypt($discount->id_products_category))); ?>">
                                    Delete
                                </a>
                            </td>
                            </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </tbody>
                     <tfoot>
                        <tr>
                            <th class="wd-10p">S.No</th>
                            <th class="wd-10p">Product Category Name</th>
                            <th class="wd-10p">Product Category(Urdu)</th>
                            <th class="wd-10p">Status</th>
                            <th class="wd-10p">Created By</th>
                            <th class="wd-10p">Created</th>
                            <th class="col-2" >Operations</th>
                        </tr>
                    </tfoot>
                </table>
            </div>
            
            <!-- card -->
        </div>
        <!-- col -->
    </div>






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

<?php $__env->startPush('scripts'); ?>

<script type="text/javascript">

    $(function(){



        oTable = $('#example2').DataTable({

            responsive: !0
        });



   });
</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/invoice_preference/index.blade.php ENDPATH**/ ?>