<?php
/*
Template Name: Electronics Component Software
*/

get_header('new');
?>

<style>
.explore-electronic-inventory .table tbody tr th,
.explore-electronic-inventory .table tbody tr td{
    width: 33.33%;
}
</style>
<section class="section banner supply-chain-banner pb-5 no-lazy">
    <div class="container">
        <div class="row mt-xl-5 mt-lg-0">
            <div class="col-lg-6">
                <div class="text-cont mt-0">
                    <h1 class="banner-heading"><?php echo get_field('banner_heading'); ?></h1>
                    <p class="banner-content">
                        <?php echo get_field('banner_description'); ?>
                    </p>
					<?php $highlights = get_field('banner_highlights'); ?>
                    <ul>
                        <?php if ($highlights && is_array($highlights)) : ?>
                            <?php foreach ($highlights as $highlight) : ?>
                                <li>
                                    <img src="<?php echo get_template_directory_uri(); ?>/assets/img/apparel-inventory-management/tick.webp" alt="tick" class="img-fluid">
                                    <?php echo $highlight['item']; ?>
                                </li>
                            <?php endforeach; ?>
                        <?php endif; ?>
                    </ul>
                    <div class="banner-btns">
						<?php $cta_1 = get_field('banner_cta_1'); ?>
						 <?php if (!is_null($cta_1)) : ?>
                        <a href="<?php echo esc_url($cta_1['url']); ?>" class="primary animated-cta-btn <?php echo is_modal_link($cta_1['url']); ?>"><?php echo $cta_1['title']; ?>
                            <!-- <svg width="14" height="12" viewBox="0 0 14 12" fill="none" xmlns="http://www.w3.org/2000/svg">
                                <path d="M5.598 0.799999H8.19L13.59 6.2L8.19 11.6H5.598L10.062 7.136H0.9V5.264H10.062L5.598 0.799999Z" fill="white"/>
                            </svg> -->
                        </a>
						<?php endif; ?>
						<?php $cta_2 = get_field('banner_cta_2'); ?>
						<?php if (!is_null($cta_2)) : ?>
                        <a href="<?php echo esc_url($cta_2['url']); ?>" class="border-gradient-btn animated-btn <?php echo is_modal_link($cta_2['url']); ?>"><?php echo $cta_2['title']; ?>
                            <svg width="14" height="11" viewBox="0 0 14 11" fill="none" xmlns="http://www.w3.org/2000/svg">
                                <path d="M5.35816 0.0996094H7.95016L13.3502 5.49961L7.95016 10.8996H5.35816L9.82216 6.43561H0.660156V4.56361H9.82216L5.35816 0.0996094Z" fill="black"/>
                            </svg>
                        </a>
						<?php endif; ?>
                    </div>
                </div>
            </div>
            <div class="col-lg-6">
                <div class="img-cont">
					<?php
	$desktop_img_url = get_field('banner_image');
	$mobile_img_url  = get_field('banner_mobile_image');
?>
    <picture>
        <source class="no-lazy" media="(max-width: 767px)" srcset="<?php echo $mobile_img_url ? $mobile_img_url : $desktop_img_url ?>">
        <img src="<?php echo $desktop_img_url;?>" loading="eager" fetchpriority="high" decoding="async" width="636" height="411" class="img-fluid no-lazy" alt="<?php echo strip_tags(get_field('banner_heading')); ?>">
    </picture>
                </div>
            </div>
        </div>
    </div>
</section>

<!-- 2nd section -->
<?php get_template_part('templates-parts/pages/certificates');?>
<!-- end 2nd section -->


<!-- Icons Cards Start start -->
 <?php
 $counters = ['class' => 'pt-5 '];
 get_template_part('templates-parts/pages/counter-new',null,$counters)?>
<!-- Icons Cards Start end -->



<?php
$bni_section_title       = get_field('bni_section_title');
$bni_section_description = get_field('bni_section_description');
$bni_problem_heading     = get_field('bni_problem_heading');
$bni_solution_heading    = get_field('bni_solution_heading');
$bni_cta_text            = get_field('bni_cta_text');
$bni_cta_link            = get_field('bni_cta_link');
?>

