{% extends 'auth_layout.html' %}
{% block content %}
<div class="row">
    <div class="col">
        <h3 class="mb-3"><i class="ri-dashboard-fill"></i> Admin Dashboard</h3>
        <div class="row justify-content-center">
            {% if context.suspend_setting == "false" %}
                <div class="col-sm-12 mb-4">
                    <div class="card">
                        <div class="card-body text-center">
                            <h3 class="text-success"><i class="ri-checkbox-circle-line"></i> Email Scheduler is running</h3>
                        </div>
                    </div>
                </div>
            {% else %}
                <div class="col-sm-12 mb-4">
                    <div class="card">
                        <div class="card-body text-center">
                            <h3 class="text-danger"><i class="ri-error-warning-line"></i> Email Scheduler is not running</h3>
                            <a href="{{ url_for('enable_scheduler') }}" class="btn btn-dark mt-3">Enable Scheduler</a>
                        </div>
                    </div>
                </div>
            {% endif %}

            <div class="col-sm-12 col-md-6 mb-4">
                <div class="card">
                    <div class="card-body text-center">
                        <h4>ILS User Count</h4>
                        <h1 class="display-3">{{ context.ils_user_count }}</h1>
                    </div>
                </div>
            </div>

            <div class="col-sm-12 col-md-6 mb-4">
                <div class="card">
                    <div class="card-body text-center">
                        <h4>Scheduled Reminders</h4>
                        <h1 class="display-3">{{ context.total_email_reminders }}</h1>
                    </div>
                </div>
            </div>



        </div>
    </div>
</div>
{% endblock %}