fix: drop status breakdown from applications-by-destination stats
This commit is contained in:
@@ -41,39 +41,24 @@
|
||||
<thead>
|
||||
<tr class="bg-gray-50 border-b">
|
||||
<th class="px-4 py-3 text-left font-semibold">Destination</th>
|
||||
<th class="px-4 py-3 text-right font-semibold">Neu</th>
|
||||
<th class="px-4 py-3 text-right font-semibold">In Prüfung</th>
|
||||
<th class="px-4 py-3 text-right font-semibold">Abgelehnt</th>
|
||||
<th class="px-4 py-3 text-right font-semibold">Gesamt</th>
|
||||
<th class="px-4 py-3 text-right font-semibold">Bewerbungen</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for stat in statistics %}
|
||||
<tr class="border-b hover:bg-gray-50">
|
||||
<td class="px-4 py-3 font-medium">{{ stat.hotelCode }}</td>
|
||||
<td class="px-4 py-3 text-right">{{ stat.new }}</td>
|
||||
<td class="px-4 py-3 text-right">{{ stat.pending }}</td>
|
||||
<td class="px-4 py-3 text-right">{{ stat.rejected }}</td>
|
||||
<td class="px-4 py-3 text-right"><span class="font-medium">{{ stat.total }}</span></td>
|
||||
<td class="px-4 py-3 text-right">{{ stat.total }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
<tfoot>
|
||||
{% set totalNew = 0 %}
|
||||
{% set totalPending = 0 %}
|
||||
{% set totalRejected = 0 %}
|
||||
{% set totalAll = 0 %}
|
||||
{% for stat in statistics %}
|
||||
{% set totalNew = totalNew + stat.new %}
|
||||
{% set totalPending = totalPending + stat.pending %}
|
||||
{% set totalRejected = totalRejected + stat.rejected %}
|
||||
{% set totalAll = totalAll + stat.total %}
|
||||
{% endfor %}
|
||||
<tr class="bg-gray-100 font-semibold">
|
||||
<td class="px-4 py-3">Gesamt</td>
|
||||
<td class="px-4 py-3 text-right">{{ totalNew }}</td>
|
||||
<td class="px-4 py-3 text-right">{{ totalPending }}</td>
|
||||
<td class="px-4 py-3 text-right">{{ totalRejected }}</td>
|
||||
<td class="px-4 py-3 text-right">{{ totalAll }}</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
|
||||
Reference in New Issue
Block a user