<section class="section business-need-inventory">
    <div class="container">

        <div class="text-cont">
            <?php if ($bni_section_title): ?>
                <h2 class="section-title text-center">
                    <?php echo wp_kses_post($bni_section_title); ?>
                </h2>
            <?php endif; ?>

            <?php if ($bni_section_description): ?>
                <p class="section-content text-center">
                    <?php echo esc_html($bni_section_description); ?>
                </p>
            <?php endif; ?>
        </div>

        <div class="problem-solution-content-wrap">
            <div class="row g-3">

                <div class="col-lg-6">
                    <div class="row gy-3 flex-column">

                        <?php if ($bni_problem_heading): ?>
                            <div class="col-lg-12">
                                <div class="problem-solution-top-box text-center">
                                    <h2 class="problem-solution-top-title mb-0">
                                        <?php echo esc_html($bni_problem_heading); ?>
                                    </h2>
                                </div>
                            </div>
                        <?php endif; ?>

                        <?php if (have_rows('bni_items')): ?>
                            <div class="col-lg-12">
                                <div class="problem-solution-tabs nav flex-column" id="problem-solution-tab" role="tablist" aria-orientation="vertical">

                                    <?php $i = 1; ?>
                                    <?php while (have_rows('bni_items')): the_row(); 
                                        $item_number   = get_sub_field('bni_item_number');
                                        $problem_title = get_sub_field('bni_problem_title');
                                        $active_class  = ($i === 1) ? 'active' : '';
                                        $selected      = ($i === 1) ? 'true' : 'false';
                                    ?>
                                        <button class="problem-solution-tab <?php echo esc_attr($active_class); ?>"
                                            id="problem-tab-<?php echo esc_attr($i); ?>-tab"
                                            data-bs-toggle="tab"
                                            data-bs-target="#problem-tab-<?php echo esc_attr($i); ?>"
                                            type="button"
                                            role="tab"
                                            aria-controls="problem-tab-<?php echo esc_attr($i); ?>"
                                            aria-selected="<?php echo esc_attr($selected); ?>">

                                            <?php if ($item_number): ?>
                                                <span class="problem-solution-tab-number">
                                                    <?php echo esc_html($item_number); ?>
                                                </span>
                                            <?php endif; ?>

                                            <?php if ($problem_title): ?>
                                                <span class="problem-solution-tab-text">
                                                    <?php echo esc_html($problem_title); ?>
                                                </span>
                                            <?php endif; ?>
                                        </button>
                                    <?php $i++; endwhile; ?>

                                </div>
                            </div>
                        <?php endif; ?>

                    </div>
                </div>

                <div class="col-lg-6">
                    <div class="row gy-3 flex-column">

                        <?php if ($bni_solution_heading): ?>
                            <div class="col-lg-12">
                                <div class="problem-solution-top-box text-center">
                                    <h2 class="problem-solution-top-title mb-0">
                                        <?php echo esc_html($bni_solution_heading); ?>
                                    </h2>
                                </div>
                            </div>
                        <?php endif; ?>

                        <?php if (have_rows('bni_items')): ?>
                            <div class="col-lg-12">
                                <div class="problem-solution-panels tab-content" id="problem-solution-tab-content">

                                    <?php $i = 1; ?>
                                    <?php while (have_rows('bni_items')): the_row(); 
                                        $solution_text = get_sub_field('bni_solution_text');
                                        $active_class  = ($i === 1) ? 'show active' : '';
                                    ?>
                                        <div class="problem-solution-panel tab-pane fade <?php echo esc_attr($active_class); ?>"
                                            id="problem-tab-<?php echo esc_attr($i); ?>"
                                            role="tabpanel"
                                            aria-labelledby="problem-tab-<?php echo esc_attr($i); ?>-tab"
                                            tabindex="0">

                                            <?php if ($solution_text): ?>
                                                <p class="problem-solution-panel-text mb-0">
                                                    <?php echo esc_html($solution_text); ?>
                                                </p>
                                            <?php endif; ?>
                                        </div>
                                    <?php $i++; endwhile; ?>

                                </div>
                            </div>
                        <?php endif; ?>

                    </div>
                </div>

            </div>

            <?php if ($bni_cta_text && $bni_cta_link): ?>
                <div class="demo-btn-wrapper text-center mt-4 mt-lg-5">
                    <a href="<?php echo esc_url($bni_cta_link); ?>" class="primary animated-cta-btn">
                        <?php echo esc_html($bni_cta_text); ?>
                    </a>
                </div>
            <?php endif; ?>

        </div>
    </div>
</section>

<?php
$eic_cta_image        = get_field('eic_cta_image');
$eic_cta_image_alt    = get_field('eic_cta_image_alt');
$eic_cta_heading      = get_field('eic_cta_heading');
$eic_cta_description  = get_field('eic_cta_description');
$eic_cta_button_text  = get_field('eic_cta_button_text');
$eic_cta_button_link  = get_field('eic_cta_button_link');
?>

<section class="section dashboard-access-cta electronics-inventory-cta">
    <div class="container">
        <div class="box">
            <div class="row align-items-center">

                <div class="col-lg-5 col-xl-5">
                    <?php if ($eic_cta_image): ?>
                        <div class="img-cont">
                            <img 
                                src="<?php echo esc_url($eic_cta_image['url']); ?>"
                                alt="<?php echo esc_attr($eic_cta_image_alt ?: $eic_cta_image['alt']); ?>"
                                class="img-fluid"
                            >
                        </div>
                    <?php endif; ?>
                </div>

                <div class="col-xl-1 d-none d-xl-block">
                    <div class="content-divider"></div>
                </div>

                <div class="col-lg-7 col-xl-6">
                    <div class="text-cont">

                        <?php if ($eic_cta_heading): ?>
                            <h2>
                                <?php echo wp_kses_post($eic_cta_heading); ?>
                            </h2>
                        <?php endif; ?>

                        <?php if ($eic_cta_description): ?>
                            <p>
                                <?php echo esc_html($eic_cta_description); ?>
                            </p>
                        <?php endif; ?>

                        <?php if ($eic_cta_button_text && $eic_cta_button_link): ?>
                            <a 
                                href="<?php echo esc_url($eic_cta_button_link); ?>" 
                                class="accent-btn animated-cta-btn"
                            >
                                <?php echo esc_html($eic_cta_button_text); ?>
                            </a>
                        <?php endif; ?>

                    </div>
                </div>

            </div>
        </div>
    </div>
