<?php $__env->startSection('title','Create New Employees | '); ?>
<?php $__env->startSection('content'); ?>
 <!-- Content Header (Page header) -->
 <div class="content-header">
      <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-sm-6">
            <h1 class="m-0">Employee Registration</h1>
          </div><!-- /.col -->
          <div class="col-sm-6">
            <ol class="breadcrumb float-sm-right">
              <li class="breadcrumb-item"><a href="#">Home</a></li>
              <li class="breadcrumb-item active">Employee Registration</li>
            </ol>
          </div><!-- /.col -->
        </div><!-- /.row -->
      </div><!-- /.container-fluid -->
    </div>
    <!-- /.content-header -->
 <!-- Main content -->
 <section class="content">
      <div class="container-fluid">
      
      <div class="card card-default">
          <div class="card-header">
            <h3 class="card-title">Create New Employee</h3>
            <div class="card-tools">
              <button type="button" class="btn btn-tool" data-card-widget="collapse">
                <i class="fas fa-minus"></i>
              </button>
            </div>
          </div>
          <!-- /.card-header -->
          <div class="card-body">
            <?php if(session('success')): ?>
            <div class="alert alert-success alert-dismissible fade show" role="alert">
                <strong><?php echo e(session('success')); ?></strong>
                <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <?php endif; ?>
            <?php if(session('error')): ?>
            <div class="alert alert-danger alert-dismissible fade show" role="alert">
                <strong><?php echo e(session('success')); ?></strong>
                <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <?php endif; ?>
            <?php if(session('warning')): ?>
            <div class="alert alert-warning alert-dismissible fade show" role="alert">
                <strong><?php echo e(session('warning')); ?></strong>
                <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <?php endif; ?>
            <form action="<?php echo e(route('store.new.employee')); ?>" method="post" autocomplete="off">
            <?php echo csrf_field(); ?>
                <div class="row">
                    <div class="col-md-6">
                        <div class="form-group">
                            <label for="EmpFullname">Full Name</label>
                            <input type="text" name="full_name" class="form-control   <?php if( $errors->has('full_name')): ?> is-invalid border-danger  <?php endif; ?>" value="<?php echo e(old('full_name')); ?>" id="EmpFullname" placeholder="eg. Mohammad Shaan">
                            <?php if($errors->has('full_name')): ?>
                            <span id="EmpFullname-error" class="error text-danger invalid-feedback"><?php echo e($errors->first('full_name')); ?></span>
                            <small></small>
                            <?php endif; ?>
                        </div>
                    </div>
                    <div class="col-md-6">
                        <div class="form-group">
                            <label for="EmpEmail">Email</label>
                            <input type="email" name="email" class="form-control <?php if( $errors->has('email')): ?> is-invalid border-danger  <?php endif; ?>" id="EmpEmail" value="<?php echo e(old('email')); ?>"  placeholder="eg. example@example.com">
                            <?php if($errors->has('email')): ?>
                            <span id="EmpEmail-error" class="error text-danger invalid-feedback"><?php echo e($errors->first('email')); ?></span>
                            <small></small>
                            <?php endif; ?>
                        </div>
                    </div>
                    <div class="col-md-6">
                        <div class="form-group">
                            <label for="EmpMobile">Mobile</label>
                            <input type="number" name="mobile" class="form-control <?php if( $errors->has('mobile')): ?> is-invalid border-danger  <?php endif; ?>"  id="EmpMobile" value="<?php echo e(old('mobile')); ?>"  placeholder="eg. 9876543210">
                            <?php if($errors->has('mobile')): ?>
                            <span id="EmpMobile-error" class="error text-danger invalid-feedback"><?php echo e($errors->first('mobile')); ?></span>
                            <small></small>
                            <?php endif; ?>
                        </div>
                    </div>
                    <div class="col-md-6">
                        <div class="form-group">
                            <label for="user_role">User Role</label>
                            <select name="user_role" class="custom-select form-control <?php if( $errors->has('user_role')): ?> is-invalid border-danger  <?php endif; ?>" id="user_role">
                                <option value="">Select Employee Role</option>
                                <option value="2"  <?php if(old('user_role') == 2): ?> selected <?php endif; ?>>Admin/HR</option>
                                <option value="3" <?php if(old('user_role') == 3): ?> selected <?php endif; ?>>Team Lead</option>
                                <option value="4" <?php if(old('user_role') == 4): ?> selected <?php endif; ?>>Employee</option>
                            </select>
                            <?php if($errors->has('user_role')): ?>
                            <span id="user_role-error" class="error text-danger invalid-feedback"><?php echo e($errors->first('user_role')); ?></span>
                            <small></small>
                            <?php endif; ?>
                        </div>
                    </div>
                    <div class="col-md-12">
                        <div class="form-group">
                            <button type="submit" class="btn btn-primary">Create User</button>
                        </div>
                    </div>
                </div>
            </form>
          </div>
        </div>
        <!-- /.card -->
      </div><!--/. container-fluid -->
    </section>
    <!-- /.content -->

<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/claim_and_case_management/resources/views/pages/employees/registerNewEmp.blade.php ENDPATH**/ ?>