<div class="service-details-wrapper">
    <div class="row g-5">
        <div class="col-12 col-lg-8">
            <div class="service-details-items">
                <div class="service-image">
                    <img src="imgupload/<?= $xidmetler["resim"] ?>" alt="<?= $xidmetler["adi"] ?>">
                </div>
                <?php
                $cek = $db->query("SELECT * FROM xidmetler WHERE veziyyeti='0' AND lan='{$dilsec["id"]}' ORDER BY sira ASC")->fetchAll(PDO::FETCH_ASSOC);
                foreach ($cek as $goster) {
                    ?>
                <?php } ?>
                <div class="details-content">
                    <h3 class="splt-txt wow" data-splitting><?= $xidmetler["adi"] ?></h3>
                    <p class="mt-3">
                        <?= $xidmetler["aciklama"] ?>
                    </p>



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

        /********************************/
        sidae bar yeni sagdan xidmetler acilan kod
        /*******************************/
        <div class="col-12 col-lg-4">
            <div class="main-sidebar">
                <?php
                $sidebar_cek = $db->query("SELECT * FROM xidmetler WHERE veziyyeti='0' AND lan='{$dilsec["id"]}' ORDER BY sira ASC LIMIT 8")->fetchAll(PDO::FETCH_ASSOC);
                        if ($sidebar_cek) { // Eğer sidebar'da gösterilecek haber varsa
                        ?>
                        <div class="single-sidebar-widget">
                            <?php foreach ($sidebar_cek as $sidebar_goster) { ?>
                                <div class="widget-categories">
                                    <ul>
                                        <li><i class="fas fa-chevron-circle-right me-3"></i><a href="<?= $sidebar_goster["seo"] ?>"><?= $sidebar_goster["adi"] ?></a></li>

                                    </ul>
                                </div>
                            <?php } ?>
                        </div>
                    <?php } ?>

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