<?php $__env->startSection('small_title'); ?>
<?php echo e(__("dashboard.menu.user")); ?>

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

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

                <div class="page-content">
                    <div class="container-fluid">

                        <!-- start page title -->
                        <div class="row">
                            <div class="col-12">
                                <div class="page-title-box d-sm-flex align-items-center justify-content-between">
                                    <h4 class="mb-sm-0 font-size-18"> Add </h4>
                                    <div class="page-title-right">
                                        <ol class="breadcrumb m-0">
                                            <li class="breadcrumb-item"><a href="<?php echo e(route('dashboard.index')); ?>">Dashboard</a></li>
                                            <li class="breadcrumb-item active"> <?php echo e(__("dashboard.menu.user")); ?> </li>
                                        </ol>
                                    </div>

                                </div>
                            </div>
                            <?php if(Session::has('message')): ?>
<div class="alert alert-info"><?php echo e(Session::get('message')); ?></div>

<?php endif; ?>
                        </div>
                        <!-- end page title -->

                        <div>
                            <form method="post" action="<?php echo e(route('users.store')); ?>" enctype="multipart/form-data">
                                <?php echo csrf_field(); ?>

                                <div class="col-lg-12">



                                <h6 class="m-0 font-weight-bold text-primary pull-left" >Name   </h6>
                                <hr>

                                <div class="input-group" style="margin-top: 15px;">
                                    <input type="text" required value="<?php echo e(old("name")); ?>"  name="name" class="form-control" placeholder="">
                                    <?php $__errorArgs = ['name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                    <span class="alert-danger"><?php echo e($message); ?></span>
                                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                </div>
                                <br>
                                <h6 class="m-0 font-weight-bold text-primary pull-left" >Email </h6>
                                <hr>

                                <div class="input-group" style="margin-top: 15px;">
                                    <input type="email" required value="<?php echo e(old("email")); ?>"  name="email" class="form-control" placeholder="">
                                    <?php $__errorArgs = ['email'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                    <span class="alert-danger"><?php echo e($message); ?></span>
                                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                </div>
                                <br>
                                <h6 class="m-0 font-weight-bold text-primary pull-left" ><?php echo e(__("lable.password")); ?>  </h6>
                                <hr>

                                <div class="input-group" style="margin-top: 15px;">
                                    <input type="password" required value="<?php echo e(old("password")); ?>"  name="password" id="password" class="form-control" placeholder="">
                                    <?php $__errorArgs = ['password'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                    <span class="alert-danger"><?php echo e($message); ?></span>
                                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                </div>
                                <br>
                                <h6 class="m-0 font-weight-bold text-primary pull-left" >
                                    <?php echo e(__("lable.password_confirmation")); ?>

                                </h6>
                                <hr>

                                <div class="input-group" style="margin-top: 15px;">
                                    <input type="password" id="password_confirmation" value="<?php echo e(old("password_confirmation")); ?>"  required name="password_confirmation" class="form-control" placeholder="">
                                    <?php $__errorArgs = ['password_confirmation'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                    <span class="alert-danger"><?php echo e($message); ?></span>
                                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                </div>
                                <br>
                                <p>
                                    <input type="checkbox" onclick="showPassword()" >
                                    <?php echo e(__('lable.view_password')); ?>

                                </p>




                            </div>

                                <input type="submit" value=" Save" class=" btn btn-secondary">


                            </form>
                        </div>







</div>
<!-- container-fluid -->
</div>
<!-- End Page-content -->



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




<?php $__env->startSection('script'); ?>
<script>
  function showPassword(){

     let password = document.getElementById('password');

     let password_confirmation = document.getElementById('password_confirmation');
    if(password.type==='password'){
        password.type = 'text';
        password_confirmation.type = 'text';
    }else{
        password.type = 'password';
        password_confirmation.type = 'password';

    }
  }

</script>

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

<?php echo $__env->make('Admin.master_page', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/wssupport/app.mami/resources/views/Admin/users/create.blade.php ENDPATH**/ ?>