<?php
/*
Template Name: Return Management
*/
get_header('new');
?>
<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']; ?>
                      
                        </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="390" class="img-fluid no-lazy" alt="<?php echo strip_tags(get_field('banner_heading')); ?>">
    </picture>
					
					
                </div>
            </div>
        </div>
    </div>
</section>

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


 <?php
 $counters = ['class' => 'pt-5 '];
 get_template_part('templates-parts/pages/counter-new',null,$counters)?>
<section class="section kitting-software-what-it-does bg-white pt-lg-5">
    <div class="container">
        <div class="row">
            <div class="col-lg-6">
                <div class="text-cont">
                    <h2 class="section-innertitle mb-4"><?php echo get_field('features_understanding_section_heading'); ?></h2>
                    <p class="section-content">
                       <?php echo get_field('features_understanding_section_text'); ?>
                    </p>
                   <div class="text-center text-lg-start mt-4">
                        <a href="<?php echo get_field('features_understanding_section_button_link'); ?>" class="primary animated-cta-btn"><?php echo get_field('features_understanding_section_button_text'); ?></a>
                    </div>
                </div>
            </div>
            <div class="col-lg-6">
                <div class="img-cont">
                    <img src="<?php echo get_field('features_understanding_section_image'); ?>" alt="industry-management" class="img-fluid" loading="lazy">
                </div>
            </div>
        </div>
    </div>
</section>
<?php $timelineSec = ['class' => 'light-grey']; 
get_template_part('templates-parts/pages/inventory-process-timeline',null,$timelineSec)?>
<?php get_template_part('templates-parts/pages/integration-post-tabs')?>
<section class="section return-management-features">
    <div class="container">
        <div class="text-center text-cont">
            <h2 class="section-title"><?php echo get_field('system_heading'); ?></h2>
            <p class="section-content"><?php echo get_field('system_description'); ?></p>
        </div>
        <div class="row gy-4">
            <?php $highlights = get_field('system_highlights'); ?>
            <?php if ($highlights && is_array($highlights)) : ?>
                <?php foreach ($highlights as $highlight) : ?>
                    <div class="col-lg-4 col-md-6">
                        <div class="card">
                            <div class="svg-content">
                                <?php echo $highlight['icon']; ?>
                            </div>
                            <div class="text-content">
                                <h3><?php echo $highlight['heading']; ?></h3>
                                <p><?php echo $highlight['description']; ?></p>
                            </div>
                        </div>
                    </div>
                <?php endforeach; ?>
            <?php endif; ?>
        </div>
        <?php $cta = get_field('system_cta'); ?>
        <?php if (!is_null($cta)) : ?>
            <div class="text-center mt-5">
                <a href="<?php echo esc_url($cta['url']); ?>" class="primary animated-cta-btn"><?php echo esc_html($cta['title']); ?></a>
            </div>
        <?php endif; ?>
    </div>
</section>
<?php 
$benefits =[
    'class' => 'benefits-omnichanel-industry',
    'row_class' => 'g-3',
    'col_class' => 'col-xl-9 col-lg-8',
    'inner_col_class' => 'col-md-6 col-xl-4',
    'col_stake' => true, 
];
get_template_part('templates-parts/pages/supply-chain-benefits',null,$benefits)?>
<?php 
$pricing = [
    'class' => 'supply-chain-pricing-cards pt-5',
    'category' => 'home',
    'headingcon' => 'h2',
];
get_template_part('templates-parts/pages/pricing',null,$pricing)?>
<?php 
$industry = [
    'class' => 'pale-blue',
    'category' => 'return-management',
];
get_template_part('templates-parts/pages/industry-solutions',null,$industry)?>
<section class="section say-about-warego client-say-about-warego">
    <div class="container">
        <div class="text-center text-cont">
            <h2 class="section-title mb-5"><?php echo get_field('reviews_heading'); ?></h2>
            <p class="section-content"><?php echo get_field('reviews_description'); ?></p>
        </div>
        <?php if( have_rows('reviews') ): ?>
        <div class="row gy-4">
        <?php while( have_rows('reviews') ): the_row();?>
            <div class="col-lg-6 right-sight">
                <div class="card">
                    <p><?php echo get_sub_field('quote');?></p>
                    <ul>
                        <li>
                            <img src="<?php echo get_sub_field('image');?>" alt="Sarah Johnson" class="img-fluid">
                        </li>
                        <li>
                            <h3><?php echo get_sub_field('name');?></h3>
                            <p><?php echo get_sub_field('position');?></p>
                        </li>
                    </ul>
                </div>
            </div>
            <?php endwhile; ?>
        </div>
        <?php endif; ?>
    </div>
