<?php
session_start();
include 'side_nav.php';
  if (!isset($_SESSION['username'])) 
  {
  	$_SESSION['msg'] = "You must log in first";
  	header('location: login.php');
  }
  if (isset($_GET['logout'])) 
  {
  	session_destroy();
  	unset($_SESSION['username']);
  	header('location: login.php');
  }
$sql_kap = "SELECT * from kapaleshwar";
$count = mysqli_num_rows($sql_kap);
?>
<!DOCTYPE html>
<html>
<head>
	<title>Home</title>
  <style>
* {
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  margin-left: 12%;
}

/* Float four columns side by side */
.column {
  float: left;
  width: 25%;
  padding: 0 5px;
}

/* Remove extra left and right margins, due to padding */
.row {margin: 0 -5px;margin-left: 12%;}

/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;
}

/* Responsive columns */
@media screen and (max-width: 600px) {
  .column {
    width: 100%;
    display: block;
    margin-bottom: 20px;
  }
}

/* Style the counter cards */
.card {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  padding: 6px;
  text-align: center;
  background-color: #f1f1f1;
}
</style>
  <script src="https://cdn.jsdelivr.net/npm/sweetalert2@9"></script>
	<link rel="stylesheet" type="text/css" href="css/style.css">
	<link rel="stylesheet" type="text/css" href="css/sidenav.css">
	<script type="text/javascript" src="a.js"></script>
</head>
<body>
  <h1 class="h1">Home</h1>
  <h4 class="page-header"><?php echo strtoupper("welcome"." ".htmlentities($_SESSION['username']));?></h4>
  <div class="row">
  <div class="column">
    <div class="card">
      <h3>Kapaleshwar</h3>
      <p><?php echo 3 ?></p>
    </div>
  </div>

  <div class="column">
    <div class="card">
      <h3>Devi</h3>
      <p>Some text</p>
    </div>
  </div>
  
  <div class="column">
    <div class="card">
      <h3>Datta</h3>
      <p>Some text</p>
    </div>
  </div>
  
  <div class="column">
    <div class="card">
      <h3>Stotra</h3>
      <p>Some text</p>
    </div>
  </div>
</div>
</body>
</html>