{% extends 'applicant/layout.html.twig' %}
{% block content %}
{{ include('_message.html.twig') }}
{% for batch in batches %}
<div class="card">
<div class="card-body">
<h5 class="card-title border-bottom">{{ batch.name }}</h5>
<p class="card-text">
<a href="{{ path('applicant_project_index', {id:batch.id}) }}" class="btn btn-primary btn-sm" role="button">
{% if is_granted('applicant_action', batch) %}提交材料{% else %}查看我的提交{% endif %}
</a>
</p>
<ul class="list-group">
{% for notice in batch.notices %}
<li class="list-group-item d-flex justify-content-between align-items-center">
<a href="{{ path('notice',{id:notice.id}) }}" target="_blank">{{ notice.name }}</a></a>
<span class="badge bg-secondary rounded-pill">{{ notice.createdAt|date('Y-m-d') }}</span>
</li>
{% endfor %}
</ul>
</div>
</div>
<br>
{% endfor %}
{% endblock %}