{% if inDelivery %}
<fieldset>
<legend></legend>
<h5>Delivery NO: {{ delivery_parcel.delivery.id }}
<p class="detail">Loaded By: {{ delivery_parcel.createdBy.person.secondName }} {{ delivery_parcel.createdBy.person.sirName }}</p>
<p class="detail">Destination: {{ delivery_parcel.delivery.destination.stationName }}</p>
{% if isEnRoute %}
<p class="detail">From: <i class="fas fa-hand-point-right"></i>{{ delivery_parcel.createdAt | date("F jS, Y \\a\\t g:ia") }}</p>
<p class="detail">To: <i class="fas fa-hand-point-right"></i>{{ delivery_vehicle.createdAt | date("F jS, Y \\a\\t g:ia") }}</p>
{% endif %}
</h5>
</fieldset>
{% endif %}
{% if isEnRoute %}
<fieldset>
<legend></legend>
<h5>REG: {{ delivery_vehicle.vehicle.regNumber }}
<p class="detail">Loaded By: {{ delivery_vehicle.createdBy.person.secondName }} {{ delivery_vehicle.createdBy.person.sirName }}</p>
<p class="detail">From: <i class="fas fa-hand-point-right"></i>{{ delivery_vehicle.createdAt | date("F jS, Y \\a\\t g:ia") }}</p>
{% if delivery_parcel.isReceived %}
<p class="detail">To: <i class="fas fa-hand-point-right"></i>{{ delivery_parcel.receivedAt | date("F jS, Y \\a\\t g:ia") }}</p>
{% endif %}
</h5>
</fieldset>
{% endif %}
{% if delivery_parcel and delivery_parcel.isReceived %}
<fieldset>
<legend>Received By</legend>
<h5>USER: {{ delivery_parcel.receivedBy.person.firstName | upper }} {{ delivery_parcel.receivedBy.person.secondName | upper }} {{delivery_parcel.receivedBy.person.sirName | upper }}
<p class="detail">From: <i class="fas fa-hand-point-right"></i>{{ delivery_parcel.receivedAt | date("F jS, Y \\a\\t g:ia") }}</p>
{% if delivery_parcel.parcel.waybill.isCollected %}
{#<p class="detail">to: <i class="fas fa-hand-point-right"></i>{{ delivery_parcel.parcel.waybill. | date("F jS, Y \\a\\t g:ia") }}</p>#}
{% endif %}
</h5>
</fieldset>
{% endif %}
{# {% if parcel.isCollected %}
<fieldset>
<legend>Collected By</legend>
<h5>National ID: {{ parcel.collectorNationalId }}</h5>
<h5>USER: {{ parcel.collectedOfficerBy.person.firstName | upper }} {{ parcel.collectedOfficerBy.person.secondName | upper }} {{parcel.collectedOfficerBy.person.sirName | upper }}</h5>
<p class="detail">At: <i class="fas fa-hand-point-right"></i>{{ parcel.collectedAt | date("F jS, Y \\a\\t g:ia") }}</p>
</fieldset>
{% endif %}#}