</section>

<?php
$eckf_section_title       = get_field('eckf_section_title');
$eckf_section_description = get_field('eckf_section_description');
$eckf_section_buttontext = get_field('eckf_section_buttontext');
$eckf_section_buttonlink = get_field('eckf_section_buttonlink');
?>

<section class="section electronic-componnets-key-features bg-white pt-lg-0">
    <div class="container">

        <div class="text-cont">
            <?php if ($eckf_section_title): ?>
                <h2 class="section-title text-center">
                    <?php echo wp_kses_post($eckf_section_title); ?>
                </h2>
            <?php endif; ?>

            <?php if ($eckf_section_description): ?>
                <p class="section-content text-center">
                    <?php echo esc_html($eckf_section_description); ?>
                </p>
            <?php endif; ?>
        </div>

        <?php if (have_rows('eckf_features')): ?>
            <div class="row gy-3 gy-lg-4">

                <?php while (have_rows('eckf_features')): the_row(); 
                    $eckf_feature_icon_svg = get_sub_field('eckf_feature_icon_svg');
                    $eckf_feature_title    = get_sub_field('eckf_feature_title');
                    $eckf_feature_text     = get_sub_field('eckf_feature_text');
                ?>
                    <div class="col-lg-4 col-md-6">
                        <div class="electronics-inventory-feature-card">

                            <?php if ($eckf_feature_icon_svg): ?>
                                <div class="icon-box">
                                    <?php echo $eckf_feature_icon_svg; ?>
                                </div>
                            <?php endif; ?>

                            <?php if ($eckf_feature_title): ?>
                                <h3 class="feature-title">
                                    <?php echo $eckf_feature_title; ?>
                                </h3>
                            <?php endif; ?>

                            <?php if ($eckf_feature_text): ?>
                                <p class="feature-text">
                                    <?php echo $eckf_feature_text; ?>
                                </p>
                            <?php endif; ?>

                        </div>
                    </div>
                <?php endwhile; ?>

            </div>
        <?php endif; ?>
        <div class="req-demo-btn-wrapper mt-3 mt-xl-5 text-center">
                <a href="<?php echo $eckf_section_buttonlink; ?>" class="primary animated-cta-btn"><?php echo $eckf_section_buttontext; ?></a>
            </div>                       
    </div>
</section>

<?php
$etsw_section_title       = get_field('etsw_section_title');
$etsw_section_description = get_field('etsw_section_description');
?>

<section class="section tracking-software-works">
    <div class="container">

        <div class="text-cont">
            <?php if ($etsw_section_title): ?>
                <h2 class="section-title text-center">
                    <?php echo wp_kses_post($etsw_section_title); ?>
                </h2>
            <?php endif; ?>

            <?php if ($etsw_section_description): ?>
                <p class="section-content text-center">
                    <?php echo $etsw_section_description; ?>
                </p>
            <?php endif; ?>
        </div>

        <?php if (have_rows('etsw_tracking_cards')): ?>
            <div class="tracking-software-cards-wrap">

                <!-- Desktop Cards -->
                <div class="tracking-software-cards">
                    <?php while (have_rows('etsw_tracking_cards')): the_row();

                        $etsw_card_number         = get_sub_field('etsw_card_number');
                        $etsw_card_title          = get_sub_field('etsw_card_title');
                        $etsw_card_text           = get_sub_field('etsw_card_text');
                        $etsw_card_image          = get_sub_field('etsw_card_image');
                        $etsw_card_image_alt      = get_sub_field('etsw_card_image_alt');
                        $etsw_card_default_active = get_sub_field('etsw_card_default_active');

                        $active_class = $etsw_card_default_active ? ' active-card default-active' : '';
                    ?>
                        <div class="tracking-software-card-item<?php echo esc_attr($active_class); ?>">
                            <div class="tracking-software-card">

                                <?php if ($etsw_card_number): ?>
                                    <div class="tracking-software-card-number">
                                        <?php echo esc_html($etsw_card_number); ?>
                                    </div>
                                <?php endif; ?>

                                <div class="tracking-software-card-content">

                                    <?php if ($etsw_card_title): ?>
                                        <h3 class="tracking-software-card-title">
                                            <?php echo esc_html($etsw_card_title); ?>
                                        </h3>
                                    <?php endif; ?>

                                    <?php if ($etsw_card_text): ?>
                                        <p class="tracking-software-card-text">
                                            <?php echo esc_html($etsw_card_text); ?>
                                        </p>
                                    <?php endif; ?>

                                    <?php if ($etsw_card_image): ?>
                                        <div class="tracking-software-card-image">
                                            <img 
                                                src="<?php echo esc_url($etsw_card_image['url']); ?>"
                                                loading="lazy"
                                                alt="<?php echo esc_attr($etsw_card_image_alt ?: $etsw_card_image['alt']); ?>"
                                            >
                                        </div>
                                    <?php endif; ?>

                                </div>
                            </div>
                        </div>
                    <?php endwhile; ?>
                </div>

                <!-- Mobile / Grid Cards -->
                <div class="tracking-software-cards-grid">
                    <div class="row g-3">
                        <?php while (have_rows('etsw_tracking_cards')): the_row();

                            $etsw_card_number    = get_sub_field('etsw_card_number');
                            $etsw_card_title     = get_sub_field('etsw_card_title');
                            $etsw_card_text      = get_sub_field('etsw_card_text');
                            $etsw_card_image     = get_sub_field('etsw_card_image');
                            $etsw_card_image_alt = get_sub_field('etsw_card_image_alt');
                        ?>
                            <div class="col-12 col-md-6">
                                <div class="tracking-software-card-item active-mobile">
                                    <div class="tracking-software-card">

                                        <?php if ($etsw_card_number): ?>
                                            <div class="tracking-software-card-number">
                                                <?php echo esc_html($etsw_card_number); ?>
                                            </div>
                                        <?php endif; ?>

                                        <div class="tracking-software-card-content">

                                            <?php if ($etsw_card_title): ?>
                                                <h3 class="tracking-software-card-title">
                                                    <?php echo esc_html($etsw_card_title); ?>
                                                </h3>
                                            <?php endif; ?>

                                            <?php if ($etsw_card_text): ?>
                                                <p class="tracking-software-card-text">
                                                    <?php echo esc_html($etsw_card_text); ?>
                                                </p>
                                            <?php endif; ?>

                                            <?php if ($etsw_card_image): ?>
                                                <div class="tracking-software-card-image">
                                                    <img 
                                                        src="<?php echo esc_url($etsw_card_image['url']); ?>"
                                                        loading="lazy"
                                                        alt="<?php echo esc_attr($etsw_card_image_alt ?: $etsw_card_image['alt']); ?>"
                                                    >
                                                </div>
                                            <?php endif; ?>

                                        </div>
                                    </div>
                                </div>
                            </div>
                        <?php endwhile; ?>
                    </div>
                </div>
