<?php
$proceduresList = [];
if (isset($singelWidgetData->widget_content)) {
    $proceduresList = $singelWidgetData->getTranslation("widget_content");
}
?>

<!-- ===============  How-it-works start=============== -->
<?php if($proceduresList): ?>
    <div class="how-work-section pt-120">
        <img alt="image" src="<?php echo e(asset('frontend/images/bg/section-bg.png')); ?>" class="section-bg-top">
        <div class="container">
            <?php
                $count = 0;
                $total = count($proceduresList['procedures']);
            ?>
            <?php $__currentLoopData = $proceduresList['procedures']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $procedureItem): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <?php if($count == 0 || $count % 2 == 0): ?>
                    <div class="row g-4  <?php echo e($total!==$key? "mb-60" :""); ?> ">
                        <div class="col-xl-6 col-lg-6">
                            <div class="how-work-content wow fadeInUp" data-wow-duration="1.5s"
                                data-wow-delay=".<?php echo e($count + 1); ?>s">
                                <span><?php echo e($count + 1); ?>.</span>

                                <?php if(isset($procedureItem['name'])): ?>
                                    <h3><?php echo e($procedureItem['name']); ?></h3>
                                <?php endif; ?>

                                <?php if(isset($procedureItem['description'])): ?>
                                    <p class="para">
                                        <?php echo e($procedureItem['description']); ?>

                                    </p>
                                <?php endif; ?>
                                <?php if(isset($procedureItem['button_text']) && isset($procedureItem['button_url'])): ?>
                                    <a href="<?php echo e($procedureItem['button_url']); ?>"
                                        class="eg-btn btn--primary btn--md"><?php echo e($procedureItem['button_text']); ?></a>
                                <?php endif; ?>
                            </div>
                        </div>
                        <div class="col-xl-6 col-lg-6 d-flex justify-content-lg-end justify-content-center">
                            <div class="how-work-img wow fadeInDown" data-wow-duration="1.5s"
                                data-wow-delay=".<?php echo e($count + 1); ?>s">
                                <?php if(isset($procedureItem['img'])): ?>
                                    <img alt="image" src="<?php echo e(asset('uploads/procedures/' . $procedureItem['img'])); ?>"
                                        class="work-img">
                                <?php else: ?>
                                    <img alt="image" src="<?php echo e(asset('frontend/images/bg/how-work1.png')); ?>"
                                        class="work-img">
                                <?php endif; ?>
                            </div>
                        </div>
                    </div>
                <?php else: ?>
                    <div class="row g-4 <?php echo e($total!==$key? "mb-60" :""); ?> ">
                        <div
                            class="col-xl-6 col-lg-6 d-flex justify-content-lg-start justify-content-center order-lg-1 order-2">
                            <div class="how-work-img wow fadeInDown" data-wow-duration="1.5s"
                                data-wow-delay=".<?php echo e($count + 1); ?>s">
                                <?php if(isset($procedureItem['img'])): ?>
                                    <img alt="image" src="<?php echo e(asset('uploads/procedures/' . $procedureItem['img'])); ?>"
                                        class="work-img">
                                <?php else: ?>
                                    <img alt="image" src="<?php echo e(asset('frontend/images/bg/how-work1.png')); ?>"
                                        class="work-img">
                                <?php endif; ?>
                            </div>
                        </div>
                        <div class="col-xl-6 col-lg-6 order-lg-2 order-1">
                            <div class="how-work-content wow fadeInUp" data-wow-duration="1.5s"
                                data-wow-delay=".<?php echo e($count + 1); ?>s">
                                <span><?php echo e($count + 1); ?>.</span>
                                <?php if(isset($procedureItem['name'])): ?>
                                    <h3><?php echo e($procedureItem['name']); ?></h3>
                                <?php endif; ?>
                                <?php if(isset($procedureItem['description'])): ?>
                                    <p class="para">
                                        <?php echo e($procedureItem['description']); ?>

                                    </p>
                                <?php endif; ?>
                                <?php if(isset($procedureItem['button_text']) && isset($procedureItem['button_url'])): ?>
                                    <a href="<?php echo e($procedureItem['button_url']); ?>"
                                        class="eg-btn btn--primary btn--md"><?php echo e($procedureItem['button_text']); ?></a>
                                <?php endif; ?>
                            </div>
                        </div>
                    </div>
                <?php endif; ?>
                <?php
                    $count++;
                ?>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

        </div>
    </div>
<?php endif; ?>
<!-- ===============  How-it-works end=============== -->
<?php /**PATH C:\ServBay\www\bidout-update\resources\views/frontend/template-1/procedures.blade.php ENDPATH**/ ?>