You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.8 KiB
PHP
44 lines
1.8 KiB
PHP
<?php
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
?>
|
|
<div class="card-deck">
|
|
<div class="card bg-blue text-light">
|
|
<div class="card-body">
|
|
<h4 class="card-title"><?php $Strings->get("Campers") ?></h4>
|
|
<h1><i class="fas fa-fw fa-users"></i> <?php echo $database->count('campers'); ?></h1>
|
|
</div>
|
|
<div class="card-footer">
|
|
<a href="app.php?page=campers" class="text-light"><i class="fas fa-arrow-right"></i> <?php $Strings->get("View Campers"); ?></a>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="card bg-indigo text-light">
|
|
<div class="card-body">
|
|
<h4 class="card-title"><?php $Strings->get("Volunteers") ?></h4>
|
|
<h1><i class="fas fa-fw fa-users"></i> <?php echo $database->count('adults'); ?></h1>
|
|
</div>
|
|
<div class="card-footer">
|
|
<a href="app.php?page=volunteers" class="text-light"><i class="fas fa-arrow-right"></i> <?php $Strings->get("View Volunteers"); ?></a>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="card bg-green text-light">
|
|
<div class="card-body">
|
|
<h4 class="card-title"><?php $Strings->get("Card Payments") ?></h4>
|
|
<h1><i class="fas fa-fw fa-credit-card"></i> $<?php
|
|
$amounts = $database->select("payments", "amountpaid");
|
|
$total = 0.0;
|
|
foreach ($amounts as $amt) {
|
|
$total += $amt;
|
|
}
|
|
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>
|