<?php $__env->startSection('content'); ?>
<style>
label.error{
	color:red;
}
#error_status{
	color:red;
}
</style>
<div class="common-content">
          <div class="page-content">
                <div class="page-heading">
                    <div class="headings">
                        <h6>ADD SERVICE ENGINEER</h6>
                    </div>
                </div>
              <div class="boxings">
			  <input name="_token" type="hidden" id="token_vendor" value="<?php echo e(csrf_token()); ?>">
			  <span id="error_status"></span>
              <form method="POST" id="addserviceengg" action="#">
              <?php echo csrf_field(); ?>
                  <div class="row">
                      <div class="col-lg-4 col-md-6 col-sm-12 col-xs-12">
                        <div class="form-inputs">
                             <div class="form-group">
                                <label>First Name</label>
                                <input  type="text" class="form-control"  id="first_name" name="first_name" value="" >
                              </div>
                        </div>
                      </div>
                      <div class="col-lg-4 col-md-6 col-sm-12 col-xs-12">
                        <div class="form-inputs">
                             <div class="form-group">
                                <label>Last Name</label>
                                <input  type="text" class="form-control" id="last_name" name="last_name" value="" >
                              </div>
                        </div>
                      </div>

                      <div class="col-lg-4 col-md-6 col-sm-12 col-xs-12">
                        <div class="form-inputs">
                             <div class="form-group">
                                <label>Email</label>
                                <input  type="text" class="form-control" name="email" id="email" value="" >
                              </div>
                        </div>
                      </div>
					  <div class="col-lg-4 col-md-6 col-sm-12 col-xs-12">
                        <div class="form-inputs">
                             <div class="form-group">
                                <label>Phone Number</label>
                                <input  type="number" class="form-control"  minlength="10" maxlength="13" name="phone" id="phone" value="" >
                              </div>
                        </div>
                      </div>
                      <div class="col-lg-4 col-md-6 col-sm-12 col-xs-12">
                        <div class="form-inputs">
                             <div class="form-group">
                                <label>Username</label>
                                <input  type="text" class="form-control" name="username" id="username" value="" >
                              </div>
                        </div>
                      </div>
                      <div class="col-lg-4 col-md-6 col-sm-12 col-xs-12">
                        <div class="form-inputs">
                             <div class="form-group">
                                <label>Password</label>
                                <input  type="password" class="form-control" name="password" id="password" value="" >
                              </div>
                        </div>
                      </div>

                  </div>
                  <div class="row">
                     <div class="col-12">
                        <div class="green-button">
                            <button class="product-submit">Add Service Engineer</button>
                         </div>
                     </div>
                  </div>
                  </form>

                  
                 <div class="tableBox hideshadow" style="padding-top: 15px;">  
			     <?php if(count($servicengg) !=0): ?>
				<table id="table_id" class="display">
						<thead>
							<tr>
								<th>No:</th>
								<th>First Name</th>
								<th>Last Name</th>
								<th>Email</th>
								<th>Username</th>
								<th>Password</th>
							</tr>
						</thead>
					<tbody>
					<?php $i=1;?>
					<?php $__currentLoopData = $servicengg; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $servicengg): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
						<tr>
							<td><?php echo e($i); ?></td>
							<td><?php echo e(ucfirst($servicengg->first_name)); ?></td>
							<td><?php echo e(ucfirst($servicengg->last_name)); ?></td>
							<td><?php echo e($servicengg->email); ?></td>
							<td><?php echo e($servicengg->user_name); ?></td>
							<td><?php echo e($servicengg->original_password); ?></td>
						</tr>
						<?php $i++;?>
					<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
					</tbody>
				</table>
			<?php endif; ?>
                     </div>
                  
                  
                  
		</div>
          </div>



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

<?php $__env->startSection('scripts'); ?>
<script>
$(document).ready( function () {
    $('#table_id').DataTable();
} );
</script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.main_service', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/meddbot/public_html/resources/views/vendors/serviceengregister.blade.php ENDPATH**/ ?>