{% extends 'layouts/app.twig' %} {% block content %}

Dashboard

Overview of your media collection

{% if error %}
{{ error }}
{% endif %}
Total Media
{{ stats.total_media|number_format }}
Games
{{ stats.total_games|number_format }}
{{ stats.favorite_games }} favorites
Movies & TV
{{ (stats.total_movies + stats.total_tv_shows)|number_format }}
{{ stats.watched_movies }} watched
Music
{{ stats.total_music|number_format }}
{{ stats.favorite_music }} favorites
Total Playtime
{% if stats.total_playtime %} {{ (stats.total_playtime / 60)|round }}h {% else %} 0h {% endif %}
TV Episodes
{{ stats.total_episodes|number_format }}
Sync Status
{% if sync_stats.successful_syncs > 0 %} {{ sync_stats.successful_syncs }}/{{ sync_stats.total_syncs }} Success {% else %} No syncs yet {% endif %}

Recent Activity

{% if recent_games %}

Recently Played Games

    {% for game in recent_games %}
  • {% if game.image_url %} {% else %}
    {% endif %}

    {{ game.title }}

    {{ game.source_name }}

    {% if game.playtime_minutes %} {{ (game.playtime_minutes / 60)|round }}h played {% endif %}
  • {% endfor %}
{% endif %} {% if recent_movies %}

Recently Watched Movies

    {% for movie in recent_movies %}
  • {% if movie.poster_url %} {% else %}
    {% endif %}

    {{ movie.title }}

    {{ movie.source_name }}

    {% if movie.watch_count %} Watched {{ movie.watch_count }} times {% endif %}
  • {% endfor %}
{% endif %} {% if recent_syncs %}

Recent Sync Activities

    {% for sync in recent_syncs %}
  • {% if sync.status == 'completed' %} {% elseif sync.status == 'failed' %} {% else %} {% endif %}

    {{ sync.source_name }}

    {{ sync.sync_type|title }} sync

    {{ sync.processed_items }} items • {{ sync.created_at|date('M j, Y') }}
  • {% endfor %}
{% endif %} {% if not recent_games and not recent_movies and not recent_syncs %}

No recent activity

Start adding media to see your activity here.

{% endif %}
{% endblock %}