@extends('layouts.masterDashboard')
@section('content')
    <style>
      .ppactionbuttondiv{
        width: 60%;
        margin: 0 auto;
      }
      .ppactionbutton{
        display: inline-block;
        width: 40%;
        margin-right: 10px;
      }
      .ppactionbutton .ppactionbuttonform{
        width: 100%;
      }
      .ppactionbutton .ppactionbuttonform .ppactionbuttonformsubmit{
        width: 100%;
        padding: 10px;
        font-size: 20px;
      }
    </style>
    <?php
//        // dd($client);
//    echo "<pre>";
//    print_r($employeesdeldata);
//    echo "</pre>";
//    EXIT;
    ?>
    <div class="row">
        <div class="col-md-12">
            <div class="card card-user shadow-sm">
                <div class=" col-md-12 card-header d-flex justify-content-center border-0 pt-4">
                    <h3>Are you sure you want to Delete this Employee</h3>
                     
                </div>
                
                <div class="col-md-12 card-body">
                  <div class="table-responsive px-2" style="overflow-x: scroll; overflow-y: hidden;">
                    <table class="table table-hover">
                      <thead class="text-dark">
                        <tr>
                          <th class="text-left" scope="col">S.No</th>
                          <th class="text-left" scope="col">Client Code</th>
                          <th class="text-left" scope="col">Employee Name</th>
                          <th class="text-left" scope="col">Employee Id</th>
                          <th class="text-left" scope="col">Designation</th>
                          <th class="text-left" scope="col">QR Assign Status</th>
                        </tr>
                      </thead>
                      <tbody id="role_list">
                        <tr>                        
                          <td class="text-left">1</td>                        
                          <td class="text-left">{{ isset($employeesdeldata->client_code) ? $employeesdeldata->client_code : null }}</td>                        
                          <td class="text-left">{{ isset($employeesdeldata->emp_name) ? $employeesdeldata->emp_name : null }}</td>                        
                          <td class="text-left">{{ isset($employeesdeldata->emp_id) ? $employeesdeldata->emp_id : null }}</td>                        
                          <td class="text-left">{{ isset($employeesdeldata->designation) ? $employeesdeldata->designation : null }}</td>                        
                          <td class="text-left">{{ isset($employeesdeldata->assign_qr_status) ? $employeesdeldata->assign_qr_status : null }}</td>                                                 
                        </tr>
                      </tbody>
                    </table>
                  </div>
                </div>
              
                <div class="col-md-12 ppactionbuttondiv">
                  
                  <div class="ppactionbutton">
                    <form method="POST" action="{{ url('ICount/I-count/client_emp_view_list') }}" class="tdformmargin10 ppactionbuttonform">                          <input type='hidden' name='_token' value="{{ csrf_token() }}" >
                      <input type="hidden" name="client_id" value="{{ $employeesdeldata->client_id }}">                                                    
                      <input type="hidden" name="client_code" value="{{ $employeesdeldata->client_code }}">                      
                      <input type="submit" class="ppactionbuttonformsubmit btn btn-md btn-warning font-weight-bold mx-2" value="Cancel">                          
                    </form> 
                  </div>
                  
                  <div class="ppactionbutton">
                    <form method="POST" action="{{ url('ICount/I-count/client_emp_delete') }}" class="tdformmargin10 ppactionbuttonform">                          
                      <input type='hidden' name='_token' value="{{ csrf_token() }}" >
                      <input type="hidden" name="id" value="{{ $employeesdeldata->id }}">                                                    
                      <input type="hidden" name="emp_id" value="{{ $employeesdeldata->emp_id }}">
                      <input type="hidden" name="client_code" value="{{ $employeesdeldata->client_code }}">
                      <input type="hidden" name="client_id" value="{{ $employeesdeldata->client_id }}">
                      <input type="submit" class="ppactionbuttonformsubmit btn btn-danger font-weight-bold mx-2" value="Confirm">                                
                    </form>
                  </div>
                  
                </div>

                
                
                
            </div>
        </div>
    </div>
    @section('customscript')
        <script>
            
        </script>
    @endsection
@endsection