{% extends 'layout/app.html.twig' %} {% block title %}Lot {{ batch.reference }}{% endblock %} {% block page_title %}Lot {{ batch.reference }}{% endblock %} {% set token = csrf_token('batch-' ~ batch.id) %} {% block page_actions %} ← Lots Bordereau PDF {% if batch.inPreparation and batch.dossiers is empty %}
{% endif %} {% endblock %} {% block content %}

Ambassade

{{ batch.embassy.name }}

Statut

{{ batch.status.label }}

Dossiers

{{ batch.dossiers|length }}

Dépôt

{{ batch.depositedAt ? batch.depositedAt|date('d/m/Y') : '—' }}

Retrait prévu

{{ batch.expectedPickupDate ? batch.expectedPickupDate|date('d/m/Y') : '—' }}

Retiré le

{{ batch.pickedUpAt ? batch.pickedUpAt|date('d/m/Y') : '—' }}

Frais de dépôt

{{ batch.depositFee|fcfa }}

Créé le {{ batch.createdAt|date('d/m/Y') }}{% if batch.createdBy %} par {{ batch.createdBy.fullName }}{% endif %}
{% if batch.notes %}

{{ batch.notes }}

{% endif %}
{% if batch.status.value == 'DEPOSE' %} {# Retrait : avis par dossier #}

Retrait à l'ambassade

Indiquez l'avis de l'ambassade pour chaque dossier. Favorable : l'agent est notifié pour récupérer le dossier ; défavorable : le dossier repart en soumission en ligne.

{% for dossier in batch.dossiers %} {% if dossier.status.value == 'DEPOSE' %} {% else %} {% endif %} {% endfor %}
{{ dossier.reference }}

{{ dossier.client.fullName }}

{% if dossier.decision %}Avis {{ dossier.decision.label|lower }} déjà saisi{% endif %}
{% else %}

Dossiers du lot

    {% for dossier in batch.dossiers %}
  • {{ dossier.reference }} — {{ dossier.client.fullName }}

    Agent : {{ dossier.assignedAgent ? dossier.assignedAgent.fullName : '—' }}

    {{ include('dossier/_status.html.twig') }} {% if dossier.decision %}{{ dossier.decision.label }}{% endif %} {% if batch.inPreparation %}
    {% endif %}
  • {% else %}
  • Aucun dossier dans ce lot.
  • {% endfor %}
{% endif %} {% if batch.inPreparation and ready is not empty %}

Ajouter des dossiers prêts ({{ ready|length }})

{{ include('batch/_ready_table.html.twig') }}
{% endif %}
{% if batch.inPreparation %}

Dépôt à l'ambassade

Étape 6 — à enregistrer une fois le lot déposé.

Joignez les reçus et photos du dépôt ci-dessous.

{% endif %}

Reçus et photos ({{ batch.attachments|length }})

{% set images = batch.attachments|filter(a => a.image) %} {% if images is not empty %}
{% for attachment in images %} {{ attachment.label }} {% endfor %}
{% endif %}
    {% for attachment in batch.attachments %}
  • {{ attachment.type.label }} {{ attachment.label }}
  • {% else %}
  • Aucune pièce.
  • {% endfor %}
{{ form_start(attachment_form) }} {{ form_row(attachment_form.type, {row_attr: {class: 'mb-3'}}) }} {{ form_row(attachment_form.label, {row_attr: {class: 'mb-3'}}) }} {{ form_row(attachment_form.file, {row_attr: {class: 'mb-3'}, attr: {class: 'block w-full text-sm text-slate-600 file:mr-3 file:rounded-lg file:border-0 file:bg-brand-50 file:px-3 file:py-2 file:text-brand-700'}}) }} {{ form_end(attachment_form) }}
{% endblock %}