<?php
/**
 * PeachPay Admin settings primary navigation HTML view.
 *
 * @var array $bread_crumbs The array of breadcrumbs passed to the breadcrumb view.
 *
 * @package PeachPay
 */

defined( 'PEACHPAY_ABSPATH' ) || exit;

require_once PEACHPAY_ABSPATH . 'core/admin/views/utilities.php';

?>
<div id="peachpay-nav" class="col">
	<div class="notice notice-warning peachpay-stripe-upgrade-notice" style="margin: 0 0 16px 0; padding: 12px 16px; display: flex; align-items: center; gap: 10px; border-left: 4px solid #dba617;">
		<span class="dashicons dashicons-warning" style="color: #dba617; font-size: 20px;"></span>
		<p style="margin: 0; flex: 1;">
			<strong><?php esc_html_e( 'Action Required:', 'peachpay-for-woocommerce' ); ?></strong>
			<?php esc_html_e( 'To ensure uninterrupted payment processing, please reconnect your Stripe account after upgrading to PeachPay version 1.120.6 or later.', 'peachpay-for-woocommerce' ); ?>
			<a href="<?php echo esc_url( admin_url( 'admin.php?page=peachpay&tab=payment#stripe' ) ); ?>" style="margin-left: 8px;">
				<?php esc_html_e( 'Reconnect Stripe', 'peachpay-for-woocommerce' ); ?> &rarr;
			</a>
		</p>
	</div>
	<div class='peachpay-header'>
		<div class="peachpay-heading">
			<div class="left">
				<div class="hamburger-menu icon"></div>
				<a class="peachpay-logo" href="<?php Peachpay_Admin::admin_settings_url(); ?>"></a>
			</div>
			<div class="right" style="margin-right: -6px;">
				<?php peachpay_generate_top_nav_link( null, 'https://peachpay.notion.site/8526d0ee6f984b679afd4e9a60fd25d7?v=712cb377635f47dd8c8a920a089ab7b4', 'docs-icon', 'Docs' ); ?>
				<?php peachpay_generate_top_nav_link( null, 'https://twitter.com/peachpayhq/', 'twitter-icon', 'Twitter' ); ?>
			</div>
		</div>
		<?php require PeachPay::get_plugin_path() . '/core/admin/views/html-bread-crumbs.php'; ?>
	</div>
</div>
<?php
