93 lines
6.5 KiB
Twig
93 lines
6.5 KiB
Twig
<!DOCTYPE html>
|
|
<html lang="ru">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>{% block title %}Панель суперадмина{% endblock %} — Бизнес.Точка</title>
|
|
<link href="{{ base_url('assets/css/bootstrap.min.css') }}" rel="stylesheet">
|
|
<link href="{{ base_url('assets/css/all.min.css') }}" rel="stylesheet">
|
|
<style>
|
|
.sa-layout { display: flex; min-height: 100vh; }
|
|
.sa-sidebar { width: 260px; background: #1a1a2e; color: #fff; padding: 20px 0; flex-shrink: 0; }
|
|
.sa-sidebar .logo { padding: 0 20px 30px; font-size: 24px; font-weight: bold; border-bottom: 1px solid #333; margin-bottom: 20px; }
|
|
.sa-sidebar .logo a { color: #fff; text-decoration: none; }
|
|
.sa-sidebar nav ul { list-style: none; padding: 0; margin: 0; }
|
|
.sa-sidebar nav ul li { border-bottom: 1px solid #252540; }
|
|
.sa-sidebar nav ul li a { display: block; padding: 15px 20px; color: #aaa; text-decoration: none; transition: 0.3s; }
|
|
.sa-sidebar nav ul li a:hover, .sa-sidebar nav ul li a.active { background: #252540; color: #fff; padding-left: 25px; }
|
|
.sa-sidebar nav ul li a i { margin-right: 10px; }
|
|
.sa-content { flex: 1; padding: 30px; background: #f5f6fa; overflow-y: auto; }
|
|
.sa-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
|
|
.sa-header h1 { margin: 0; font-size: 28px; color: #2c3e50; }
|
|
.sa-header .user-menu { display: flex; align-items: center; gap: 15px; }
|
|
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 30px; }
|
|
.stat-card { background: #fff; padding: 25px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
|
|
.stat-card h3 { margin: 0 0 10px; font-size: 14px; color: #7f8c8d; text-transform: uppercase; }
|
|
.stat-card .value { font-size: 36px; font-weight: bold; color: #2c3e50; }
|
|
.stat-card .icon { float: right; font-size: 40px; opacity: 0.1; }
|
|
.sa-card { background: #fff; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); margin-bottom: 20px; }
|
|
.sa-card-header { padding: 20px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
|
|
.sa-card-header h2 { margin: 0; font-size: 18px; color: #2c3e50; }
|
|
.sa-card-body { padding: 20px; }
|
|
.btn { display: inline-block; padding: 10px 20px; border: none; border-radius: 5px; cursor: pointer; text-decoration: none; font-size: 14px; transition: 0.3s; }
|
|
.btn-primary { background: #3498db; color: #fff; }
|
|
.btn-primary:hover { background: #2980b9; }
|
|
.btn-success { background: #27ae60; color: #fff; }
|
|
.btn-success:hover { background: #219a52; }
|
|
.btn-danger { background: #e74c3c; color: #fff; }
|
|
.btn-danger:hover { background: #c0392b; }
|
|
.btn-warning { background: #f39c12; color: #fff; }
|
|
.btn-warning:hover { background: #d68910; }
|
|
.btn-sm { padding: 6px 12px; font-size: 12px; }
|
|
.btn-block { display: block; width: 100%; text-align: center; }
|
|
.table { width: 100%; border-collapse: collapse; }
|
|
.table th, .table td { padding: 15px; text-align: left; border-bottom: 1px solid #eee; }
|
|
.table th { background: #f8f9fa; font-weight: 600; color: #2c3e50; }
|
|
.table tr:hover { background: #f8f9fa; }
|
|
.badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 500; }
|
|
.badge-success { background: #d4edda; color: #155724; }
|
|
.badge-warning { background: #fff3cd; color: #856404; }
|
|
.badge-danger { background: #f8d7da; color: #721c24; }
|
|
.badge-info { background: #d1ecf1; color: #0c5460; }
|
|
.form-group { margin-bottom: 20px; }
|
|
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: #2c3e50; }
|
|
.form-control { width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 5px; font-size: 14px; box-sizing: border-box; }
|
|
.form-control:focus { outline: none; border-color: #3498db; }
|
|
.alert { padding: 15px 20px; border-radius: 5px; margin-bottom: 20px; }
|
|
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
|
|
.alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
|
|
.alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
|
|
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
|
|
@media (max-width: 768px) { .grid-2 { grid-template-columns: 1fr; } }
|
|
</style>
|
|
{% block styles %}{% endblock %}
|
|
</head>
|
|
<body>
|
|
<div class="sa-layout">
|
|
<aside class="sa-sidebar">
|
|
<div class="logo">
|
|
<a href="{{ base_url('/superadmin') }}">⚡ Business.Point</a>
|
|
</div>
|
|
<nav>
|
|
<ul>
|
|
<li><a href="{{ base_url('/superadmin') }}" class="{{ is_active_route('superadmin') and not is_active_route('superadmin/') ? 'active' : '' }}">📊 Дашборд</a></li>
|
|
<li><a href="{{ base_url('/superadmin/modules') }}" class="{{ is_active_route('superadmin/modules') ? 'active' : '' }}">📦 Модули</a></li>
|
|
<li><a href="{{ base_url('/superadmin/subscriptions') }}" class="{{ is_active_route('superadmin/subscriptions') ? 'active' : '' }}">💳 Подписки</a></li>
|
|
<li><a href="{{ base_url('/superadmin/organizations') }}" class="{{ is_active_route('superadmin/organizations') ? 'active' : '' }}">🏢 Организации</a></li>
|
|
<li><a href="{{ base_url('/superadmin/users') }}" class="{{ is_active_route('superadmin/users') ? 'active' : '' }}">👥 Пользователи</a></li>
|
|
<li><a href="{{ base_url('/superadmin/statistics') }}" class="{{ is_active_route('superadmin/statistics') ? 'active' : '' }}">📈 Статистика</a></li>
|
|
<li><hr style="border-color: #333; margin: 15px 20px;"></li>
|
|
<li><a href="{{ base_url('/') }}" target="_blank">🔗 Вернуться на сайт</a></li>
|
|
</ul>
|
|
</nav>
|
|
</aside>
|
|
<main class="sa-content">
|
|
{% block content %}{% endblock %}
|
|
</main>
|
|
</div>
|
|
<script src="{{ base_url('assets/js/bootstrap.bundle.min.js') }}"></script>
|
|
<script src="{{ base_url('assets/js/base.js') }}"></script>
|
|
{% block scripts %}{% endblock %}
|
|
</body>
|
|
</html>
|