</section>
<section class="section why-leading">
    <div class="container">
        <div class="text-cont text-center">
            <h2 class="section-title mb-5"><?php echo get_field('why_warego_wms_heading'); ?></h2>
            <p class="section-content"><?php echo get_field('why_warego_wms_description'); ?></p>
        </div>
        <?php if( have_rows('why_warego_wms_features') ): ?>
        <ul>
            <?php while( have_rows('why_warego_wms_features') ): the_row(); ?>
                <li>
                    <div class="left">
                        <?php $image = get_sub_field('image'); ?>
                        <?php if ($image) : ?>
                            <img src="<?php echo esc_url($image); ?>" alt="<?php echo get_sub_field('heading'); ?>" class="img-fluid">
                        <?php endif; ?>
                    </div>
                    <div class="right">
                        <h3><?php echo get_sub_field('heading'); ?></h3>
                        <p><?php echo get_sub_field('description'); ?></p>
                    </div>
                </li>
            <?php endwhile; ?>
        </ul>
        <?php else: ?>
        <p>No features available.</p>
        <?php endif; ?>
        <div class="text-center mt-5">
            <a href="<?php echo esc_url(get_field('why_warego_wms_cta_link')); ?>" class="primary animated-cta-btn" <?php echo is_modal_link(get_field('why_warego_wms_cta_link')); ?>><?php echo get_field('why_warego_wms_cta_label'); ?></a>
        </div>
    </div>
</section>
<?php 
$portfolio = ['class' => 'bg-white pt-lg-0'];
get_template_part('templates-parts/pages/case-studies',null,$portfolio);?>
<section class="section bg-white pt-0">
    <div class="container">
        <div class="complete-comparison-cta right-fit-business-cta">
            <div class="row align-items-center">
                <div class="col-md-3">
                    <img src="<?php echo get_field('affiliate_cta_image'); ?>" alt="<?php echo get_field('affiliate_cta_heading'); ?>" class="img-fluid">
                </div>
                <div class="col-md-6">
                    <h3 class="mb-3"><?php echo get_field('affiliate_cta_heading'); ?></h3>
                    <p><?php echo get_field('affiliate_cta_text'); ?></p>
                </div>
                <div class="col-md-3">
                    <?php $aff_cta = get_field('affiliate_cta_button');?>
                    <a href="<?php echo esc_url($aff_cta['url']); ?>" class="border-gradient-btn animated-btn" <?php echo is_modal_link(get_field('cta_button_links')); ?>><?php echo $aff_cta['title']; ?></a>
                </div>
            </div>
        </div>
    </div>
</section>
<?php
    $args = [
        'category'  => 'return-management',
        'heading'   => 'Frequently Asked <span>Questions</span>',
		'class'     => 'bg-white',
    ];
    get_template_part('templates-parts/pages/faqs-new', null, $args);
?>

<?php
    get_footer('new');
?>
<style>
.purple-dot-lists{padding:0;display:flex;flex-wrap:wrap;gap:10px 0}.purple-dot-lists li{position:relative;display:flex;gap:10px;width:100%}.purple-dot-lists li:before{content:'';width:100%;max-width:14px;height:14px;border-radius:50%;background-color:#5558a6;margin-top:5px}.purple-dot-lists.first-lists li{max-width:26.5%}.purple-dot-lists.second-lists li{max-width:30%}@media(max-width:1199px){.purple-dot-lists.first-lists li{max-width:32%}.purple-dot-lists.second-lists li{max-width:30%}}@media(max-width:767px){.purple-dot-lists li{width:100%;max-width:100%}.purple-dot-lists li:before{max-width:12px;height:12px}.purple-dot-lists.first-lists li,.purple-dot-lists.second-lists li{max-width:100%}}
</style>