<div class="req-demo-btn-wrapper mt-3 mt-xl-5 text-center" bis_skin_checked="1">
                <a href="https://warego.co/signup/" class="primary animated-cta-btn" style="translate: none; rotate: none; scale: none; transform: translate(0px, 0px);">Watch WareGo Live in Action</a>
            </div>
            </div>
        <?php endif; ?>

    </div>
</section>


<!-- Lighting Business Help Section start -->
<?php
$lght__bs_title   = get_field('lght__bs_title');
$lght__bs_content = get_field('lght__bs_content');
$lght__bs_slider  = get_field('lght__bs_slider');
$lght__bs_button  = get_field('lght__bs_button');
?>

<section class="section lighting-businesses-help pale-blue">
    <div class="container">
        <div class="text-cont">
            <div class="row">
                <div class="col-lg-7">
                    <?php if ($lght__bs_title): ?>
                        <h2 class="section-title"><?php echo $lght__bs_title; ?></h2>
                    <?php endif; ?>
                </div>
                <div class="col-lg-5">
                    <?php if ($lght__bs_content): ?>
                        <p class="section-content">
                            <?php echo $lght__bs_content; ?>
                        </p>
                    <?php endif; ?>
                </div>
            </div>
        </div>
    </div>

    <?php if ($lght__bs_slider): ?>
        <div class="container-fluid px-0">
            <div class="owl-carousel owl-theme lighting-businesses-help-slider">
                <?php foreach ($lght__bs_slider as $slide): 
                    $image   = $slide['lght__bs_slider_image'] ?? '';
                    $title   = $slide['lght__bs_slider_title'] ?? '';
                    $content = $slide['lght__bs_slider_content'] ?? '';
                ?>
                    <div class="item">
                        <?php if (!empty($image['url'])): ?>
                            <img 
                                src="<?php echo $image['url']; ?>"
                                alt="<?php echo !empty($image['alt']) ? $image['alt'] : wp_strip_all_tags($title); ?>"
                                class="img-fluid"
                                loading="lazy"
                            >
                        <?php endif; ?>

                        <div class="text-content">
                            <?php if ($title): ?>
                                <h3><?php echo $title; ?></h3>
                            <?php endif; ?>

                            <?php if ($content): ?>
                                <p><?php echo $content; ?></p>
                            <?php endif; ?>
                        </div>
                    </div>
                <?php endforeach; ?>
            </div>
        </div>
    <?php endif; ?>

    <?php if (!empty($lght__bs_button['url']) && !empty($lght__bs_button['title'])): ?>
        <div class="demo-btn-wrapper text-left container mt-5">
            <a href="<?php echo $lght__bs_button['url']; ?>" class="primary animated-cta-btn" target="<?php echo $lght__bs_button['target']; ?>">
            <?php echo $lght__bs_button['title']; ?>
            </a>
        </div>
    <?php endif; ?>
</section>
<!-- Lighting Business Help Section end -->

<?php
$eic_cta_image        = get_field('eic_cta_image1');
$eic_cta_image_alt    = get_field('eic_cta_image_alt1');
$eic_cta_heading      = get_field('eic_cta_heading1');
$eic_cta_description  = get_field('eic_cta_description1');
$eic_cta_button_text  = get_field('eic_cta_button_text1');
$eic_cta_button_link  = get_field('eic_cta_button_link1');
?>

