{% extends 'press_site/layout/main.html.twig' %}
{% block title %}{{ 'menu.header.home' | trans({}, 'PressSite') }}{% endblock %}
{% block content %}
<main>
<div class="body__container">
{% if new_movies_collection is not empty %}
<div class="category__title-container">
<h1>{{ 'content.titles.new_movies' | trans({}, 'PressSite') }}</h1>
{% if not isBroadcastType() %}
<a href="{{ path('press_site.actions.product.new_movies', {_locale: app.request.locale}) }}" class="link__box">
{{ 'meta.see_all.new' | trans({}, 'PressSite') }}
</a>
{% endif %}
</div>
<div class="body__category-container">
{% for new_movie in new_movies_collection %}
{% include 'press_site/actions/movies/partials/listing/single_list_item.html.twig' with { entity: new_movie } %}
{% endfor %}
</div>
{% endif %}
{% if upcoming_movies_collection is not empty %}
<div class="category__title-container">
<h1>{{ 'content.titles.upcoming_movies' | trans({}, 'PressSite') }}</h1>
{% if not isBroadcastType() %}
<a href="{{ path('press_site.actions.product.upcoming_movies', {_locale: app.request.locale}) }}" class="link__box">
{{ 'meta.see_all.upcoming' | trans({}, 'PressSite') }}
</a>
{% endif %}
</div>
<div class="body__category-container">
{% for upcoming_movie in upcoming_movies_collection %}
{% include 'press_site/actions/movies/partials/listing/single_list_item.html.twig' with { entity: upcoming_movie } %}
{% endfor %}
</div>
{% endif %}
</div>
</main>
{% endblock %}