<?php
if ($data['style'] === 'style_1'){
    foreach ($post as $service) {?>
                <div class="col-xl-3 col-lg-4 col-md-6 col-sm-8" data-vvveb-disabled-noback>
                    <div class="services-item-two">
                        <div class="services-thumb-two">
                            <img src="<?= image($service['image']) ?>" alt="<?=$service['title']?>">

                        </div>
                        <div class="services-content-two">

                            <h2 class="title"><a href="<?=DOMAIN?>/<?=$service['sef']?>"><?=$service['title']?></a></h2>
                        </div>
                    </div>
                </div>
<?php
    }
} elseif ($data['style'] === 'style_2'){
    foreach ($post as $service) {
        ?>
        <div class="col-xl-3 col-lg-4 col-md-6 col-sm-10" data-vvveb-disabled-noback>
            <div class="services-item-three">
                <div class="services-thumb-three">
                    <a href="<?=$service['sef']?>"><img src="<?= image($service['image']) ?>" alt="<?=$service['title']?>"></a>
                </div>
                <div class="services-content-three">
                    <h4 class="title"><a href="<?=$service['sef']?>"><?=$service['title']?></a></h4>
                    <p><?=$service['description']?></p>
                </div>
            </div>
        </div>

        <?php
    }
}elseif ($data['style'] === 'style_3'){
foreach ($post as $service) {
?>
    <div class="col-lg-4" data-vvveb-disabled-noback>
        <div class="services-item">
            <div class="services-content">
                <div class="content-top">
                    <h2 class="title"><?=$service['title']?></h2>
                </div>
                <div class="services-thumb">
                    <img src="<?=image($service['image'])?>" alt="<?=$service['title']?>">
                    <a href="<?=$service['sef']?>" class="btn transparent-btn"><?=$service['title']?></a>
                </div>
                <p><?=$service['description']?></p>
            </div>
        </div>
    </div>
    <?php
}
}
?>