<section class="section dashboard-access-cta electronics-inventory-cta">
    <div class="container">
        <div class="box">
            <div class="row align-items-center">

                <div class="col-lg-5 col-xl-5">
                    <?php if ($eic_cta_image): ?>
                        <div class="img-cont">
                            <img 
                                src="<?php echo esc_url($eic_cta_image['url']); ?>"
                                alt="<?php echo esc_attr($eic_cta_image_alt ?: $eic_cta_image['alt']); ?>"
                                class="img-fluid"
                            >
                        </div>
                    <?php endif; ?>
                </div>

                <div class="col-xl-1 d-none d-xl-block">
                    <div class="content-divider"></div>
                </div>

                <div class="col-lg-7 col-xl-6">
                    <div class="text-cont">

                        <?php if ($eic_cta_heading): ?>
                            <h2>
                                <?php echo wp_kses_post($eic_cta_heading); ?>
                            </h2>
                        <?php endif; ?>

                        <?php if ($eic_cta_description): ?>
                            <p>
                                <?php echo esc_html($eic_cta_description); ?>
                            </p>
                        <?php endif; ?>

                        <?php if ($eic_cta_button_text && $eic_cta_button_link): ?>
                            <a 
                                href="<?php echo esc_url($eic_cta_button_link); ?>" 
                                class="accent-btn animated-cta-btn"
                            >
                                <?php echo esc_html($eic_cta_button_text); ?>
                            </a>
                        <?php endif; ?>

                    </div>
                </div>

            </div>
        </div>
    </div>
</section>

<?php
$eeic_section_title           = get_field('eeic_section_title');
$eeic_section_description     = get_field('eeic_section_description');
$eeic_table_col_one_heading   = get_field('eeic_table_col_one_heading');
$eeic_table_col_two_heading   = get_field('eeic_table_col_two_heading');
$eeic_table_col_three_heading = get_field('eeic_table_col_three_heading');
$eeic_cta_button_text         = get_field('eeic_cta_button_text');
$eeic_cta_button_link         = get_field('eeic_cta_button_link');

function eeic_status_icon($status) {
    if ($status === 'yes') {
        return '<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
            <path fill-rule="evenodd" clip-rule="evenodd" d="M48 6.26087C48 4.6007 47.3405 3.00834 46.1666 1.83338C44.9917 0.659466 43.3993 0 41.7391 0C33.3704 0 14.6296 0 6.26087 0C4.6007 0 3.00834 0.659466 1.83338 1.83338C0.659466 3.00834 0 4.6007 0 6.26087V41.7391C0 43.3993 0.659466 44.9917 1.83338 46.1666C3.00834 47.3405 4.6007 48 6.26087 48H41.7391C43.3993 48 44.9917 47.3405 46.1666 46.1666C47.3405 44.9917 48 43.3993 48 41.7391V6.26087ZM10.8741 24.7596L18.1784 34.151C18.5457 34.6236 19.0988 34.9148 19.6967 34.9524C20.2936 34.9899 20.879 34.7687 21.3016 34.345L39.0407 16.6059C39.8557 15.792 39.8557 14.4689 39.0407 13.655C38.2268 12.84 36.9036 12.84 36.0897 13.655L20.0222 29.7224L14.1694 22.1969C13.4619 21.288 12.1492 21.1242 11.2404 21.8306C10.3315 22.5381 10.1676 23.8508 10.8741 24.7596Z" fill="#28CC19" />
        </svg>';
    }

    return '<svg width="50" height="46" viewBox="0 0 50 46" fill="none" xmlns="http://www.w3.org/2000/svg">
        <rect width="50" height="46" rx="10" fill="#FF0A0A" />
        <path d="M18.6841 11.1483L25.0013 17.4655L31.3185 11.1483C32.847 9.61982 35.3251 9.61982 36.8536 11.1483C38.3821 12.6769 38.3821 15.155 36.8536 16.6835L30.5364 23.0007L36.8536 29.3179C38.3821 30.8464 38.3821 33.3245 36.8536 34.853C35.3251 36.3815 32.847 36.3815 31.3185 34.853L25.0013 28.5358L18.6841 34.853C17.1556 36.3815 14.6774 36.3815 13.1489 34.853C11.6204 33.3245 11.6204 30.8464 13.1489 29.3179L19.4661 23.0007L13.1489 16.6835C11.6204 15.155 11.6204 12.6769 13.1489 11.1483C14.6774 9.61982 17.1556 9.61982 18.6841 11.1483Z" fill="white" />
    </svg>';
}
?>

