<?php include "../../root.class.php";
$html = new html();
$html->add_styles_page();
// $html->check_user_type("ADMIN");
?>
<style>
  .section {
    display: flex;
    flex-direction: column;
    margin: 2vw;
    padding: 5vw;
    background-color: white;
    border-radius: 2vw;
  }

  .edit_btn{
    border: 3px solid navy;
    background: white;
    color: black;
    border-radius: 15px;
    font-size: 4em;
  }

  edit_btn:hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: scale(1.05);
    background: navy;
    color: white;
  }
</style>

<div class="section">
  <button class="edit_btn" onclick="redirect(JOBCARD)">EDIT JOBCARD</button>
  <button class="edit_btn" onclick="redirect(INSTALL)">EDIT PUMP INSTALL</button>
  <button class="edit_btn" onclick="redirect(REPAIR)">EDIT PUMP REPAIR</button>
</div>

<script>
  function redirect(option) {

    if (option == "JOBCARD") {
      window.location.href = "lead_home.php";
    } else if (option == "INSTALL") {
      window.location.href = "edit_install_home";
    } else if (option == "REPAIR") {
      window.location.href = "edit_repair_home";
    } else {
      
    }
  }
</script>