<?php 
session_start();
?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta content="width=device-width, initial-scale=1.0" name="viewport">

    <title>Leads List</title>
    <meta content="" name="description">
    <meta content="" name="keywords">
    <link href="assets/img/favicon.png" rel="icon">
    <link href="assets/img/apple-touch-icon.png" rel="apple-touch-icon">
    <?php include("templates/inc.php"); ?>
    <script src="scripts/customer.js" type="text/javascript" language="javascript"></script>
    
     <script>
        $(document).ready(function() {

            $("#BtnSubmit").click(function() {
                $("#BtnSubmit").html("Saving...");

                var v_code = $("#v_code").val();
                var date = $("#date").val();
                var comments = $("#comments").val();
                var status = $("#status").val();
                
         
              
                $.ajax({
                    type: 'post',
                    url: 'followuoup-action.php',
                    data: {

                        'v_code': v_code,
                        'date': date,
                        'comments': comments,
                        'status': status,
                    },


                    success: function(data) {
                        alert(data);
                        $("#BtnSubmit").html("Save");
                        window.location.href = 'leads-list.php';

                      
                    }

                });



            });


        });
    </script>
   
   
<style>
    
    
/* CSS */
.button-33 {
  background-color: #c2fbd7;
  border-radius: 100px;
  box-shadow: rgba(44, 187, 99, .2) 0 -25px 18px -14px inset,rgba(44, 187, 99, .15) 0 1px 2px,rgba(44, 187, 99, .15) 0 2px 4px,rgba(44, 187, 99, .15) 0 4px 8px,rgba(44, 187, 99, .15) 0 8px 16px,rgba(44, 187, 99, .15) 0 16px 32px;
  color: green;
  cursor: pointer;
  display: inline-block;
  font-family: CerebriSans-Regular,-apple-system,system-ui,Roboto,sans-serif;
  padding: 7px 20px;
  text-align: center;
  text-decoration: none;
  transition: all 250ms;
  border: 0;
  font-size: 13px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.button-33:hover {
  box-shadow: rgba(44,187,99,.35) 0 -25px 18px -14px inset,rgba(44,187,99,.25) 0 1px 2px,rgba(44,187,99,.25) 0 2px 4px,rgba(44,187,99,.25) 0 4px 8px,rgba(44,187,99,.25) 0 8px 16px,rgba(44,187,99,.25) 0 16px 32px;
  transform: scale(1.05) rotate(-1deg);
}
    
 
 
 
 
    
</style>
</head>

<body>

    <!-- ======= Header ======= -->
    <?php
    include("templates/header.php");
    ?>

    <!-- End Header -->

    <!-- ======= Sidebar ======= -->
    <?php
    include("templates/sidebar.php");

    ?>
    <!-- End Sidebar-->

    <main id="main" class="main">

        <div class="pagetitle">
            <h1>App Users List</h1>
           
           
        </div><!-- End Page Title -->

        <section class="section">
            


<!-- Modal -->
<div class="modal fade" id="staticBackdrop" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
      </div>
      <div class="modal-body">
       
       
       <div class="card">
            <div class="card-body">
              <!-- Vertical Form -->
              <form class="row mt-3">
                  <input type="hidden" id="code" name="code" value="<?php echo $lid; ?>">
                <div class="col-12">
                  <label for="inputNanme4" class="form-label">Follow-Up Date</label>
                  <input type="date" class="form-control" name="date" id="date">
                </div>
                <div class="col-12">
                  <label for="Comments" class="form-label">Comments</label>
                  <textarea type="text" class="form-control" name="comments" id="comments"></textarea> 
                </div>
               <div class="col-md-12">
                  <label for="Status" class="form-label">Status</label>
                  <select id="Status" name="status" class="form-select">
                    <option value="Follow Up">Follow Up</option>
                    <option value="Not Intrested">Not Intrested</option>
                    <option value="Admission Confirmed">Admission Confirmed</option>
                    <option value="Contact Later">Contact Later</option>
                  </select>
                </div>
             
                <div class="modal-footer">
                 <button type="button" class="btn btn-danger" data-bs-dismiss="modal">Close</button>
                 <button type="button" id="BtnSubmit" name="BtnSubmit" class="btn btn-success">Save</button>
      </div>
              </form><!-- Vertical Form -->

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

<!--model end-->

            <section class="section">
                <div class="row">
                    <div class="col-lg-12">

                        <div class="card" style="overflow:scroll;">
                            <div class="card-body" id="records">
                                <h5 class="card-title">App Users List</h5>
                                <!-- Table with stripped rows -->
                             <table id="example" class="table table-striped dt-responsive nowrap" style="width:100%">

                                    <thead>
                                        <tr>
                                            
                                            <th>SL</th>
                                            <th>Date</th>
                                            <th>Name</th>
                                            <th>Mobile</th>
                                            <th>Email</th>
                                            <th>Password</th>
                                            <th>Status</th>
                                            
                                        </tr>
                                    </thead>
                                    
                                
                                    <tbody>
                                        <?php
                                        
                                        echo file_get_contents("https://deshpatra.com/codelines/workforce-view-users.php");
                                       
                                   
                                        ?>

                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>

            </section>

    </main><!-- End #main -->

    <!-- ======= Footer ======= -->
    <?php
    include("templates/footer.php");
    ?>
    <!-- End Footer -->


    <?php include("templates/vendors.php"); ?>

<script src="https://code.jquery.com/jquery-3.5.1.js"></script>
<script src="https://cdn.datatables.net/1.13.4/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/1.13.4/js/dataTables.bootstrap5.min.js"></script>
<script src="https://cdn.datatables.net/responsive/2.4.1/js/dataTables.responsive.min.js" ></script>

<script>
  $(document).ready(function() {
      $('#example').DataTable();
  } );
  </script>

</body>

</html>