{% extends 'TopxiaAdminBundle::layout.html.twig' %}

{% set nav = 'system' %}

{% block content %}
  <div class="col-md-2">
    {% block sidebar %}
      <div class="list-group">
        <a href="{{ path('admin_setting_site') }}" class="list-group-item {% if menu == 'site' %}active{% endif %}">站点设置</a>
        <a href="{{ path('admin_setting_questions_setting') }}" class="list-group-item {% if menu == 'operation' %}active{% endif %}">全局设置</a>
        <a href="{{ path('admin_setting_cloud') }}" class="list-group-item {% if menu == 'cloud' %}active{% endif %}">云平台设置</a>
        {# <a href="{{ path('admin_setting_payment') }}" class="list-group-item {% if menu == 'paymentGlobal' %}active{% endif %}">支付设置</a> #}
        <a href="{{ path('admin_setting_user_fields') }}" class="list-group-item {% if menu == 'user_set' %}active{% endif %}">用户相关设置</a>
        {# <a href="{{ path('admin_setting_mobile') }}" class="list-group-item {% if menu == 'client' %}active{% endif %}">移动客户端设置</a> #}

        <a href="{{ url('admin_setting_ip_blacklist') }}" class="list-group-item {% if menu == 'ip_blacklist' %}active{% endif %}">IP黑名单</a>

        <a href="{{ url('admin_optimize') }}" class="list-group-item {% if menu == 'optimize' %}active{% endif %}">优化和备份</a>   
       {% if setting('storage.upload_mode') == 'cloud' %}
        <a href="{{ url('admin_cloud_bill') }}" class="list-group-item {% if menu == 'bill' %}active{% endif %}">云视频账单</a>
       {% endif %}

        <a href="{{ url('admin_app_upgrades') }}" class="list-group-item {% if menu == 'upgrades' %}active{% endif %}">检查系统更新</a>
        <a href="{{ url('admin_operation_analysis_register',{tab:"trend",analysisDateType:"register"}) }}" class="list-group-item {% if menu == 'analysis' %}active{% endif %}">数据统计</a>
        <a href="{{ url('admin_logs') }}" class="list-group-item {% if menu == 'logs' %}active{% endif %}">系统日志</a>

      </div>
    {% endblock %}
  </div>
  <div class="col-md-10">
      {% block main %}{% endblock %}
  </div>
{% endblock %}