{% extends 'superadmin/layout.twig' %} {% block content %}

Организация: {{ organization.name }}

← Назад
{% for alert in get_alerts() %}
{{ alert.message }}
{% endfor %}

Информация об организации

ID {{ organization.id }}
Название {{ organization.name }}
Тип {% if organization.type == 'business' %} Бизнес {% else %} Личное пространство {% endif %}
Тариф {% if currentSubscription %} {% set plan = plans|filter(p => p.id == currentSubscription.plan_id)|first %} {% if plan %} {{ plan.name }} {% else %} ID: {{ currentSubscription.plan_id }} {% endif %} {% else %} Не назначен {% endif %}
Статус подписки {% if currentSubscription %} {% if currentSubscription.status == 'active' %} Активна {% elseif currentSubscription.status == 'expired' %} Истёкшая {% elseif currentSubscription.status == 'trial' %} Пробный период {% else %} {{ currentSubscription.status }} {% endif %} {% else %} Нет подписки {% endif %}
Срок действия {% if currentSubscription and currentSubscription.expires_at %} до {{ currentSubscription.expires_at|date('d.m.Y H:i') }} {% else %} Не ограничен {% endif %}
Статус организации {% if organization.status == 'active' %} Активна {% elseif organization.status == 'blocked' %} Заблокирована {% else %} {{ organization.status|default('Не определён') }} {% endif %}
Создана {{ organization.created_at|date('d.m.Y H:i') }}
{% if organization.status == 'active' %} 🚫 Заблокировать {% else %} ✅ Разблокировать {% endif %} 🗑️ Удалить

Управление тарифом

{{ csrf_field()|raw }}
Оставьте пустым или 0 для неограниченного срока

Статистика

{{ users|length }}
Участников

{% set owner_count = users|filter(u => u.role == 'owner')|length %} {{ owner_count }}
Владельцы
{% set admin_count = users|filter(u => u.role == 'admin')|length %} {{ admin_count }}
Админы
{% set manager_count = users|filter(u => u.role == 'manager')|length %} {{ manager_count }}
Менеджеры

Участники организации

{% if users is empty %}

Участников пока нет

{% else %} {% for user in users %} {% endfor %}
Пользователь Email Роль Статус Дата добавления
{{ user.name|default('—') }} {{ user.email }} {{ user.role }} {% if user.status == 'active' %} Активен {% elseif user.status == 'blocked' %} Заблокирован {% else %} {{ user.status }} {% endif %} {{ user.created_at|date('d.m.Y') }}
{% endif %}
{% endblock %}