<section class="section cloud-based-inventory-management explore-electronic-inventory bg-white">
    <div class="container">

        <div class="text-cont text-center">
            <?php if ($eeic_section_title): ?>
                <h2 class="section-title">
                    <?php echo wp_kses_post($eeic_section_title); ?>
                </h2>
            <?php endif; ?>

            <?php if ($eeic_section_description): ?>
                <p class="section-content">
                    <?php echo wp_kses_post($eeic_section_description); ?>
                </p>
            <?php endif; ?>
        </div>

        <?php if (have_rows('eeic_comparison_rows')): ?>
            <div class="table-responsive">
                <table class="table">
                    <thead>
                        <tr>
                            <th><?php echo esc_html($eeic_table_col_one_heading ?: 'Warego'); ?></th>
                            <th><?php echo wp_kses_post($eeic_table_col_two_heading ?: 'Warego Inventory <br>Management System'); ?></th>
                            <th><?php echo wp_kses_post($eeic_table_col_three_heading ?: 'Basic Excel <br> Spreadsheets'); ?></th>
                        </tr>
                    </thead>

                    <tbody>
                        <tr>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                        </tr>

                        <?php while (have_rows('eeic_comparison_rows')): the_row();
                            $eeic_feature_name   = get_sub_field('eeic_feature_name');
                            $eeic_warego_status  = get_sub_field('eeic_warego_status');
                            $eeic_excel_status   = get_sub_field('eeic_excel_status');
                        ?>
                            <tr>
                                <td>
                                    <?php echo $eeic_feature_name; ?>
                                </td>

                                <td>
                                    <?php echo eeic_status_icon($eeic_warego_status); ?>
                                </td>

                                <td>
                                    <?php echo eeic_status_icon($eeic_excel_status); ?>
                                </td>
                            </tr>
                        <?php endwhile; ?>
                    </tbody>
                </table>
            </div>
        <?php endif; ?>

        <?php if ($eeic_cta_button_text && $eeic_cta_button_link): ?>
            <div class="req-demo-btn-wrapper mt-3 mt-xl-5 text-center">
                <a href="<?php echo esc_url($eeic_cta_button_link); ?>" class="primary animated-cta-btn">
                    <?php echo $eeic_cta_button_text; ?>
                </a>
            </div>
        <?php endif; ?>

    </div>
</section>

<!-- pricing section start -->
<?php 
$pricing = [
    'class' => 'supply-chain-pricing-cards pt-5',
    'category' => 'home',
    'headingcon' => 'h2',
];
get_template_part('templates-parts/pages/pricing',null,$pricing)?>
<!-- pricing section end -->

<?php
$acr_section_title = get_field('acr_section_title');
?>

<section class="section amazing-clients-review bg-white">
    <div class="container">

        <div class="text-cont">
            <?php if ($acr_section_title): ?>
                <h2 class="section-title">
                    <?php echo $acr_section_title; ?>
                </h2>
            <?php endif; ?>
        </div>

        <?php if (have_rows('acr_client_reviews')): ?>
            <div class="owl-carousel owl-theme amazing-clients-review-slider">

                <?php while (have_rows('acr_client_reviews')): the_row();

                    $acr_review_bg_image            = get_sub_field('acr_review_bg_image');
                    $acr_review_bg_image_alt        = get_sub_field('acr_review_bg_image_alt');
                    $acr_review_client_image        = get_sub_field('acr_review_client_image');
                    $acr_review_client_image_alt    = get_sub_field('acr_review_client_image_alt');
                    $acr_review_rating              = get_sub_field('acr_review_rating');
                    $acr_review_heading             = get_sub_field('acr_review_heading');
                    $acr_review_text                = get_sub_field('acr_review_text');
                    $acr_review_client_name         = get_sub_field('acr_review_client_name');
                    $acr_review_client_designation  = get_sub_field('acr_review_client_designation');

                    $acr_review_rating = $acr_review_rating ? intval($acr_review_rating) : 5;
                ?>

                    <div class="item">
                        <div class="row gy-4">

                            <div class="col-lg-6">
                                <div class="img-content">

                                    <?php if ($acr_review_bg_image): ?>
                                        <img 
                                            src="<?php echo esc_url($acr_review_bg_image['url']); ?>"
                                            alt="<?php echo esc_attr($acr_review_bg_image_alt ?: $acr_review_bg_image['alt']); ?>"
                                            class="img-fluid"
                                            loading="lazy"
                                        >
                                    <?php endif; ?>

                                    <?php if ($acr_review_client_image): ?>
                                        <img 
                                            src="<?php echo esc_url($acr_review_client_image['url']); ?>"
                                            alt="<?php echo esc_attr($acr_review_client_image_alt ?: $acr_review_client_image['alt']); ?>"
                                            class="img-fluid front-view"
                                            loading="lazy"
                                        >
                                    <?php endif; ?>

                                </div>
                            </div>

                            <div class="col-lg-6">
                                <div class="text-content">

                                    <?php if ($acr_review_rating): ?>
                                        <div class="rating">
                                            <?php for ($i = 1; $i <= $acr_review_rating; $i++): ?>
                                                <svg width="39" height="40" viewBox="0 0 39 40" fill="none" xmlns="http://www.w3.org/2000/svg">
                                                    <path
                                                        d="M18.1268 0.714545C18.4109 -0.237468 19.7591 -0.237471 20.0433 0.714542L23.8198 13.3682C23.9463 13.7918 24.3359 14.0822 24.778 14.0822L37.1683 14.0822C38.1164 14.0822 38.5323 15.2783 37.7887 15.8665L27.6226 23.9075C27.3015 24.1615 27.1677 24.5855 27.2848 24.9778L31.1328 37.8708C31.4123 38.8073 30.3207 39.5474 29.5542 38.9412L19.7054 31.1511C19.3418 30.8635 18.8283 30.8635 18.4647 31.1511L8.61589 38.9412C7.84939 39.5474 6.7578 38.8073 7.03729 37.8708L10.8853 24.9778C11.0024 24.5855 10.8685 24.1615 10.5474 23.9075L0.381366 15.8665C-0.362204 15.2783 0.0536809 14.0822 1.00173 14.0822L13.392 14.0822C13.8342 14.0822 14.2238 13.7918 14.3503 13.3682L18.1268 0.714545Z"
                                                        fill="#FBD95E" />
                                                </svg>
                                            <?php endfor; ?>
                                        </div>
                                    <?php endif; ?>

                                    <?php if ($acr_review_heading): ?>
                                        <h3>
                                            <?php echo $acr_review_heading; ?>
                                        </h3>
                                    <?php endif; ?>

                                    <div class="box">

                                        <?php if ($acr_review_text): ?>
                                            <p>
                                                <?php echo $acr_review_text; ?>
                                            </p>
                                        <?php endif; ?>

                                        <?php if ($acr_review_client_name || $acr_review_client_designation): ?>
                                            <ul>
                                                <?php if ($acr_review_client_name): ?>
                                                    <li>
                                                        <?php echo $acr_review_client_name; ?> <span>|</span>
                                                    </li>
                                                <?php endif; ?>

                                                <?php if ($acr_review_client_designation): ?>
                                                    <li>
                                                        <?php echo $acr_review_client_designation; ?>
                                                    </li>
                                                <?php endif; ?>
                                            </ul>
                                        <?php endif; ?>

                                    </div>

                                </div>
                            </div>

                        </div>
                    </div>

                <?php endwhile; ?>

            </div>
        <?php endif; ?>

    </div>
