<?php
/**
 * Admin.
 *
 * @package Noesia_Commerce_Suite
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- View templates receive local variables from their renderer.
$fields = array( 'enable_care_page', 'require_login_care_page', 'privacy_noindex', 'show_product_name', 'show_order_number', 'show_purchase_date', 'show_warranty_status', 'show_warranty_expiry_date', 'show_verified_badge', 'show_support_button', 'show_review_button', 'show_reorder_button', 'show_store_contact', 'show_care_instructions', 'care_page_title_text', 'care_page_intro_text', 'care_instructions_text' );
$admin->render_settings_group( 'order-care', __( 'Order Care Page Visibility', 'noesia-commerce-suite' ), __( 'Control what appears on the privacy-safe secure care page.', 'noesia-commerce-suite' ), $fields, $settings, 'order-care-page' );
?>
<section class="noesia-cs-grid noesia-cs-grid--bottom">
	<div class="noesia-cs-panel">
		<div class="noesia-cs-panel__head"><h2><?php esc_html_e( 'Warranty Display Engine', 'noesia-commerce-suite' ); ?></h2><span><?php esc_html_e( 'Free core', 'noesia-commerce-suite' ); ?></span></div>
		<p class="noesia-cs-panel__body-note"><?php esc_html_e( 'The public Order Care Page now calculates warranty status per purchased item using the default warranty period and the selected warranty date mode. Product/category-specific warranty periods remain a Pro-level rule layer, not mixed into the free core.', 'noesia-commerce-suite' ); ?></p>
		<ul class="noesia-cs-check-list">
			<li><?php esc_html_e( 'Item-level warranty label on the care page', 'noesia-commerce-suite' ); ?></li>
			<li><?php esc_html_e( 'Optional warranty expiry date display', 'noesia-commerce-suite' ); ?></li>
			<li><?php esc_html_e( 'Order date or completed date calculation mode', 'noesia-commerce-suite' ); ?></li>
			<li><?php esc_html_e( 'Custom warranty texts from settings', 'noesia-commerce-suite' ); ?></li>
		</ul>
	</div>
	<div class="noesia-cs-panel">
		<div class="noesia-cs-panel__head"><h2><?php esc_html_e( 'Privacy Guard', 'noesia-commerce-suite' ); ?></h2><span><?php esc_html_e( 'public token page', 'noesia-commerce-suite' ); ?></span></div>
		<p class="noesia-cs-panel__body-note"><?php esc_html_e( 'The secure care page continues to avoid customer email, phone, full address, payment details and exact private delivery data. Login requirement can be enabled from this screen.', 'noesia-commerce-suite' ); ?></p>
	</div>
</section>
<section class="noesia-cs-pro-grid">
	<?php $admin->pro_edition_card( __( 'Care Hub Templates', 'noesia-commerce-suite' ), __( 'Give the customer care page a more premium look for warranty, support, reviews and reorders.', 'noesia-commerce-suite' ), 'care_templates' ); ?>
	<?php $admin->pro_edition_card( __( 'Branded QR & Care Emails', 'noesia-commerce-suite' ), __( 'Make QR cards, care emails and reminder buttons match your own store identity.', 'noesia-commerce-suite' ), 'qr_email_branding' ); ?>
	<?php $admin->pro_edition_card( __( 'Product & Category Warranty Rules', 'noesia-commerce-suite' ), __( 'Set different warranty periods for specific products, SKUs or categories.', 'noesia-commerce-suite' ), 'product_category_warranty_rules' ); ?>
</section>
