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: //proc/self/root/proc/thread-self/cwd/pm/app/Views/invoices/invoice_parts/invoice_info.php
<?php if (get_setting("invoice_style") == "style_3") { ?>
<?php if ($invoice_info->type == "credit_note") { ?>
<div style="font-size: 25px; margin-bottom: 10px;"><?php echo app_lang("credit_note"); ?></div>
<?php } else { ?>
<div style="font-size: 25px; margin-bottom: 10px;"><?php echo app_lang("invoice"); ?></div>
<?php } ?>
<div style="line-height: 5px;"></div>
<span class="invoice-meta text-default"><?php echo app_lang("invoice_number") . ": " . $invoice_info->display_id; ?></span><br />
<?php } else { ?>
<?php if ($invoice_info->type == "credit_note") { ?>
<span class="invoice-info-title" style="font-size:20px; font-weight: bold;background-color: <?php echo $color; ?>; color: #fff;">&nbsp;<?php echo app_lang("credit_note"); ?>&nbsp;</span><br />
<span class="invoice-meta text-default"><?php echo app_lang("id") . ": " . $invoice_info->display_id; ?></span><br />
<?php } else { ?>
<span class="invoice-info-title" style="font-size:20px; font-weight: bold;background-color: <?php echo $color; ?>; color: #fff;">&nbsp;<?php echo $invoice_info->display_id; ?>&nbsp;</span><br />
<div style="line-height: 1px;"></div>
    <?php } ?>
<?php } ?>
<span class="invoice-meta text-default"><?php
    if (isset($invoice_info->custom_fields) && $invoice_info->custom_fields) {
        foreach ($invoice_info->custom_fields as $field) {
            if ($field->value) {
                echo "<span>" . $field->custom_field_title . ": " . view("custom_fields/output_" . $field->custom_field_type, array("value" => $field->value)) . "</span><br />";
            }
        }
    }

    if ($invoice_info->type == "credit_note") {
        echo app_lang("date") . ": " . format_to_date($invoice_info->bill_date, false);
        ?><?php
    } else {
        echo app_lang("bill_date") . ": " . format_to_date($invoice_info->bill_date, false);
        ?><br /><?php
        echo app_lang("due_date") . ": " . format_to_date($invoice_info->due_date, false);
    }
    ?></span>

<?php
if ($invoice_info->main_invoice_id) {
    echo "<br /><span class='invoice-meta text-default'>" . app_lang("main_invoice") . "</span>: " . anchor(get_uri("invoices/preview/" . $invoice_info->main_invoice_id) . "/1", $invoice_info->main_invoice_display_id? $invoice_info->main_invoice_display_id : "", array("title" => app_lang("main_invoice"), "style" => "font-size: 90%; color: #666;"));
} else if ($invoice_info->credit_note_id) {
    echo "<br /><span class='invoice-meta text-default'>" . app_lang("credit_note") . "</span>: " . anchor(get_uri("invoices/preview/" . $invoice_info->credit_note_id) . "/1", $invoice_info->credit_note_display_id? $invoice_info->credit_note_display_id : "", array("title" => app_lang("credit_note"), "style" => "font-size: 90%; color: #666;"));
}