</section>

<?php
$owc_cta_image       = get_field('owc_cta_image');
$owc_cta_image_alt   = get_field('owc_cta_image_alt');
$owc_cta_heading     = get_field('owc_cta_heading');
$owc_cta_description = get_field('owc_cta_description');
$owc_cta_button_text = get_field('owc_cta_button_text');
$owc_cta_button_link = get_field('owc_cta_button_link');
?>

<section class="section dashboard-access-cta optimize-warehouse-cta">
    <div class="container">
        <div class="box ps-xl-5">
            <div class="row align-items-center">

                <div class="col-lg-5">
                    <?php if ($owc_cta_image): ?>
                        <div class="img-cont">
                            <img 
                                src="<?php echo esc_url($owc_cta_image['url']); ?>"
                                alt="<?php echo esc_attr($owc_cta_image_alt ?: $owc_cta_image['alt']); ?>"
                                class="img-fluid rounded-0"
                            >
                        </div>
                    <?php endif; ?>
                </div>

                <div class="col-lg-7">
                    <div class="text-cont ps-xl-5">

                        <?php if ($owc_cta_heading): ?>
                            <h2>
                                <?php echo $owc_cta_heading; ?>
                            </h2>
                        <?php endif; ?>

                        <?php if ($owc_cta_description): ?>
                            <p>
                                <?php echo $owc_cta_description; ?>
                            </p>
                        <?php endif; ?>

                        <?php if ($owc_cta_button_text && $owc_cta_button_link): ?>
                            <a 
                                href="<?php echo esc_url($owc_cta_button_link); ?>" 
                                class="accent-btn animated-cta-btn"
                            >
                                <?php echo $owc_cta_button_text; ?>
                            </a>
                        <?php endif; ?>

                        <?php if (have_rows('owc_contact_items')): ?>
                            <div class="call-email-livechat">
                                <div class="row justify-content-center justify-content-lg-start">

                                    <?php while (have_rows('owc_contact_items')): the_row();

                                        $owc_contact_icon_svg   = get_sub_field('owc_contact_icon_svg');
                                        $owc_contact_label      = get_sub_field('owc_contact_label');
                                        $owc_contact_value      = get_sub_field('owc_contact_value');
                                        $owc_contact_link       =  get_sub_field('owc_contact_link');
                                        $owc_contact_extra_class = get_sub_field('owc_contact_extra_class');
                                        $owc_contact_no_divider = get_sub_field('owc_contact_no_divider');

                                        $wrap_class = $owc_contact_no_divider ? ' no-divider' : '';
                                    ?>

                                        <div class="col-6 col-md-4 col-lg-4 col-xl-4 col-xxl-4">
                                            <div class="call-email-livechat-item-wrap<?php echo esc_attr($wrap_class); ?>">

                                                <a href="<?php echo esc_attr(strpos($owc_contact_extra_class, 'toggle-btn-tawk') !== false ? 'javascript:void(Tawk_API.toggle())' : ($owc_contact_link ? esc_url($owc_contact_link) : 'javascript:void(0);')); ?>" 
    class="item <?php echo esc_attr($owc_contact_extra_class); ?>">
                                                    <div class="item-top">

                                                        <?php if ($owc_contact_icon_svg): ?>
                                                            <?php echo $owc_contact_icon_svg; ?>
                                                        <?php endif; ?>

                                                        <?php if ($owc_contact_label): ?>
                                                            <span>
                                                                <?php echo $owc_contact_label; ?>
                                                            </span>
                                                        <?php endif; ?>

                                                    </div>

                                                    <?php if ($owc_contact_value): ?>
                                                        <div class="item-bottom">
                                                            <?php echo $owc_contact_value; ?>
                                                        </div>
                                                    <?php endif; ?>
                                                </a>

                                            </div>
                                        </div>

                                    <?php endwhile; ?>

                                </div>
                            </div>
                        <?php endif; ?>

                    </div>
                </div>

            </div>
        </div>
    </div>
</section>

