{% extends "layouts/base.html" %}
{% load i18n %}
{% load static %}

{% block title %}Configuration - PX360{% endblock %}

{% block content %}
<div class="container-fluid">
    <div class="d-flex justify-content-between align-items-center mb-4">
        <div>
            <h2 class="mb-1">
                <i class="bi bi-gear text-secondary me-2"></i>
                System Configuration
            </h2>
            <p class="text-muted mb-0">Manage system settings and configurations</p>
        </div>
    </div>

    <div class="row">
        <div class="col-md-4">
            <div class="card">
                <div class="card-body text-center">
                    <i class="bi bi-clock-history text-warning" style="font-size: 3rem;"></i>
                    <h5 class="mt-3">{% trans "SLA Configurations" %}</h5>
                    <p class="text-muted">{{ sla_configs_count }} active configs</p>
                    <a href="{% url 'config:sla_config_list' %}" class="btn btn-primary">
                        Manage SLA Configs
                    </a>
                </div>
            </div>
        </div>

        <div class="col-md-4">
            <div class="card">
                <div class="card-body text-center">
                    <i class="bi bi-signpost-split text-info" style="font-size: 3rem;"></i>
                    <h5 class="mt-3">{% trans "Routing Rules" %}</h5>
                    <p class="text-muted">{{ routing_rules_count }} active rules</p>
                    <a href="{% url 'config:routing_rules_list' %}" class="btn btn-primary">
                        Manage Routing Rules
                    </a>
                </div>
            </div>
        </div>

        <div class="col-md-4">
            <div class="card">
                <div class="card-body text-center">
                    <i class="bi bi-hospital text-success" style="font-size: 3rem;"></i>
                    <h5 class="mt-3">{% trans "Hospitals" %}</h5>
                    <p class="text-muted">{{ hospitals_count }} active hospitals</p>
                    <a href="/admin/organizations/hospital/" class="btn btn-primary">
                        Manage Hospitals
                    </a>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}
