<?php $__env->startSection('title', 'New User'); ?>

<?php $__env->startSection('page-header'); ?>
<header class="header bg-ui-general">
     <div class="header-info">
          <h1 class="header-title">
               <strong>New User</strong>
          </h1>
     </div>

     <div class="header-action">
          <nav class="nav">
               <a class="nav-link" href="<?php echo e(route('users.index')); ?>">
                    Users
               </a>
               <a class="nav-link active" href="<?php echo e(route('users.create')); ?>">
                    <i class="fa fa-plus"></i>
                    New User
               </a>
          </nav>
     </div>
</header>
<?php $__env->stopSection(); ?>

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

<div class="col-md-12">
     <form class="card" method="POST" action="<?php echo e(route('users.store')); ?>" enctype="multipart/form-data">
          <?php echo csrf_field(); ?>
          <h4 class="card-title fw-400">Make User </h4>
          <?php echo csrf_field(); ?>

          <div class="card-body">
               <div class="row">
                    <div class="col-md-6">
                         <div class="form-group">
                              <label>Frist Name</label>
                              <input class="form-control <?php echo e($errors->has('fname') ? 'is-invalid' : ''); ?>" type="text"
                                   name="fname" placeholder="Enter First Name" value="<?php echo e(old('fname')); ?>">

                              <?php if($errors->has('fname')): ?>
                              <div class="invalid-feedback"><?php echo e($errors->first('fname')); ?></div>
                              <?php endif; ?>
                         </div>
                    </div>
                    <div class="col-md-6">
                         <div class="form-group">
                              <label>Last Name</label>
                              <input class="form-control <?php echo e($errors->has('lname') ? 'is-invalid' : ''); ?>" type="text"
                                   name="lname" placeholder="Enter Last Name" value="<?php echo e(old('lname')); ?>">

                              <?php if($errors->has('lname')): ?>
                              <div class="invalid-feedback"><?php echo e($errors->first('lname')); ?></div>
                              <?php endif; ?>
                         </div>
                    </div>
               </div>

               <div class="row">
            <div class="col-md-6">
                <div class="form-group">
                    <label>Father Name</label>
                    <input class="form-control <?php echo e($errors->has('father_name') ? 'is-invalid' : ''); ?>" type="text"
                           name="father_name" placeholder="Enter Father Name" value="<?php echo e(old('father_name')); ?>">
                    <?php if($errors->has('father_name')): ?>
                        <div class="invalid-feedback"><?php echo e($errors->first('father_name')); ?></div>
                    <?php endif; ?>
                </div>
            </div>
            <div class="col-md-6">
                <div class="form-group">
                    <label>Mother Name</label>
                    <input class="form-control <?php echo e($errors->has('mother_name') ? 'is-invalid' : ''); ?>" type="text"
                           name="mother_name" placeholder="Enter Mother Name" value="<?php echo e(old('mother_name')); ?>">
                    <?php if($errors->has('mother_name')): ?>
                        <div class="invalid-feedback"><?php echo e($errors->first('mother_name')); ?></div>
                    <?php endif; ?>
                </div>
            </div>
        </div>

        <div class="row">
            <div class="col-md-6">
                <div class="form-group">
                    <label>Mobile No</label>
                    <input class="form-control <?php echo e($errors->has('mobile_no') ? 'is-invalid' : ''); ?>" type="text"
                           name="mobile_no" placeholder="Enter Mobile No" value="<?php echo e(old('mobile_no')); ?>">
                    <?php if($errors->has('mobile_no')): ?>
                        <div class="invalid-feedback"><?php echo e($errors->first('mobile_no')); ?></div>
                    <?php endif; ?>
                </div>
            </div>
            <div class="col-md-6">
                <div class="form-group">
                    <label>Address</label>
                    <textarea class="form-control <?php echo e($errors->has('address') ? 'is-invalid' : ''); ?>" 
                              name="address" placeholder="Enter Address"><?php echo e(old('address')); ?></textarea>
                    <?php if($errors->has('address')): ?>
                        <div class="invalid-feedback"><?php echo e($errors->first('address')); ?></div>
                    <?php endif; ?>
                </div>
            </div>
        </div>

               <div class="row">
                    <div class="col-md-6">
                         <div class="form-group">
                              <label>Email</label>
                              <input class="form-control <?php echo e($errors->has('email') ? 'is-invalid' : ''); ?>" type="text"
                                   name="email" placeholder="Enter Login Email." value="<?php echo e(old('email')); ?>">

                              <?php if($errors->has('email')): ?>
                              <div class="invalid-feedback"><?php echo e($errors->first('email')); ?></div>
                              <?php endif; ?>
                         </div>
                    </div>
                    <div class="col-md-6">
                         <div class="form-group">
                              <label>Role</label>
                              <select name="role" class="form-control <?php echo e($errors->has('role') ? 'is-invalid' : ''); ?>"
                                   required>
                                   <option value="">Select Role</option>
                                   <?php $__currentLoopData = $roles; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $role): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                   <option <?php echo e(old('role')==$role->name? 'selected' : ''); ?> value="<?php echo e($role->name); ?>"><?php echo e($role->name); ?></option>
                                   <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                              </select>

                              <?php if($errors->has('role')): ?>
                              <div class="invalid-feedback"><?php echo e($errors->first('role')); ?></div>
                              <?php endif; ?>
                         </div>
                    </div>
               </div>

               <div class="row">
                    <div class="col-md-6">
                         <div class="form-group">
                              <label>Password</label>
                              <input class="form-control <?php echo e($errors->has('password') ? 'is-invalid' : ''); ?>"
                                   type="password" name="password" placeholder="******">

                              <?php if($errors->has('password')): ?>
                              <div class="invalid-feedback"><?php echo e($errors->first('password')); ?></div>
                              <?php endif; ?>
                         </div>
                    </div>
                    <div class="col-md-6">
                         <div class="form-group">
                              <label>Password Confirmation</label>
                              <input
                                   class="form-control <?php echo e($errors->has('password_confirmation') ? 'is-invalid' : ''); ?>"
                                   type="password" name="password_confirmation" placeholder="******">

                              <?php if($errors->has('password_confirmation')): ?>
                              <div class="invalid-feedback"><?php echo e($errors->first('password_confirmation')); ?></div>
                              <?php endif; ?>
                         </div>
                    </div>
               </div>

               <div class="row">
                    <div class="col-md-6">
                         <div class="form-group">
                              <label>User Image</label>
                              <input class="form-control <?php echo e($errors->has('avatar') ? 'is-invalid' : ''); ?>" type="file"
                                   name="avatar">
                              <small>Image Size Must be 128x128</small>

                              <?php if($errors->has('avatar')): ?>
                              <div class="invalid-feedback"><?php echo e($errors->first('avatar')); ?></div>
                              <?php endif; ?>
                         </div>
                    </div>
               </div>

          </div>

          <footer class="card-footer text-right">
               <button class="btn  btn-primary" type="submit">
                    <i class="fa fa-save"></i>
                    Save User
               </button>
          </footer>
     </form>
</div>
<?php $__env->stopSection(); ?>

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

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

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

</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/demosoftghor/sm.demo.softghor.com/resources/views/pages/users/create.blade.php ENDPATH**/ ?>