<?php include('site-header.php'); ?>
  <!-- end of LOGO CONTAINER -->
  <!-- - - - - - - - - - - - - -->
  <!-- start of SIDEBAR        -->
  <!-- - - - - - - - - - - - - -->
  
<link rel="stylesheet" href="src/css/morris.css">
<script src="src/css/morris.min.js"></script>
<script src="src/css/raphael-min.js"></script>

<?php include('left-nevigation.php'); ?>
  <!-- - - - - - - - - - - - - -->
  <!-- end of SIDEBAR          -->
  <!-- - - - - - - - - - - - - -->
  <main id="playground">
    <!-- - - - - - - - - - - - - -->
    <!-- start of TOP NAVIGATION -->
    <!-- - - - - - - - - - - - - -->
<?php include('site-top-header.php'); ?>
    <!-- - - - - - - - - - - - - -->
    <!-- end of TOP NAVIGATION   -->
    <!-- - - - - - - - - - - - - -->
    <!-- PAGE TITLE -->

<section id="page-title" class="row">
      <div class="col-md-8">
        <h1>Dashboard</h1>
        <p class="lead">Welcome to the control panel of <?php echo $text; ?></strong>.</p>
</div>
<div class="col-md-4">
<ol class="breadcrumb pull-right no-margin-bottom">
<li class="active">Dashboard</li>
</ol>
</div>
</section>
    <!-- / PAGE TITLE -->
    <div class="container-fluid">
      <div class="row">
        <div class="col-md-6">
          <section class="panel tasks-widget"><img  src="../about-image/H-admin.jpg" class="img-responsive" style="height:555px;"></section>
        </div>
        <!-- / col-md-6 -->
        <div class="col-md-6">
          <div class="row">
            <div class="col-md-6 col-sm-6 col-xs-6 no-left-padding"> <a href="#" class="text-widget color-1">
              <header><strong>No</strong> new Message</header>
              <small class="hidden-xs hidden-sm"> </small> <span class="icon"><i class="ti-email"></i></span> </a> </div>
            <div class="col-md-6 col-sm-6 col-xs-6 no-right-padding"> <a href="show-product.php" target="_blank"class="text-widget color-2">
              <header> Your Products</header>
              <small class="hidden-xs hidden-sm">
                Totole Product :
                 <?php
                    $sql_check = "SELECT * FROM `tbl_product`";
                    $runNew = mysqli_query($link,$sql_check);
                    echo mysqli_num_rows($runNew);                  
                  ?>
              </small> <span class="icon"><i class="ti-money"></i></span> </a> </div>

            
                <div class="col-md-6 col-sm-6 col-xs-6 no-left-padding"> 
                  <a href="#http://www.fivedesign.in/" target="_blank"class="text-widget color-3">
                  <header> Your Newsletter</header>
                  <small class="hidden-xs hidden-sm">
                    <br>
                    <strong>Totle Subscriber : 
                      <?php
                        $sql_check = "SELECT * FROM `tbl_news_letter`";
                        $runNew = mysqli_query($link,$sql_check);
                        echo mysqli_num_rows($runNew);                  
                      ?>
                    </strong>
                  </small> <span class="icon"><i class="ti-money"></i></span> </a> 
                </div>

                
                <div class="col-md-6 col-sm-6 col-xs-6 no-left-padding"> 
                  <a href="show-Contact-us.php" class="text-widget color-4">
                  <header> Your Contact Us</header>
                  <small class="hidden-xs hidden-sm">
                    <br>
                    <strong>Totle Contact Us : 
                      <?php
                        $sql_check_c = "SELECT * FROM `tbl_contact`";
                        $runNew_c = mysqli_query($link,$sql_check_c);
                        echo mysqli_num_rows($runNew_c);                  
                      ?>
                    </strong>
                  </small> <span class="icon"><i class="ti-money"></i></span> </a> 
                </div> 
                


             <div class="col-md-12 col-sm-12 col-xs-12 no-right-padding"> 
              <div id="graph_booking"></div>
              </div>
              
          </div>
<!-- <section class="panel"> <div style="background-color:#000"><p style="text-align:center; padding-top:40px;color:#FFF;">LIKE US</p><p style="text-align:center; color:#FFF"><a href="https://www.facebook.com/fivedesign.in" target="_blank"><h1 style="text-align:center; color:#FFF; margin-top:-5PX;"><b style="color:#FFF;">Facebook</b></h1></a></p>
<p style="text-align:center; padding-top:15px;color:#FFF;">FOLLOW US</p><p style="text-align:center; color:#FFF"><a href="https://twitter.com/defivedesign" target="_blank"><h1 style="text-align:center; color:#FFF; margin-top:-5PX;"><b style="color:#FFF;">Twitter</b></h1></a></p>
<p style="text-align:center; padding-top:15px;color:#FFF;">FOLLOW US</p><p style="text-align:center; color:#FFF"><a href="https://www.linkedin.com/in/five-design-india" target="_blank"><h1 style="text-align:center; color:#FFF; margin-top:-5PX;"><b style="color:#FFF;">Linkedin</b></h1></a></p>
<p style="text-align:center; padding-top:15px;color:#FFF;">APPRECIATE US</p><p style="text-align:center; color:#FFF"><a href="https://www.instagram.com/fivedesign.in/" target="_blank"><h1 style="text-align:center; color:#FFF; margin-top:-5PX;"><b style="color:#FFF;">Instagram</b></h1></a></p><p style="padding-top:40px;"></p></div></section> -->  
        </div>
        <!-- / col-md-6 -->
      </div>
      <!-- / row -->
    </div>
    <!-- / container-fluid -->
  <?php include('site-footer.php'); ?>

  <script type="text/javascript">
    
  $(function(){


  $.ajax({
            url:'welcome.php',
            method:"post",
            dataType:'json',
            cache:false,
            success:function(data)
            {
        console.log(data);
    Morris.Bar({
        element: 'graph_booking',
          data: data,
          xkey: 'news_letter_date',
          ykeys: ['total'],
          labels: ['Payments']
    });
      }
        });

});

  </script>