<?php $__env->startSection('content'); ?>
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h5 class="modal-title"><?php echo e(trans('application.assign_permissions')); ?></h5>
            </div>

            <?php echo Form::model($role, ['url' => 'settings/assignPermission', 'class'=>"ajax-submit"]); ?>

            <div class="modal-body">
                <div class="form-group">
                    <?php echo Form::label('name', trans('application.role')); ?>

                    <?php echo Form::hidden('role_id', $role->uuid); ?>

                    <p><?php echo e($role->name); ?></p>
                </div>
                <div class="form-group">
                    <table class="table">
                        <tr>
                            <th><?php echo e(trans('application.name')); ?></th>
                            <th><?php echo e(trans('application.description')); ?></th>
                            <th><?php echo e(trans('application.assign')); ?></th>
                        </tr>
                        <?php $__currentLoopData = $permissions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $permission): $__env->incrementLoopIndices(); $loop = $__env->getFirstLoop(); ?>
                            <tr>
                                <td><?php echo e($permission->name); ?></td>
                                <td><?php echo e($permission->description); ?></td>
                                <td><?php echo Form::checkbox($permission->name, $permission->uuid, $role->permissions->contains('name', $permission->name) ? true : null ); ?> </td>
                            </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getFirstLoop(); ?>
                    </table>

                </div>
            </div>
            <div class="modal-footer">
                <?php echo form_buttons(); ?>

            </div>
            <?php echo Form::close(); ?>

        </div>
    </div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('modal', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>