<?php

/**
 * Email Addresses.
 *
 * This template can be overridden by copying it to yourtheme/woocommerce/emails/email-addresses.php.
 *
 * HOWEVER, on occasion WooCommerce will need to update template files and you
 * (the theme developer) will need to copy the new files to your theme to
 * maintain compatibility. We try to do this as little as possible, but it does
 * happen. When this occurs the version of the template file will be bumped and
 * the readme will list any important changes.
 *
 * @see https://docs.woocommerce.com/document/template-structure/
 * @version 3.9.0
 */
defined( 'ABSPATH' ) || exit;

$text_align = is_rtl() ? 'right' : 'left';
$address    = $order->get_formatted_billing_address();
$shipping   = $order->get_formatted_shipping_address();

?><table id="addresses" cellspacing="0" cellpadding="0" style="width: 100%; vertical-align: top; margin-bottom: 40px; padding:0;" border="0">
	<tr>
		<td style="text-align:<?php echo esc_attr($text_align); ?>;" valign="top" width="50%">
			<div class="heading_bk">
				<h2 class="titles"><?php echo esc_html(__('Billing address', Sibs2\sibsConstants::SIBS_TRANSLATE)); ?></h2>
			</div>

			<address class="address">
				<?php echo wp_kses_post($address ? $address : esc_html(__('N/A', Sibs2\sibsConstants::SIBS_TRANSLATE))); ?>
				<?php if ($order->get_billing_phone()) : ?>
					<br /><?php echo wc_make_phone_clickable($order->get_billing_phone()); ?>
				<?php endif; ?>
				<?php if ($order->get_billing_email()) : ?>
					<br /><?php echo esc_html($order->get_billing_email()); ?>
				<?php endif; ?>
			</address>
		</td>
		<?php if (! wc_ship_to_billing_address_only() && $order->needs_shipping_address() && $shipping) : ?>
			<td style="text-align:<?php echo esc_attr($text_align); ?>; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; padding:0;" valign="top" width="50%">
				<div class="heading_bk">
					<h2 class="titles"><?php esc_html(__('Shipping address', Sibs2\sibsConstants::SIBS_TRANSLATE)); ?></h2>
				</div>

				<address class="address"><?php echo wp_kses_post($shipping); ?></address>
			</td>
		<?php endif; ?>
	</tr>
</table>