<!-- Faqs Start -->
<?php
    $args = [
        'category'  => 'electronics-component-software',
        'heading'   => 'Frequently Asked <span>Questions</span>',
		'class'     => 'pt-0 bg-white',
    ];
    get_template_part('templates-parts/pages/faqs-new', null, $args);
?>
<!-- Faqs End -->



<?php
    get_footer('new');
?>
<script>
        $('.about-our-product-slider').owlCarousel({
            loop: false,
            margin: 10,
            nav: false,
            dots: false,
            responsive: {
                0: {
                    items: 1,
                    autoplay: true
                },
                600: {
                    loop: true,
                    items: 3,
                    autoplay: true
                },
                1000: {
                    items: 5
                }
            }
        });

        $('.portfolio-slider').owlCarousel({
            loop: false,
            margin: 40,
            nav: false,
            dots: false,
            dotsData: true,
            responsive: {
                0: {
                    items: 1
                },
                600: {
                    items: 2,
                    margin: 20
                },
                1000: {
                    items: 2
                }
            }
        });
        var more_industries_slider = $('.industry-specific-slider');

        $('.slide-next-button').click(function () {
            more_industries_slider.trigger('next.owl.carousel');
        });

        $('.slide-prev-button').click(function () {
            more_industries_slider.trigger('prev.owl.carousel');
        });
        $('.industry-specific-slider').owlCarousel({
            loop: true,
            autoplay: false,
            margin: 20,
            nav: false,
            stagePadding: 50,
            dots: false,
            responsive: {
                0: {
                    items: 1,
                    stagePadding: 1,
                },
                480: {
                    items: 1
                },
                600: {
                    items: 2

                },
                1400: {
                    items: 2
                },
            }
        });
        $('.why-choose-distribution-slider').owlCarousel({
            loop: true,
            margin: 20,
            nav: false,
            dots: false,
            autoplay: true,
            autoplayTimeout: 4000,
            autoplayHoverPause: true,
            smartSpeed: 1200,
            responsive: {
                0: {
                    items: 1
                },
                600: {
                    items: 1.5
                },
                1000: {
                    items: 1.9
                }
            }
        })
    </script>

    <script>
        $('.lighting-businesses-help-slider').owlCarousel({
            loop: true,
            margin: 20,
            nav: false,
            autoplay: true,
            dots: false,
            autoplayHoverPause: true,
            responsive: {
                0: {
                    items: 1
                },
                600: {
                    items: 2.5
                },
                1000: {
                    items: 3.5
                }
            }
        });
        $('.amazing-clients-review-slider').owlCarousel({
            loop: true,
            margin: 10,
            nav: true,
            navText: [
                `<svg width="15" height="13" viewBox="0 0 15 13" fill="none" xmlns="http://www.w3.org/2000/svg">
                <path d="M14.0938 6.09375C14.0938 6.65625 13.6562 7.09375 13.125 7.09375H3.53125L6.8125 10.4062C7.21875 10.7812 7.21875 11.4375 6.8125 11.8125C6.625 12 6.375 12.0938 6.125 12.0938C5.84375 12.0938 5.59375 12 5.40625 11.8125L0.40625 6.8125C0 6.4375 0 5.78125 0.40625 5.40625L5.40625 0.40625C5.78125 0 6.4375 0 6.8125 0.40625C7.21875 0.78125 7.21875 1.4375 6.8125 1.8125L3.53125 5.09375H13.125C13.6562 5.09375 14.0938 5.5625 14.0938 6.09375Z" fill="white"/>
                </svg>
                `,
                `<svg width="15" height="13" viewBox="0 0 15 13" fill="none" xmlns="http://www.w3.org/2000/svg">
                <path d="M13.6875 6.8125L8.6875 11.8125C8.5 12 8.25 12.0938 8 12.0938C7.71875 12.0938 7.46875 12 7.28125 11.8125C6.875 11.4375 6.875 10.7812 7.28125 10.4062L10.5625 7.09375H1C0.4375 7.09375 0 6.65625 0 6.09375C0 5.5625 0.4375 5.09375 1 5.09375H10.5625L7.28125 1.8125C6.875 1.4375 6.875 0.78125 7.28125 0.40625C7.65625 0 8.3125 0 8.6875 0.40625L13.6875 5.40625C14.0938 5.78125 14.0938 6.4375 13.6875 6.8125Z" fill="white"/>
                </svg>
                `
            ],
            dots: false,
            responsive: {
                0: {
                    items: 1
                },
                600: {
                    items: 1
                },
                1000: {
                    items: 1
                }
            }
        });
		$('.lighting-businesses-help-slider').owlCarousel({
        loop:true,
        margin:20,
        nav:false,
        autoplay: true,
        dots: false,
        autoplayHoverPause:true,
        responsive:{
            0:{
                items:1
            },
            600:{
                items:2.5
            },
            1000:{
                items:3.5
            }
        }
    });
    </script>

    <script>
        $(function () {
            var $section = $('.tracking-software-works');
            var $cards = $section.find('.tracking-software-cards .tracking-software-card-item');
            var $defaultCard = $section.find('.tracking-software-cards .tracking-software-card-item.default-active');

            $cards.hover(function () {
                $cards.removeClass('active-card');
                $(this).addClass('active-card');
            });

            $section.find('.tracking-software-cards').mouseleave(function () {
                $cards.removeClass('active-card');
                $defaultCard.addClass('active-card');
            });
        });
    </script>