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

    <!-- Content Wrapper. Contains page content -->
    
    <div class  = "content-wrapper">
    
    <!-- Content Header (Page header) -->
      
    <section class="content-header">
      
          <div class="container-fluid">
          <div class="row mb-2">
          <div class="col-sm-6">
              <h1>
      <a href = "AddEmp">Add Employee Master</a> </h1>
      
      <?php if(Session::has('Status')): ?>
      
        <span class="alert alert-success" style="align:center;"> <?php echo e(Session::get('Status')); ?></span>
      
      <?php endif; ?>

      <?php if(Session::has('message')): ?>
      
        <span class="alert alert-success" style="align:center;"> <?php echo e(Session::get('message')); ?></span>
      
      <?php endif; ?>
    
    </div>    
    
    <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 Master</li>
          
            </ol>
          
    </div>

        </div>

      </div>
      <!-- /.container-fluid -->
    </section>
    <!-- Main content -->
    <section class="content">
      <div class="container-fluid">
        <div class="row">
          <div class="col-md-12">
            <div class="card">
              <div class="card-header">
                <h3 class="card-title">View Employee Master</h3>
              </div>
              <!-- /.card-header -->
              <div class="card-body">
              <table id="example" class="table table-striped table-bordered" style="width:100%">
                    <thead>
                    <tr>
                        <th> No</th>
                        <th>Code</th>
                        <th>Name</th>
                        <th>Email</th>
                        <th>Mobile</th>
                        <th>Job Roll</th>
                        <th>Joining Date</th>
                        <th>Action</th>
                    </tr>
                    
                    </thead>
                    
                    <tbody>    
                    
                            <?php
                            $i=1  
                            ?>
                            <?php $__currentLoopData = $employee; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cl): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                      <tr>

                                <td><?php echo e($i++); ?></td>
                                <td><?php echo e($cl->Code); ?></td>
                                <td><?php echo e($cl->name); ?></td>
                                <td><?php echo e($cl->Email); ?></td>
                                <td><?php echo e($cl->Mobile); ?></td>
                                <td><?php if($cl->job_roll=='dpe'){ echo 'Docs Pickup Executive';}elseif($cl->job_roll=='src'){echo 'SR.Cordinator';}elseif($cl->job_roll=='cord'){echo 'Cordinator';} ?></td>
                                <td><?php echo e($cl->joining_Date); ?></td>
                                <td>
    <a href      = "editEmployee/<?php echo e($cl->id); ?>"> <i class = " fa fa-edit " > Edit </i> </a>                               
    <form action = "deleteEmp/<?php echo e($cl->id); ?>" method = "POST">
      <?php echo csrf_field(); ?>
      <?php echo method_field('delete'); ?>
      <input type = "submit" class = "btn btn-danger" onclick = "return confirm('Are you sure want to delete?')" name="submit" value = "Delete" >
    </form>
    </td>
                      </tr>
                      <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </tbody>
                  </table>
                </div>
                <!-- /.card-body -->
              </div>
          </div>
        </div>
      </div>
    </section>
    <!-- /.content -->
  </div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.main', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/bankbriz/public_html/crm/resources/views/layouts/employee.blade.php ENDPATH**/ ?>