<?php $__env->startSection('content_header'); ?>
    <?php echo notifyCss(); ?>
    <?php echo notifyJs(); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
    <div class="row">
        <div class="col-12">
            <div class="card">
                <div class="card card-primary">
                    <div class="card-header">
                        <h3 class="card-title">Roles</h3>
                    </div>
                    <?php echo $__env->make('notify::messages', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                    <!-- /.card-header -->
                    <!-- form start -->
                    <form id="userregform" class="form-horizontal" action="<?php echo e(URL::to('/show_role_post')); ?>" method="post" autocomplete="off" enctype="multipart/form-data">
                        <?php echo e(csrf_field()); ?>

                        <div class="card-body">
                            <div class="col-6">
                                <div class="form-group row">
                                    <label for="exampleInputEmail1">Role Name</label>
                                    <input type="text" class="form-control" id="name" name="name" placeholder="Enter Role Name" required value="<?php echo e($roles->name); ?>">
                                    <input type="hidden" name="role_id" id="role_id" value="<?php echo e($roles->id); ?>">
                                </div>
                                <div class="form-group row">
                                    <label for="exampleInputEmail1">Guard Name</label>
                                    <input type="text" class="form-control" id="guard_name" name="guard_name" placeholder="Enter Guard Name" value="<?php echo e($roles->guard_name); ?>">
                                </div>
                                <div class="form-group row">
                                    <label for="exampleInputEmail1">Level</label>
                                    <select name="level" id="level" class="form-control">
                                        <option value=""> Select Level </option>
                                        <option value="1" <?php echo e($roles->level === 1 ? 'selected' : ''); ?>>Level 1</option>
                                        <option value="2" <?php echo e($roles->level === 2 ? 'selected' : ''); ?>>Level 2</option>
                                        <option value="3" <?php echo e($roles->level === 3 ? 'selected' : ''); ?>>Level 3</option>
                                        <option value="4" <?php echo e($roles->level === 4 ? 'selected' : ''); ?>>Level 4</option>
                                    </select>
                                </div>
                                <div class="form-group row">
                                    <label for="exampleroles">Status &nbsp;&nbsp;&nbsp;</label>
                                    <?php if($roles->status==1): ?>
                                        <input type="checkbox" checked="checked" name="status" id="status" data-toggle="toggle" data-on="Active" data-off="Not Active" data-onstyle="success" data-offstyle="danger" data-size="small" data-style="ios" value="1">
                                    <?php elseif($roles->status==0): ?>
                                        <input type="checkbox" name="status" id="status" data-toggle="toggle" data-on="Active" data-off="Not Active" data-onstyle="success" data-offstyle="danger" data-size="small" data-style="ios" value="1">
                                    <?php endif; ?>
                                </div>
                            </div>
                        </div>
                        <!-- /.card-body -->

                        <div class="card-footer">
                          <button type="submit" class="btn btn-primary">Submit</button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <script type="text/javascript">
        
    </script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('adminlte::page', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH E:\xampp7.3\htdocs\kmportal\resources\views/User/show_role.blade.php ENDPATH**/ ?>