<?php $__env->startSection('css'); ?>

<?php $__env->startSection('title'); ?>
    Add Role
<?php $__env->stopSection(); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('page-header'); ?>
<!-- breadcrumb -->
<div class="page-title">
    <div class="row">
        <div class="col-sm-6">
            <h4 class="mb-0"> Add Role </h4>
        </div>
        <div class="col-sm-6">
            <ol class="breadcrumb pt-0 pr-0 float-left float-sm-right ">
                <li class="breadcrumb-item"><a href="#" class="default-color"><?php echo e(trans('main_trans.user')); ?></a></li>
                <li class="breadcrumb-item active">Add Role</li>
            </ol>
        </div>
    </div>
</div>
<!-- breadcrumb -->
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<?php if($errors->any()): ?>
    <div class="alert alert-danger">
        <ul>
            <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <li><?php echo e($error); ?></li>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </ul>
    </div>
<?php endif; ?>
<a href="<?php echo e(route('users.index')); ?>">
    <button type="button" class="button x-small">
        Back
    </button>
</a><br><br>
<!-- row -->
<div class="row">
    <div class="col-md-12 mb-30">
        <div class="card card-statistics h-100">
            <div class="card-body">

                <?php echo Form::open(['route' => 'roles.store', 'method' => 'POST']); ?>

                <!-- row -->
                <div class="row">
                    <div class="col-md-12">
                        <div class="card mg-b-20">
                            <div class="card-body">
                                <div class="main-content-label mg-b-5">
                                    <div class="col-xs-7 col-sm-7 col-md-7">
                                        <div class="form-group">
                                            <p> Role Name :</p>
                                            <?php echo Form::text('name', null, ['class' => 'form-control']); ?>

                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <!-- col -->
                                    <div class="col-lg-4">
                                        <ul id="treeview1">
                                            <li><a href="#">Roles</a>
                                                <ul>
                                            </li>
                                            <?php $__currentLoopData = $permission; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <label
                                                    style="font-size: 16px;"><?php echo e(Form::checkbox('permission[]', $value->id, false, ['class' => 'name'])); ?>

                                                    <?php echo e($value->name); ?></label>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            </li>

                                        </ul>
                                        </li>
                                        </ul>
                                    </div>
                                    <!-- /col -->
                                    <div class="col-xs-12 col-sm-12 col-md-12 text-center">
                                        <button type="submit" class="btn btn-main-primary">Save</button>
                                    </div>

                                </div>
                            </div>
                        </div>
                    </div>

                </div>
                <!-- row closed -->

            </div>
        </div>
    </div>
</div>
</div>
<!-- row closed -->
<?php $__env->stopSection(); ?>

<?php $__env->startSection('js'); ?>

<script>
    var date = $('.fc-datepicker').datepicker({

        'format': 'yyyy-mm-dd',
    }).val();
</script>

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

<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\Mustafa\Certificates\resources\views/pages/roles/create.blade.php ENDPATH**/ ?>