{% extends 'base.html' %}
{% block title %}运营面板 - 概览{% endblock %}
{% block content %}
<div class="row g-3">
  <div class="col-md-3">
    <div class="card">
      <div class="card-body">
        <div class="text-muted">用户数量</div>
        <div class="h4">{{ users_count }}</div>
      </div>
    </div>
  </div>
  <div class="col-md-3">
    <div class="card">
      <div class="card-body">
        <div class="text-muted">域名数量</div>
        <div class="h4">{{ domains_count }}</div>
      </div>
    </div>
  </div>
  <div class="col-md-3">
    <div class="card">
      <div class="card-body">
        <div class="text-muted">套餐数量</div>
        <div class="h4">{{ plans_count }}</div>
      </div>
    </div>
  </div>
  <div class="col-md-3">
    <div class="card">
      <div class="card-body">
        <div class="text-muted">未支付账单</div>
        <div class="h4">{{ unpaid_invoices }}</div>
      </div>
    </div>
  </div>
</div>

<div class="mt-4">
  <div class="btn-group">
    <a class="btn btn-primary" href="{% url 'admin_panel:settings' %}">系统设置</a>
    <a class="btn btn-outline-secondary" href="{% url 'admin_panel:plans' %}">套餐管理</a>
    <a class="btn btn-outline-secondary" href="{% url 'admin_panel:users' %}">用户管理</a>
    <a class="btn btn-outline-secondary" href="{% url 'admin_panel:domains' %}">域名管理</a>
    <a class="btn btn-outline-secondary" href="{% url 'admin_panel:billing_list' %}">账单管理</a>
    <a class="btn btn-outline-secondary" href="{% url 'admin_panel:quotas' %}">配额视图</a>
    <a class="btn btn-outline-secondary" href="{% url 'admin_panel:monitoring' %}">统计监控</a>
  </div>
 </div>
{% endblock %}