<?php
include('database.php');
    $query="SELECT name FROM admin";
    $rec=db::getRecord($query);
?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8" />
  <link rel="icon" type="image/png" href="https://cdn1.centralapp.com/api/v1/media/logo-medium/place-4486-ac829f63-6c73-4c87-aa47-9405fc05eafb.jpeg">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  <title>
   Shezan
  </title>
  <meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, shrink-to-fit=no' name='viewport' />
  <link rel="canonical" href="https://www.creative-tim.com/product/material-dashboard-pro" />
  <!-- Schema.org markup for Google+ -->
  <meta itemprop="description" content="Material Dashboard PRO is a Premium Material Bootstrap 4 Admin with a fresh, new design inspired by Google's Material Design.">
  <!-- Twitter Card data -->
  <meta name="twitter:card" content="product">
  <meta name="twitter:site" content="@creativetim">
  <meta name="twitter:title" content="Material Dashboard PRO by Creative Tim">
  <meta name="twitter:description" content="Material Dashboard PRO is a Premium Material Bootstrap 4 Admin with a fresh, new design inspired by Google's Material Design.">
  <meta name="twitter:creator" content="@creativetim">
  <!-- Open Graph data -->
  <meta property="fb:app_id" content="655968634437471">
  <meta property="og:title" content="Material Dashboard PRO by Creative Tim" />
  <meta property="og:type" content="article" />
  <meta property="og:description" content="Material Dashboard PRO is a Premium Material Bootstrap 4 Admin with a fresh, new design inspired by Google's Material Design." />
  <meta property="og:site_name" content="Creative Tim" />
  <!--     Fonts and icons     -->
  <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Roboto+Slab:400,700|Material+Icons" />
  <!-- CSS Files -->
  <link href="../assets/css/material-dashboard.minf066.css?v=2.1.0" rel="stylesheet" />
  <!-- CSS Just for demo purpose, don't include it in your project -->
  <link href="../assets/demo/demo.css" rel="stylesheet" />
</head>
<body class="">
 
  <div class="wrapper ">
    <div class="sidebar" data-color="orange" data-background-color="black" data-image="../images/bg/10.jpg">
      <!--
        Tip 1: You can change the color of the sidebar using: data-color="purple | azure | green | orange | danger"

        Tip 2: you can also add an image using data-image tag
    -->
      <div class="logo">
          <a class="simple-text logo-mini">
          <img src="https://cdn1.centralapp.com/api/v1/media/logo-medium/place-4486-ac829f63-6c73-4c87-aa47-9405fc05eafb.jpeg" style="height:30px;width:30px;border-radius:50%" />
        </a>
        <a class="simple-text logo-normal">
          Shezan
        </a>
      </div>
      <div class="sidebar-wrapper">
        <div class="user">
       <div class="photo">
            <img src="images/avatar.png" />
          </div>
          <div class="user-info">
            <a data-toggle="collapse" href="#collapseExample" class="username">
              <span>
               <?php  echo $rec['name']; ?>
                <b class="caret"></b>
              </span>
            </a>
            <div class="collapse" id="collapseExample">
              <ul class="nav">
                <li class="nav-item">
                  <a class="nav-link" href="user.php">
                    <span class="sidebar-mini"> MP </span>
                    <span class="sidebar-normal"> My Profile </span>
                  </a>
                </li>
                <li class="nav-item">
                  <a class="nav-link" href="edit_p.php">
                    <span class="sidebar-mini"> EP </span>
                    <span class="sidebar-normal"> Edit Profile </span>
                  </a>
                </li>
               
              </ul>
            </div>
          </div>
        </div>
        <ul class="nav">
          <li class="nav-item  ">
            <a class="nav-link" href="index.php">
              <i class="material-icons">dashboard</i>
              <p> Home </p>
            </a>
          </li>
<!--
             <li class="nav-item  ">
            <a class="nav-link" href="add_product.php">
              <i class="material-icons">assignment</i>
              <p> Add Product </p>
            </a>
          </li>
-->
            <li class="nav-item  ">
            <a class="nav-link" href="active_order.php">
              <i class="material-icons">table</i>
              <p> Active Order </p>
            </a>
            </li>
            <li class="nav-item  ">
            <a class="nav-link" href="Delivered_ordered.php">
              <i class="material-icons">table</i>
              <p> Delivered Ordered </p>
            </a>
            </li>
            <li class="nav-item  ">
            <a class="nav-link" href="reservation.php">
              <i class="material-icons">Reserve</i>
              <p> Reservation </p>
            </a>
            </li>
            <li class="nav-item ">
            <a class="nav-link" href="logout.php">
              <i class="material-icons">logout</i>
              <p>Logout</p>
            </a>
          </li>
            
              
        </ul>
        
      </div>
      
    </div>
    <div class="main-panel">