<?php $__env->startSection('content'); ?>
    <div class="az-content-breadcrumb">
        <span>Approval Group</span>
    </div>
    <h2 class="az-content-title" style="display: inline"> Approval Group List <span>
            <a href="<?php echo e(url('approval_group/create')); ?>" class="btn btn-az-primary" style="float: right">Add Approval Group
            </a></span></h2>
    


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

            <div>
                <table id="example2" class="table table-responsive">
                    <thead>
                        <tr>
                            <th class="wd-10p">S.No</th>
                            <th class="wd-20p">User Name</th>
                            <th class="wd-10p">Created At</th>
                            <th class="wd-10p">Operations</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php $__currentLoopData = $approval_group; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $type): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>

                                <td><?php echo e($key + 1); ?></td>
                                <td><?php echo e($type->user_name); ?></td>
                                <td><?= date('d-m-Y', strtotime($type['created_at'])) ?></td>
                                <td>
                                    <a class="btn btn-rounded btn-primary"
                                        href="<?php echo e(url('/approval_group/edit/' . \Crypt::encrypt($type->id_approval_groups))); ?>">
                                        Edit
                                    </a>
                                    <a class="btn btn-rounded btn-danger"
                                        href="<?php echo e(url('/approval_group/delete/' . \Crypt::encrypt($type->id_approval_groups))); ?>">
                                        Delete
                                    </a>
                                </td>
                            </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </tbody>
                    <tfoot>
                        <tr>
                            <th class="wd-10p">S.No</th>
                            <th class="wd-20p">User Name</th>
                            <th class="wd-10p">Created At</th>
                            <th class="wd-10p">Operations</th>
                        </tr>
                    </tfoot>
                </table>
            </div>
            
            <!-- card -->
        </div>
        <!-- col -->
    </div>
    
<?php $__env->stopSection(); ?>
<?php $__env->startPush('scripts'); ?>
    <script>
        $(document).ready(function() {
            $('#example2').DataTable();
        });
    </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\Travocom\TVC_PHASE_1\resources\views/approval_groups/index.blade.php ENDPATH**/ ?>