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

<div class="pagetitle">
      <h1>Add Users</h1>
      
    </div><!-- End Page Title -->
    <section class="section">
      <div class="row">
       
        <div class="col-lg-8">

 
          <div class="card">
            <div class="card-body">
              <h5 class="card-title">Users</h5>
              <?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; ?>

              <!-- No Labels Form -->
              <form action="" style="display:flex; flex-direction:column; gap:20px;" class="row g-3" method="post">
               <?php echo e(csrf_field()); ?>

                <div class="col-md-8">
                  <input type="full_name" name="full_name" class="form-control" placeholder="Full Name">
                </div>
                <div class="col-md-8">
                  <input type="text" name="national_id" class="form-control" placeholder="National ID">
                </div>
                <div class="col-md-8">
                  <input type="text" name="user_code" value="N001" readonly class="form-control" placeholder="N001">
                </div>
                <div class="col-md-8">
                  <input type="email" name="email" class="form-control" placeholder="Email">
                </div>
                <div class="col-md-8">
                  <input type="text" name="phone" class="form-control" placeholder="Phone Number">
                </div>
                <div class="col-md-8">
                    <input type="text" name="address" class="form-control" placeholder="Address">
                </div>
                <div class="col-md-8">
                  <select class="form-control" name="role_id" id="">
                    <option disabled selected readonly>
                      Role
                    </option>
                      
                    <?php $__currentLoopData = $getRole; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $role): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                      <option value="<?php echo e($role->id); ?>">
                          <?php echo e($role->name); ?>

                        </option>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                  </select>
                </div>
                <div class="col-md-6">
                  <input type="password" name="password" class="form-control" placeholder="Enter Password">
                </div>
               
                
                <div style="padding-left: 15px; display:flex; gap:20px;" class="">
                    <button type="reset" class="btn btn-secondary">Reset</button>
                  <button type="submit" class="btn btn-primary">Submit</button>
                </div>
              </for><!-- End No Labels Form -->

            </div>
          </div>

        

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

<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.nav', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/pinetopsco/public_html/re.pro/resources/views/users/add.blade.php ENDPATH**/ ?>