HEX
Server: Apache
System: Linux p3plzcpnl506847.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: slfopp7cb1df (5698090)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/slfopp7cb1df/www/pm/app/Views/invoices/total_invoices_value_widget.php
<?php
$card = "";
$icon = "";
$value = "";
$lang = "";
$link = "";

if ($type == "invoices") {
    $lang = app_lang("total_invoiced");
    $card = "bg-primary";
    $icon = "file-text";
    $value = to_currency($invoices_info->invoices_total);
    $link = get_uri('invoices/index');
} else if ($type == "payments") {
    $lang = app_lang("payments");
    $card = "bg-success";
    $icon = "check-square";
    $value = to_currency($invoices_info->payments_total);
    $link = get_uri('invoice_payments/index');
} else if ($type == "due") {
    $lang = app_lang("due");
    $card = "bg-coral";
    $icon = "compass";
    $value = to_currency(ignor_minor_value($invoices_info->due));
    $link = get_uri('invoices/index');
} else if ($type == "draft") {
    $lang = app_lang("draft_invoices_total");
    $card = "bg-orange";
    $icon = "file-text";
    $value = to_currency($invoices_info->draft_total);
    $link = get_uri('invoices/index');
}
?>

<a href="<?php echo $link; ?>" class="white-link">
    <div class="card  dashboard-icon-widget">
        <div class="card-body ">
            <div class="widget-icon <?php echo $card ?>">
                <i data-feather="<?php echo $icon; ?>" class="icon"></i>
            </div>
            <div class="widget-details">
                <h1><?php echo $value; ?></h1>
                <span class="bg-transparent-white"><?php echo $lang; ?></span>
            </div>
        </div>
    </div>
</a>