<?php
include("db.php");

?>



<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
    <title>Driver Logbook</title>
    <link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="assets/fonts/font-awesome.min.css">
    <link rel="stylesheet" href="assets/css/Login-Form-Clean.css">
    <link rel="stylesheet" href="assets/css/Login-Form-Dark.css">
    <link rel="stylesheet" href="assets/css/Registration-Form-with-Photo.css">
    <link rel="stylesheet" href="assets/css/styles.css">
</head>

<body style="background-image: url(&quot;assets/img/star-sky.jpg&quot;);">
  <form action="driver-list.php" method="POST">
  <div class="form-container" style="padding-top:60px">
    <div class="card" style=" max-width:900px; width:80%; margin:auto; border-radius:20px;" >


  <div class="card-header">
    <?php $name = mysqli_query($conn, "SELECT username FROM admin WHERE username='$_POST[username]'");
    while($row = mysqli_fetch_array($name)){?>
    <h5 class="mb-0" style="float:left;">Welcome <?php echo $row['username'];?> </h5>
    <input type="hidden" value="<?php echo $row['username'];?>" name="username">

  </div><br>
        <div class="card-body" >
          <button style="height: 60px;background-color: rgb(7,90,166);width: 100%;border-radius:20px;"><a href="driver-list.php"><p style=" text-align:center; margin-top:2%; font-size:30px; color:#fff;">Driver List</p></a></i></button><br><br>
            <button formaction="car-list.php" style="height: 60px;background-color: rgb(7,166,128);width: 100%;border-radius:20px;"><p style=" text-align:center; margin-top:2%; font-size:30px; color:#fff;">All Cars</p></a></i></button><br><br>
              <?php } ?>
          <button formaction="choose.php" style="height: 60px;background-color: rgb(7,90,166);width: 100%;border-radius:20px;"><p style=" text-align:center; margin-top:2%; font-size:30px; color:#fff;">Record Trips</p></a></i></button><br><br>
          <button formaction="clients.php" style="height: 60px;background-color: rgb(7,166,128);width: 100%;border-radius:20px;"><p style=" text-align:center; margin-top:2%; font-size:30px; color:#fff;">Clients</p></a></i></button><br><br>

        </div></form><br>
        <div class="form-group"><a href="index.php" class="btn btn-primary btn-block"  style="background-color: rgb(231,62,8); width:40%; margin:0 auto">Logout</a></div>

    </div>
  </div>
</div>
    <script src="assets/js/jquery.min.js"></script>
    <script src="assets/bootstrap/js/bootstrap.min.js"></script>
  
</body>

</html>
