Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/old/app/design/frontend/Cnc/default/Fooman_PdfCustomiser/templates/pdf/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/app/design/frontend/Cnc/default/Fooman_PdfCustomiser/templates/pdf/invoice.phtml
<?php

use Cnc\Checkout\Model\Packaging;
use Cnc\Payment\Model\Config;

/**
 * @var \Fooman\PdfCustomiser\Block\Invoice $block
 * @var \Magento\Framework\Escaper $escaper
 *
 * Note on the use of @noEscape throughout this template
 * html output is allowed by design to allow users to customise their pdfs
 * Before pdf rendering all output is run filtered by @see \Magento\Framework\Filter\Input\MaliciousCode
 */
?>
<?php $invoice = $block->getInvoice() ?>
<?php $order = $block->getOrder() ?>
<?php $design = $block->getDesign() ?>

<table width="100%" border="0" cellpadding="8" cellspacing="0">
    <tr>
        <?php if ($block->isLogoOnRight()): ?>
            <td
                valign="top"
                width="50%"
                height="30mm"
                style="font-weight:bold; font-size:<?= /* @noEscape */ $block->getFontsize('large') ?>"
            ><?= $escaper->escapeHtml($block->getTitle()) ?></td>
            <td valign="top">&nbsp;<?= /* @noEscape */ $block->getLogoBlock() ?></td>
        <?php else: ?>
            <td width="50%"
                valign="top"><?= /* @noEscape */ $block->getLogoBlock() ?></td>
            <td
                valign="top"
                height="30mm"
                style="font-weight:bold; font-size:<?= /* @noEscape */ $block->getFontsize('large') ?>"
            ><?= $escaper->escapeHtml(__('Invoice #') . $invoice->getIncrementId()) ?></td>
        <?php endif; ?>
    </tr>
    <tr>
        <td valign="top"
            width="50%"
        ><?= /* @noEscape */ nl2br($escaper->escapeHtml($block->getOwnerAddress())) ?>
            <BR />
            <BR />

            <strong><?= /* @noEscape */  __('Customer\'s internal order number') ?>:</strong>
            <?= $block->escapeHtml($order->getData('order_number')); ?><br/>
            <strong><?= /* @noEscape */  __('Blank retailer packaging (CheckBox)') ?>:</strong>
            <?= /* @noEscape */  $order->getData('cnc_packaging') == Packaging::PACKAGING_PLAIN ?
                __('Blank') : __('Cnc brand'); ?>
        </td>
        <td valign="top"><?= $escaper->escapeHtml(__('Invoice Date')) ?>:
            <?= /* @noEscape */ $block->getFormattedDate($invoice->getCreatedAt()) ?><br/>
            <?php if ($block->showOrderIncrementId()): ?>
                <?= /* @noEscape */ $escaper->escapeHtml(__('Order CNC #')) . ': ' . $order->getIncrementId() ?><br/>
            <?php endif; ?>
        </td>
    </tr>

    <?php if ($block->getData('content_block_1') && !empty($block->getData('content_block_1'))): ?>
        <tr>
            <td valign="top" colspan="2"
            ><?= /* @noEscape */  $block->getData('content_block_1'); ?><br/>
            </td>
        </tr>

        <tr>
            <td colspan="2">&nbsp;</td>
        </tr>
    <?php endif; ?>

    <tr>
        <?php if ($block->shouldDisplayBothAddresses()): ?>
        <td valign="top"
            width="50%"
            style="<?= /* @noEscape */ $block->getDesign()->getHeaderStyle(true, true)?>"
        ><?= $escaper->escapeHtml(__('Sold to') . ':') ?></td>
        <td valign="top"
            style="<?= /* @noEscape */ $block->getDesign()->getHeaderStyle(true, true)?>"
        ><?php if (!$order->getIsVirtual()):
                ?><?= $escaper->escapeHtml(__('Ship to') . ':') ?><?php
            endif; ?></td>
    </tr>
<tr>
<td valign="top"
    style="<?= /* @noEscape */ $block->getDesign()->getCellStyle(true, true, true, false)?>"
><?= /* @noEscape */ $block->getBillingAddress() . $block->getOrder()->getCustomerEmail() ?></td>
<td valign="top"
    style="<?= /* @noEscape */ $block->getDesign()->getCellStyle(true, true, false, true)?>"
><?php if (!$order->getIsVirtual()):
        ?><?= /* @noEscape */ $block->getShippingAddress() ?><?php
    endif; ?></td>
<?php elseif ($block->shouldDisplayShippingAddress()): ?>
<td valign="top"
    colspan="2"
    style="<?= /* @noEscape */ $block->getDesign()->getHeaderStyle(true, true)?>"></td>
