<?php
    
    include("include/header.php");
//    include("$u_type/index.php");
?>

<style>
    #dks_Dashboard {
        background-color: #eb6a4e;
        color: #fff;
    }

    #dks_Dashboard a {
        color: #fff !important;
    }

    #dks_Dashboard a:hover {
        background-color: #eb6a4e !important;
    }

    .hpanel .stats-title h2 {
        text-align: center;
        font-size: 14px;
        font-weight: 600;
        display: block;
        margin: 0 auto;
        width: 100%;
    }

    .mypanel .panel-body {
        padding: 20px 12px;
        display: block;
        text-align: center;
        border-top: 5px solid #031330 !important;
        border-radius: 8px 8px 0 0;
    }

    .hpanel .panel-footer {
        border-top: 1px solid #eb6a4e;
    }

    .mypanel {
        -webkit-box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .3) !important;
        box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .3) !important;
        border-radius: 8px 8px 0 0;
    }

</style>

<div class="small-header">
    <div class="hpanel">
        <div class="panel-body" style="text-align:left;">
            <div id="hbreadcrumb" class="pull-right">
                <ol class="hbreadcrumb breadcrumb">
                    <li><a href="<?php echo $admin_baseurl . 'dashboard.php';?>">Dashboard</a></li>
                </ol>
            </div>
            <h2 class="font-light m-b-xs">
                Welcome to Admin
            </h2>

        </div>
    </div>
</div>

<div class="content">

    <br>
    <div class="row">

        <div class="col-lg-2">
            <div class="hpanel hred stats mypanel">

                <div class="panel-body h-100">
                    <div class="stats-title">
                        <h2 style="">Total BLogs</h2>
                    </div>

                    <div class="m-t-xl hred">
                        <h1 style="text-align: center; margin-bottom: -5px; margin-top: -22px;" class="text-success">
                            <b><?php
                    $user="select * from `blog` where `status` = 'active'";
                    $all_user = mysqli_query($conn, $user);	
                    if($all_user)
                    {
                        echo $countUser=mysqli_num_rows($all_user);
                    }

                ?> </b>
                        </h1>

                    </div>
                </div>
                <div class="panel-footer hred" >
                    <h6 style="text-align:center;"><a href="<?php echo $admin_baseurl . 'blogs/add-blogs.php';?>">View All</a></h6>
                </div>
            </div>
        </div>
        
         <div class="col-lg-2">
            <div class="hpanel hred stats mypanel">

                <div class="panel-body h-100">
                    <div class="stats-title">
                        <h2 style="">Total News </h2>
                    </div>

                    <div class="m-t-xl hred">
                        <h1 style="text-align: center; margin-bottom: -5px; margin-top: -22px;" class="text-success">
                            <b><?php
                    $user="select * from `news`";
                    $all_user = mysqli_query($conn, $user);	
                    if($all_user)
                    {
                        echo $countUser=mysqli_num_rows($all_user);
                    }

                ?> </b>
                        </h1>

                    </div>
                </div>
                <div class="panel-footer hred" >
                    <h6 style="text-align:center;"><a href="<?php echo $admin_baseurl . 'news/add-news.php';?>">View All</a></h6>
                </div>
            </div>
        </div>
        
        <div class="col-lg-2">
            <div class="hpanel hred stats mypanel">

                <div class="panel-body h-100">
                    <div class="stats-title">
                        <h2 style="">Total Youtubes Video</h2>
                    </div>

                    <div class="m-t-xl hred">
                        <h1 style="text-align: center; margin-bottom: -5px; margin-top: -22px;" class="text-success">
                            <b><?php
                    $user="select * from `youtube`";
                    $all_user = mysqli_query($conn, $user);	
                    if($all_user)
                    {
                        echo $countUser=mysqli_num_rows($all_user);
                    }

                ?> </b>
                        </h1>

                    </div>
                </div>
                <div class="panel-footer hred" >
                    <h6 style="text-align:center;"><a href="<?php echo $admin_baseurl . 'youtube/add-youtube.php';?>">View All</a></h6>
                </div>
            </div>
        </div>
        
       
        
    </div>


</div>






<?php 
    include('include/footer.php');
?>
