<?php
/**
 * Email Header
 *
 * @since 6.5.0
 * @since 6.8.0 Updated To show or hide the logo in email header based on the setting.
 */
use WPTravelEngine\Core\Models\Settings\Options;

$settings  = Options::get( 'wp_travel_engine_settings' );
$show_logo = wptravelengine_toggled( $settings['email']['show_header_image_logo'] ?? '1' );

?>
<div style="background-color: #F4F4F4;width: 100%;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; padding-bottom: 72px; <?php echo ! $show_logo ? 'padding-top: 32px;' : ''; ?>">
<table style="max-width: 590px; width: 100%;margin: 0 auto;color: #111322;font-size: 14px;line-height: 1.7;">
	<?php
	if ( $show_logo ) :
		$logo_url = $settings['email']['logo']['url'];
		?>
		<thead>
			<tr>
				<th style="text-align: center;padding: 32px 0 24px;">
					<?php if ( ! empty( $logo_url ) ) : ?>
						<a href="<?php echo esc_url( home_url( '/' ) ); ?>" style="box-shadow: none; outline: none;">
							<img style="max-width: 100px;margin: 0 auto;height: auto;" src="<?php echo esc_url( $logo_url ); ?>" alt="<?php echo esc_attr( get_bloginfo( 'name' ) ); ?>">
						</a>
					<?php else : ?>
						<h2 style="margin: 0;"><?php echo esc_html( get_bloginfo( 'name' ) ); ?></h2>
					<?php endif; ?>
				</th>
			</tr>
		</thead>
	<?php endif; ?>
	<tbody>
		<tr>
			<td style="padding: 32px;background-color: #fff;border-radius: 8px;">