</tr>
<tr>
<td valign="top"
    colspan="2"
    style="<?= /* @noEscape */ $block->getDesign()->getCellStyle(true, true, true, true)?>"
><?= /* @noEscape */ $block->getShippingAddress() ?></td>
<?php elseif ($block->shouldDisplayBillingAddress()): ?>
<td valign="top"
    colspan="2"
    style="<?= /* @noEscape */ $block->getDesign()->getHeaderStyle(true, true)?>"></td>
</tr>
    <tr>
        <td valign="top"
            colspan="2"
            style="<?= /* @noEscape */ $block->getDesign()->getCellStyle(true, true, true, true)?>"
        ><?= /* @noEscape */ $block->getBillingAddress() . $block->getOrder()->getCustomerEmail()  ?></td>
        <?php endif; ?>
    </tr>
    <tr>
        <td colspan="2">&nbsp;</td>
    </tr>
    <?php if ($order->getIsVirtual()): ?>
        <tr>
            <td valign="top"
                colspan="2"
                style="<?= /* @noEscape */ $block->getDesign()->getHeaderStyle(true, true)?>"
            ><strong><?= $escaper->escapeHtml(__('Payment Method')) ?></strong></td>
        </tr>
        <tr>
            <td valign="top"
                colspan="2"
                style="<?= /* @noEscape */ $block->getDesign()->getCellStyle(true, true, true, true)?>"
            ><?= /* @noEscape */ $block->getPaymentBlock() ?></td>
        </tr>
    <?php else: ?>
        <tr>
            <td valign="top"
                width="50%"
                style="<?= /* @noEscape */ $block->getDesign()->getHeaderStyle(true, true)?>"
            ><strong><?= $escaper->escapeHtml(__('Payment Method')) ?></strong></td>
            <td valign="top"
                style="<?= /* @noEscape */ $block->getDesign()->getHeaderStyle(true, true)?>"
            ><strong><?= $escaper->escapeHtml(__('Shipping Method')) ?></strong></td>
        </tr>
        <tr>
            <td valign="top"
                width="50%"
                style="<?= /* @noEscape */ $block->getDesign()->getCellStyle(true, true, true, false)?>"
            ><?= /* @noEscape */ $block->getPaymentBlock() ?></td>
            <td valign="top"
                style="<?= /* @noEscape */ $block->getDesign()->getCellStyle(true, true, false, true)?>"
            ><?= /* @noEscape */ $block->getShippingBlock() ?></td>
        </tr>
    <?php endif; ?>
    <tr>
        <td colspan="2">&nbsp;</td>
    </tr>
</table>

<?= /* @noEscape */ $block->getItemsBlock($design->getItemStyling()) ?>

<?= /* @noEscape */ $block->getTotalsBlock() ?>

<?php if ($block->getData('content_block_2') && !empty($block->getData('content_block_2'))): ?>
    <br/>
    <table width="100%" border="0" cellpadding="2" cellspacing="0">
        <tr>
            <td valign="top" colspan="2"
            ><?= /* @noEscape */  $block->getData('content_block_2'); ?><br/>
            </td>
        </tr>

        <tr>
            <td colspan="2">&nbsp;</td>
        </tr>
    </table>
<?php endif; ?>
<br/>
<table width="100%" border="0" cellpadding="2" cellspacing="0">
    <tr>
        <?php
        $iban = $block->getScopeConfig()->getValue(Config::BANKTRANSFER_IBAN);
        $iban = ($iban ? 'IBAN: ' . $iban : '');
        $swift = $block->getScopeConfig()->getValue(Config::BANKTRANSFER_SWIFT);
        $swift = ($swift ? 'SWIFT: ' . $swift : '');
        ?>
        <td valign="top" colspan="2"><?= $block->escapeHtml($iban); ?><BR />
            <?= $block->escapeHtml($swift); ?>
        </td>
    </tr>
</table>

<?= /* @noEscape */ $block->getGiftmessageBlock()?>

<?= /* @noEscape */ $block->getTaxTableBlock() ?>

<?= /* @noEscape */ $block->getCommentsBlock() ?>

<?php $customText = $block->getCustomText() ?>
<?php if ($customText): ?>
    <br/>
    <table width="100%" border="0" cellpadding="8" cellspacing="0">
        <tr>
            <td colspan="2"><?= /* @noEscape */$customText ?></td>
        </tr>
    </table>
<?php endif; ?>

<?php $groupText = $block->getGroupText($order->getCustomerGroupId()) ?>
<?php if ($groupText): ?>
    <br/>
    <table width="100%" border="0" cellpadding="2" cellspacing="0">
        <tr>
            <td colspan="2"> <?= /* @noEscape */ $groupText ?></td>
        </tr>
    </table>
<?php endif; ?>

Spamworldpro Mini