
<?php $__env->startSection('content'); ?>
    <?php Fun::lang()?>
    <div class="page">
        <div class=container-fluid>
            <div class="top-content">
                <div class="row">
                    <div class="col-sm-12 col-xs-12">
                        <div class="pull-left">
                            <h3><?php echo e(__('administrator.roles')); ?></h3>
                        </div>
                        <div class="pull-right">
                            <a class=" button_info" href="<?php echo e(route('roles.create')); ?>"><span
                                        class="fa fa-plus"></span> <?php echo e(__('administrator.create_new')); ?></a>
                        </div>
                        <div class="pull-right">
                            <a class=" button_danger add_permission"><span
                                        class="fa fa-plus"></span> <?php echo e(__('administrator.permission')); ?></a>
                        </div>
                    </div>
                </div>
            </div>
            <div class="wrapper-table">
                <table id="datatable_roles" class="table table-bordered table-hover nowrap customize">
                    <thead>
                    <tr>
                        <th><?php echo e(__('administrator.no')); ?></th>
                        <th><?php echo e(__('administrator.role_name')); ?></th>
                        <th><?php echo e(__('administrator.action')); ?></th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr>
                            <td><?php echo e($key+1); ?></td>
                            <td><?php echo e($value->name); ?></td>
                            <td>
                                <a class="button_primary"
                                   href="<?php echo e(route('roles.edit',$value->id)); ?>"><?php echo e(__('administrator.edit')); ?></a>
                            </td>
                        </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </tbody>
                </table>
            </div>
        </div>
    </div>

<?php $__env->stopSection(); ?>
<?php $__env->startSection('js'); ?>
    <script>
        $(document).ready(function () {
            $('.add_permission').on('click', function () {
                $.confirm({
                    title: '<?php echo e(__('administrator.submit')); ?>',
                    theme: 'modern',
                    content: '',
                    buttons: {
                        cancel: {
                            btnClass: 'button_warning',
                            text: '<?php echo e(__('administrator.cancel')); ?>',
                            action: function () {

                            },
                        },
                        submit: {
                            btnClass: 'button_primary',
                            text: '<?php echo e(__('administrator.submit')); ?>',
                            action: function () {

                            },
                        },
                    },
                });
            });
        });
    </script>
<?php $__env->stopSection(); ?>




<?php echo $__env->make(branchMenu(), \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/nsowos/public_html/shr-brand/resources/views/administrator/permission/index.blade.php ENDPATH**/ ?>