| 1 |
<?php if ( ! defined( 'ABSPATH' ) ) exit; |
| 2 |
|
| 3 |
use FluentCart\App\Modules\Tax\TaxModule;?> |
| 4 |
|
| 5 |
<?php if(!empty($order)): ?> |
| 6 |
<table align="center" width="100%" border="0" cellpadding="0" cellspacing="0" role="presentation" |
| 7 |
style="margin-left:auto;margin-right:auto;max-width:620px;margin-bottom:20px;border: none;"> |
| 8 |
<tbody> |
| 9 |
<tr style="width:100%"> |
| 10 |
<td> |
| 11 |
<table align="center" width="100%" border="0" cellpadding="0" cellspacing="0" role="presentation" style="border: none;"> |
| 12 |
<tbody style="width:100%"> |
| 13 |
<tr style="width:100%"> |
| 14 |
<td style="width:60%"> |
| 15 |
<h1 style="font-size:24px;font-weight:700;color:rgb(17,24,39);margin:0px"> |
| 16 |
{{ settings.store_brand }} |
| 17 |
</h1> |
| 18 |
</td> |
| 19 |
<td style="vertical-align: middle; width: 15%; text-align: right; border: 0;padding-right: 10px;"> |
| 20 |
<p style="white-space: nowrap; color: #94a3b8; text-align: right; margin: 0;font-size:12px;"><?php echo esc_html__('Order Date', 'fluent-cart'); ?></p> |
| 21 |
<p style="white-space: nowrap; font-weight: bold; color: #000; text-align: right; margin: 0;font-size:15px;">{{order.created_at}}</p> |
| 22 |
</td> |
| 23 |
<td style="width:15%;text-align:right"> |
| 24 |
<p style="white-space: nowrap; color: #94a3b8; text-align: right; margin: 0;font-size:12px;"> |
| 25 |
<?php echo esc_html__('Order #', 'fluent-cart'); ?> |
| 26 |
</p> |
| 27 |
<p style="white-space: nowrap; font-weight: bold; color: #000; text-align: right; margin: 0;font-size:14px;"> |
| 28 |
<?php echo esc_html($order->invoice_no); ?> |
| 29 |
</p> |
| 30 |
</td> |
| 31 |
</tr> |
| 32 |
</tbody> |
| 33 |
</table> |
| 34 |
<?php |
| 35 |
$orderTaxRates = $order->orderTaxRates->first(); |
| 36 |
if ($orderTaxRates): ?> |
| 37 |
<div class="fct_invoice_tax_content" style="text-align: right;"> |
| 38 |
<?php |
| 39 |
$storeVatNumber = isset($orderTaxRates->meta['store_vat_number']) ? $orderTaxRates->meta['store_vat_number'] : ''; |
| 40 |
$taxcountry = isset($orderTaxRates->meta['tax_country']) ? $orderTaxRates->meta['tax_country'] : ''; |
| 41 |
if ($storeVatNumber !== '') { |
| 42 |
echo '<p style="font-weight: 600; font-size: 14px;margin-bottom:12px;">' . esc_html(TaxModule::getCountryTaxTitle($taxcountry)) . ': ' . esc_html($storeVatNumber) . '</p>'; |
| 43 |
} |
| 44 |
?> |
| 45 |
</div> |
| 46 |
<?php endif; ?> |
| 47 |
</td> |
| 48 |
</tr> |
| 49 |
</tbody> |
| 50 |
</table> |
| 51 |
<?php endif; ?> |
| 52 |
|