<div class="container-fluid page-body-wrapper">
<nav class="navbar p-0 fixed-top d-flex flex-row">
<div class="navbar-brand-wrapper d-flex d-lg-none align-items-center justify-content-center">
<a class="navbar-brand brand-logo-mini" href="/user/dashboard"><img src="/img/logo.svg" alt="logo"></a>
</div>
<div class="navbar-menu-wrapper flex-grow d-flex align-items-stretch">
<button class="navbar-toggler navbar-toggler align-self-center" type="button" data-toggle="minimize">
<span class="mdi mdi-menu"></span>
</button>
<ul class="navbar-nav w-100">
<li class="nav-item w-100">
</li>
</ul>
<ul class="navbar-nav navbar-nav-right">
<li class="nav-item nav-settings d-none d-lg-block">
</li>
<li class="nav-item dropdown border-left">
<a class="nav-link count-indicator dropdown-toggle" href="https://t.me/+aMYs8dcG9uEyZmJi">
<i class="fa fa-paper-plane fa-fw text-purple"></i>
</a>
</li>
<li class="nav-item dropdown border-left">
<a class="nav-link count-indicator dropdown-toggle" href="/user/dashboard">
<i class="fas fa-sharp fa-solid fa-headset text-purple"></i>
</a>
</li>
<!--li class="nav-item dropdown border-left">
<a class="nav-link count-indicator dropdown-toggle" href="/user/dashboard">
<i class="fas fa-solid fa-image text-purple"></i>
</a>
</li-->
<?
// Свежие письма для пользователя
$num_mess = $db->query("SELECT id FROM `db_message` ORDER BY id DESC")->fetchAll();
$num = count($num_mess);
$u_mess = $db->query("SELECT id, messeges FROM db_users WHERE id = '$uid'")->fetchArray();
$new_mess = $u_mess['messeges'] ?? 0;
$numm = $num - $new_mess;
?>
<?php if($num == ($new_mess ?? 0)) { ?>
<?php } else { ?>
<li class="nav-item dropdown border-left">
<a class="nav-link count-indicator dropdown-toggle" href="/user/message">
<i class="mdi mdi-email"></i>
<span class="count bg-success"></span>
</a>
</li>
<?php } ?>
<li class="nav-item dropdown border-left">
</li>
<li class="nav-item dropdown">
<a class="nav-link" id="profileDropdown" href="#" data-toggle="dropdown">
<div class="navbar-profile">
<img class="img-xs rounded-circle" src="/img/logo.svg" alt="">
<p class="mb-0 d-none d-sm-block navbar-profile-name"><?=$user['login'];?></p>
<i class="mdi mdi-menu-down d-none d-sm-block"></i>
</div>
</a>
<div class="dropdown-menu dropdown-menu-right navbar-dropdown preview-list" aria-labelledby="profileDropdown">
<h6 class="p-3 mb-0">Меню</h6>
<div class="dropdown-divider"></div>
<a class="dropdown-item preview-item"href="/user/dashboard">
<div class="preview-thumbnail">
<div class="preview-icon bg-dark rounded-circle">
<i class="mdi mdi-account-card-details text-success"></i>
</div>
</div>
<div class="preview-item-content">
<p class="preview-subject mb-1">Кабинет</p>
</div>
</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item preview-item"href="/reviews">
<div class="preview-thumbnail">
<div class="preview-icon bg-dark rounded-circle">
<i class="mdi mdi-chemical-weapon text-success"></i>
</div>
</div>
<div class="preview-item-content">
<p class="preview-subject mb-1">Отзывы</p>
</div>
</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item preview-item"href="/stats">
<div class="preview-thumbnail">
<div class="preview-icon bg-dark rounded-circle">
<i class="mdi mdi-clock-fast text-success"></i>
</div>
</div>
<div class="preview-item-content">
<p class="preview-subject mb-1">Статистика</p>
</div>
</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item preview-item"href="/user/settings">
<div class="preview-thumbnail">
<div class="preview-icon bg-dark rounded-circle">
<i class="mdi mdi-settings text-success"></i>
</div>
</div>
<div class="preview-item-content">
<p class="preview-subject mb-1">Настройки</p>
</div>
</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item preview-item"href="/user/logout">
<div class="preview-thumbnail">
<div class="preview-icon bg-dark rounded-circle">
<i class="mdi mdi-logout text-danger"></i>
</div>
</div>
<div class="preview-item-content">
<p class="preview-subject mb-1">Выход</p>
</div>
</a>
</li>
</ul>
<button class="navbar-toggler navbar-toggler-right d-lg-none align-self-center" type="button" data-toggle="offcanvas">
<span class="mdi mdi-format-line-spacing"></span>
</button>
</div>
</nav>
<!-- partial -->
<div class="main-panel">
<div class="content-wrapper">
<div class="page-header">
<h3 class="page-title">{!TITLE!}</h3>
<nav aria-label="breadcrumb">
</nav>
</div>
<div class="container">
<div class="row blocklinks">
<?
$linksss = $db->query("SELECT * FROM db_links ORDER BY id DESC LIMIT 6")->fetchAll();
foreach ($linksss as $link) {
?>
<div class="col-lg-2 col-md-4 linklist">
<a href="/go/<?=$link['id'];?>" target="_blank">
<span class="bylnkzag" title="Переходов: <?=$link['count'];?>"><?=$link['text'];?></span>
</a>
</div>
<?
}
?>
<?php if ($uid) : ?>
<a class="buylink btn-danger" href="/user/links" title="Купить ссылку "><span class="fa fa-plus"></span></a>
<?php endif;?>
<?php if (!$uid) : ?>
<a class="buylink btn-primary" href="/links" title="Купить ссылку "><span class="fa fa-info"></span></a>
<?php endif;?>
</div>
</div>
<br>
<center><?PHP include("inc/block_banners.php"); ?> </center>