added Preorder filter

This commit is contained in:
Frank Schubert
2022-10-12 15:54:25 +02:00
parent 9b53186a6b
commit 192e1323df
7 changed files with 75 additions and 30 deletions
+2 -2
View File
@@ -101,8 +101,8 @@
<td>
<a href="<?=self::getUrl("Preorder", "Index", ["filter" => ["preordercampaign_id" => $camp->id]])?>">
<?=count($camp->active_preorders)?>
<?php if($camp->total_homes): ?>
/ <?=$camp->total_homes?> (<?=(round((count($camp->active_preorders) / $camp->total_homes) * 100, 2))?> %)
<?php if($camp->homes_total): ?>
/ <?=$camp->homes_total?> (<?=(round((count($camp->active_preorders) / $camp->homes_total) * 100, 2))?> %)
<?php endif; ?>
</a>
</td>