<?php
/**
 * Template part for displaying new post
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package storeethan
 */
defined( 'ABSPATH' ) || exit;

$faqs = array(
    array(
        'content'   => __('Payments are accepted via credit card, debit card, PayPal, or Apple Pay with a valid United States billing and shipping address. Accepted credit cards are Visa, American Express, and Mastercard.
When placing an order, your billing address must correspond to the address of your credit card, or we will not be able to process your order.
All transactions are secured. The Seasons Authentic website is provided with an SSL encryption system to protect personal and payment data.' , 'storeethan'),
        'label'     => __('Làm thế nào để đặt hàng?' , 'storeethan'),
    ),
    array(
        'content'   => __('Payments are accepted via credit card, debit card, PayPal, or Apple Pay with a valid United States billing and shipping address. Accepted credit cards are Visa, American Express, and Mastercard.
When placing an order, your billing address must correspond to the address of your credit card, or we will not be able to process your order.
All transactions are secured. The Seasons Authentic website is provided with an SSL encryption system to protect personal and payment data.' , 'storeethan'),
        'label'     => __('Có những hình thức thanh toán nào?' , 'storeethan'),
    ),
    array(
        'content'   => __('Payments are accepted via credit card, debit card, PayPal, or Apple Pay with a valid United States billing and shipping address. Accepted credit cards are Visa, American Express, and Mastercard.
When placing an order, your billing address must correspond to the address of your credit card, or we will not be able to process your order.
All transactions are secured. The Seasons Authentic website is provided with an SSL encryption system to protect personal and payment data.' , 'storeethan'),
        'label'     => __('Có thể đổi trả sản phẩm không?' , 'storeethan'),
    ),
    array(
        'content'   => __('Payments are accepted via credit card, debit card, PayPal, or Apple Pay with a valid United States billing and shipping address. Accepted credit cards are Visa, American Express, and Mastercard.
When placing an order, your billing address must correspond to the address of your credit card, or we will not be able to process your order.
All transactions are secured. The Seasons Authentic website is provided with an SSL encryption system to protect personal and payment data.' , 'storeethan'),
        'label'     => __('Chính sách bảo hành như thế nào?' , 'storeethan'),
    )
)


?>

<section class="section_faq">
    <div class="container-fluid">
        <h4 class="section_title"><?php _e('Câu hỏi thường gặp' , 'storeethan'); ?></h4>
        <div class="questions">
            <?php foreach($faqs as $key => $faq) : ?>
                <div class="faq_item">
                    <div class="question collapsed" data-bs-toggle="collapse" data-bs-target="#faq<?php echo $key; ?>" aria-expanded="false" aria-controls="faq<?php echo $key; ?>">
                        <div class="label">
                            <?php echo $faq['label']; ?>
                        </div>
                        <div class="faq_icon">
                            <svg class="icon_plus" width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
                                <path fill-rule="evenodd" clip-rule="evenodd" d="M16 5.33301C16.7363 5.33301 17.3333 5.92996 17.3333 6.66634V25.333C17.3333 26.0694 16.7363 26.6663 16 26.6663C15.2636 26.6663 14.6666 26.0694 14.6666 25.333V6.66634C14.6666 5.92996 15.2636 5.33301 16 5.33301Z" fill="#111111"/>
                                <path fill-rule="evenodd" clip-rule="evenodd" d="M5.33337 16.0003C5.33337 15.2639 5.93033 14.667 6.66671 14.667H25.3334C26.0698 14.667 26.6667 15.2639 26.6667 16.0003C26.6667 16.7367 26.0698 17.3337 25.3334 17.3337H6.66671C5.93033 17.3337 5.33337 16.7367 5.33337 16.0003Z" fill="#111111"/>
                            </svg>
                            <svg class="icon_minius" width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
                                <path fill-rule="evenodd" clip-rule="evenodd" d="M5.33337 16.0003C5.33337 15.2639 5.93033 14.667 6.66671 14.667H25.3334C26.0698 14.667 26.6667 15.2639 26.6667 16.0003C26.6667 16.7367 26.0698 17.3337 25.3334 17.3337H6.66671C5.93033 17.3337 5.33337 16.7367 5.33337 16.0003Z" fill="#111111"/>
                            </svg>
                        </div>
                    </div>
                    <div class="answer collapse" id="faq<?php echo $key; ?>">
                        <p class="mb-0 mt-4">
                            <?php echo $faq['content']; ?>
                        </p>
                    </div>
                </div>
            <?php endforeach; ?>
        </div>
    </div>

</section>
