{% extends 'admin/base.html' %} {% block title %}{{ t('dashboard.title') }}{% endblock %} {% block content %}

๐Ÿ‘‹ {{ t('dashboard.greeting') }} {{ current_user.display_name or current_user.username }}!

{{ t('dashboard.welcome') }}

{% if current_user.can_access_settings() %}
๐ŸŽ‰ {{ t('dashboard.update_available') }}
{% endif %}
{{ t('dashboard.new_post') }} ๐Ÿ“„ {{ t('dashboard.new_page') }} ๐Ÿ–ผ๏ธ {{ t('dashboard.upload_image') }}
๐Ÿ“
{{ stats.total_posts }}
{{ t('dashboard.total_posts') }}
โœ…
{{ stats.published_posts }}
{{ t('dashboard.published') }}
๐Ÿ“‹
{{ stats.draft_posts }}
{{ t('dashboard.drafts') }}
๐Ÿ“„
{{ stats.total_pages }}
{{ t('dashboard.total_pages') }}
๐Ÿ–ผ๏ธ
{{ stats.total_images }}
{{ t('dashboard.total_images') }}
๐Ÿ‘ฅ
{{ stats.total_users }}
{{ t('dashboard.total_users') }}
๐Ÿ“‹
{{ stats.total_forms }}
{{ t('dashboard.total_forms') }}
{% if stats.new_submissions > 0 %} ๐Ÿ””
{{ stats.new_submissions }}
{{ t('dashboard.new_submissions') }}
{% endif %}
๐Ÿ“ {{ t('dashboard.recent_posts') }} {{ t('dashboard.view_all') }} โ†’
{% if recent_posts %}
    {% for post in recent_posts %}
  • {{ post.title }}
    {{ post.updated_at|format_date }} ยท {{ post.language|upper }}
    {{ t('common.status_' + post.status) }} {{ t('dashboard.edit') }}
  • {% endfor %}
{% else %}
{{ t('dashboard.no_posts_yet') }} {{ t('dashboard.create_first_post') }}
{% endif %}
๐Ÿ“„ {{ t('dashboard.recent_pages') }} {{ t('dashboard.view_all') }} โ†’
{% if recent_pages %}
    {% for page in recent_pages %}
  • {{ page.title }}
    {{ page.updated_at|format_date }} ยท {{ page.language|upper }}
    {{ t('common.status_' + page.status) }} {{ t('dashboard.edit') }}
  • {% endfor %}
{% else %}
{{ t('dashboard.no_pages_yet') }} {{ t('dashboard.create_first_page') }}
{% endif %}
{% if recent_submissions %}
๐Ÿ“‹ {{ t('dashboard.recent_submissions') }} {{ t('dashboard.view_all') }} โ†’
{% endif %}
๐Ÿ• {{ t('dashboard.recent_activity') }} {% if current_user.can_access_settings() %} {{ t('dashboard.view_all') }} โ†’ {% endif %}
{% if recent_activity %}
{% for log in recent_activity %}
{{ t('audit_log.action_' + log.action) }} {% if log.details %} โ€” {{ log.details|translate_detail|truncate(60) }}{% endif %}
{{ log.created_at|format_datetime }}
{% endfor %}
{% else %}
{{ t('dashboard.no_activity') }}
{% endif %}
{% if current_user.can_access_settings() %} {% endif %} {% endblock %}