|
|
|
@ -35,6 +35,84 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="card-deck mt-sm-4">
|
|
|
|
|
<div class="card bg-purple text-light">
|
|
|
|
|
<div class="card-body">
|
|
|
|
|
<h4 class="card-title"><?php $Strings->get("Adults") ?></h4>
|
|
|
|
|
<h1 class="d-inline mr-2"><i class="fas fa-calendar-alt"></i></h1>
|
|
|
|
|
<h2 class="d-inline">
|
|
|
|
|
<?php
|
|
|
|
|
$daystrs = $database->select("adults", "days");
|
|
|
|
|
$days = ["Tu" => 0, "We" => 0, "Th" => 0, "Fr" => 0];
|
|
|
|
|
foreach ($daystrs as $str) {
|
|
|
|
|
$arr = str_split($str, 2);
|
|
|
|
|
foreach ($arr as $day) {
|
|
|
|
|
$days[$day] += 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
foreach ($days as $day => $count) {
|
|
|
|
|
?>
|
|
|
|
|
<span class="mr-3 text-nowrap"><?php echo $day; ?> <?php echo $count; ?></span>
|
|
|
|
|
<?php } ?>
|
|
|
|
|
</h2>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="card bg-purple text-light">
|
|
|
|
|
<div class="card-body">
|
|
|
|
|
<h4 class="card-title"><?php $Strings->get("Youth") ?></h4>
|
|
|
|
|
<h1 class="d-inline mr-2"><i class="fas fa-calendar-alt"></i></h1>
|
|
|
|
|
<h2 class="d-inline">
|
|
|
|
|
<?php
|
|
|
|
|
$daystrs = $database->select("youth", "days");
|
|
|
|
|
$days = ["Tu" => 0, "We" => 0, "Th" => 0, "Fr" => 0];
|
|
|
|
|
foreach ($daystrs as $str) {
|
|
|
|
|
$arr = str_split($str, 2);
|
|
|
|
|
foreach ($arr as $day) {
|
|
|
|
|
$days[$day] += 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
foreach ($days as $day => $count) {
|
|
|
|
|
?>
|
|
|
|
|
<span class="mr-3 text-nowrap"><?php echo $day; ?> <?php echo $count; ?></span>
|
|
|
|
|
<?php } ?>
|
|
|
|
|
</h2>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="card-deck mt-sm-4">
|
|
|
|
|
<div class="card bg-blue-grey text-light">
|
|
|
|
|
<div class="card-body">
|
|
|
|
|
<h4 class="card-title"><?php $Strings->get("Shirts") ?></h4>
|
|
|
|
|
<h1 class="d-inline mr-2"><i class="fas fa-tshirt"></i></h1>
|
|
|
|
|
<h2 class="d-inline">
|
|
|
|
|
<?php
|
|
|
|
|
$shirtcount = $database->select("people", "shirt");
|
|
|
|
|
$shirts = ["YS" => 0, "YM" => 0, "YL" => 0, "AS" => 0, "AM" => 0, "AL" => 0, "AX" => 0, "A2" => 0];
|
|
|
|
|
foreach ($shirtcount as $str) {
|
|
|
|
|
$shirts[$str] += 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
foreach ($shirts as $shirt => $count) {
|
|
|
|
|
?>
|
|
|
|
|
<span class="mr-3 text-nowrap"><?php
|
|
|
|
|
if ($shirt == "AX") {
|
|
|
|
|
echo "AXL";
|
|
|
|
|
} else if ($shirt == "A2") {
|
|
|
|
|
echo "AXXL";
|
|
|
|
|
} else {
|
|
|
|
|
echo $shirt;
|
|
|
|
|
}
|
|
|
|
|
?> <?php echo $count; ?></span>
|
|
|
|
|
<?php } ?>
|
|
|
|
|
</h2>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="card-deck mt-sm-4">
|
|
|
|
|
<div class="card bg-green text-light">
|
|
|
|
|
<div class="card-body">
|
|
|
|
@ -48,9 +126,6 @@
|
|
|
|
|
echo number_format($total, 2);
|
|
|
|
|
?></h1>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="card-footer">
|
|
|
|
|
<a href="app.php?page=payments" class="text-light"><i class="fas fa-arrow-right"></i> <?php $Strings->get("View Payments"); ?></a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="card bg-green text-light">
|
|
|
|
@ -65,8 +140,5 @@
|
|
|
|
|
echo number_format($total, 2);
|
|
|
|
|
?></h1>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="card-footer">
|
|
|
|
|
<a href="app.php?page=payments" class="text-light"><i class="fas fa-arrow-right"></i> <?php $Strings->get("View Payments"); ?></a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|