<?php
if ( ! defined( 'ABSPATH' ) ) exit;
?>
<div class="wpcb-admin-header">
	<div class="wpcb-admin-main">
		<div class="wpcb-admin-logo">
			<a href="<?php echo esc_url( admin_url( 'edit.php?post_type=wpcb_configuration&page=welcome') ); ?>">
				<img src="<?php echo esc_url( WPCB_BASE_URL ); ?>admin/img/wcb-logo.png" height="150" width="150" alt="WCB">
			</a>
			<?php if ( wpcb_fs()->is_plan_or_trial( 'pro' ) ) : ?>
				<span class="pro">PRO</span>
			<?php endif; ?>
		</div>
	</div>
	<div class="wpcb-admin-right">
		<ul class="wpcb-admin-links">
			<li>
				<a href="<?php echo esc_url( admin_url( 'edit.php?post_type=wpcb_configuration&page=welcome') ); ?>">
					<?php esc_attr_e( 'Welcome', 'wcb-configurator-builder' ); ?>
				</a>
			</li>
			<li>
				<a href="https://wpconfiguratorbuilder.com/docs/" target="_blank">
					<?php esc_attr_e( 'Documentation', 'wcb-configurator-builder' ); ?>
					<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" style="fill: #266DC0;"><path d="M19.071 4.929c-3.899-3.898-10.243-3.898-14.143 0-3.898 3.899-3.898 10.244 0 14.143 3.899 3.898 10.243 3.898 14.143 0 3.899-3.9 3.899-10.244 0-14.143zm-3.536 10.607-2.828-2.829-3.535 3.536-1.414-1.414 3.535-3.536-2.828-2.829h7.07v7.072z"></path></svg>
				</a>
			</li>
			<?php if ( ! wpcb_fs()->is_plan_or_trial( 'pro' ) ) : ?>
				<li>
					<a href="https://wpconfiguratorbuilder.com/add-ons/" target="_blank">
						<?php esc_attr_e( 'Add-ons', 'wcb-configurator-builder' ); ?>
						<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" style="fill: #266DC0;"><path d="M19.071 4.929c-3.899-3.898-10.243-3.898-14.143 0-3.898 3.899-3.898 10.244 0 14.143 3.899 3.898 10.243 3.898 14.143 0 3.899-3.9 3.899-10.244 0-14.143zm-3.536 10.607-2.828-2.829-3.535 3.536-1.414-1.414 3.535-3.536-2.828-2.829h7.07v7.072z"></path></svg>
					</a>
				</li>
			<?php endif; ?>
		</ul>
		<?php if ( ! wpcb_fs()->is_plan_or_trial( 'pro' ) ) : ?>
			<a href="<?php echo esc_url( admin_url('edit.php?post_type=wpcb_configuration&page=wcb-configurator-builder-pricing') ); ?>" class="wpcb-button">
				<?php esc_attr_e( 'Upgrade', 'wcb-configurator-builder' ); ?>
			</a>
		<?php else: ?>
			<a href="https://wpconfiguratorbuilder.com/support/" target="_blank" class="wpcb-button">
				<?php esc_attr_e( 'Support', 'wcb-configurator-builder' ); ?>
			</a>
		<?php endif; ?>
	</div>
</div>