{% extends 'superadmin/layout.twig' %} {% block content %}
| 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') }} |
Участников пока нет
{% else %}| Пользователь | Роль | Статус | Дата добавления | |
|---|---|---|---|---|
| {{ 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') }} |