<?php echo !defined("GUVENLIK") ? die("Vaoww! Bu ne cesaret?") : null;?><?php
$countersettings = $db->prepare("select * from sayac_ayar where id='1'");
$countersettings->execute();
$countsett = $countersettings->fetch(PDO::FETCH_ASSOC);
?>
<?php
$counter_counts = $db->prepare("select * from sayac where durum='1' and dil='$_SESSION[dil]' order by sira asc");
$counter_counts->execute();
$sayi = 2;
?>
<style>
    .counter-home-main-div{width:<?php if($countsett[width]==1){?> 90%; <?php }else {?> 100% <?php }?> ; height: auto; overflow: hidden; background-color: #<?php echo $countsett[back_color] ?>; padding: <?php echo $countsett[padding] ?>px 0 <?php echo $countsett[padding] ?>px 0; }
    .counter-box{border:1px solid #<?php echo $countsett[box_border_color] ?>; background-color: #<?php echo $countsett[box_bg_color] ?>; }
</style>
<?php if($counter_counts->rowCount() > 0) { ?>

<div class="counter-style-two pt-100 pb-70 counter-home-main-div">
    <div class="container">
        <div class="row">
        <?php foreach ($counter_counts as $count1){ ?>
            <div class="col-md-3 col-5 counter-box" style="color:#<?php echo $countsett[box_text_color] ?>;" data-appear-animation="fadeInUp" data-appear-animation-delay="<?=$sayi++;?>00" >
                <div class="counter-text">
                    <?php if ($countsett[icon] == 1) {?>
                        <i class="fa <?php echo $count1[icon] ?>"></i><br>
                    <?php } ?>
                    <span class="counter" style="color:#<?php echo $countsett[box_text_color] ?>;"><?php echo $count1[count] ?></span>
                    <p><?php echo $count1[baslik] ?></p>
                </div>
            </div>
        <?php }?>
        </div>
    </div>
</div>

<?php } ?>