<?php echo !defined("GUVENLIK") ? die("Vaoww! Bu ne cesaret?") : null;?>
<?php
$page_header_setting = $db->prepare("select * from page_header where page_id='pricing' order by id");
$page_header_setting->execute();
$pagehead = $page_header_setting->fetch(PDO::FETCH_ASSOC);

?>
<?php
$pricingayar = $db->prepare("select * from pricing_ayar where id=:id");
$pricingayar->execute(array(
    'id' => '1'
));
$pric = $pricingayar->fetch(PDO::FETCH_ASSOC);
?>
<?php
$num = 1;
$pricing_liste = $db->prepare("select * from pricing where durum=:durum and dil=:dil order by sira asc ");
$pricing_liste->execute(array(
    'durum' => '1',
    'dil' => $_SESSION['dil']
));
?>
<title><?php echo ucwords_tr($diller['pricing-table']) ?> | <?php echo $ayar[site_baslik]?></title>
<meta name="description" content="<?php echo"$pric[meta_desc]" ?>">
<meta name="keywords" content="<?php echo"$pric[tags]" ?>">
<meta name="news_keywords" content="<?php echo"$pric[tags]" ?>">
<meta name="author" content="<?php echo"$ayar[site_baslik]" ?>" />
<meta itemprop="author" content="<?php echo"$ayar[site_baslik]" ?>" />
<meta name="robots" content="index follow">
<meta name="googlebot" content="index follow">
<meta property="og:type" content="website" />

<?php include "includes/config/header_libs.php";?>

</head>
<body>
    <?php include 'includes/template/pre-loader.php'?>
    <?php include 'includes/template/header.php'?>


    <!-- Page Header ====================== !-->
    <style>
        .page-headers-main{width:<?php if($pagehead[width]==1){?> 90%; <?php }else {?> 100% <?php }?> ;  padding:<?php echo $pagehead[padding] ?>px 0 <?php echo $pagehead[padding] ?>px 0 ; border:1px solid #<?php echo $pagehead[border_color] ?>;

        <?php if($pagehead[shadow] == 1 ) {?>

            -webkit-box-shadow: inset 0px 5px 10px -7px rgba(0,0,0,0.1);
            -moz-box-shadow: inset 0px 5px 10px -7px rgba(0,0,0,0.1);
            box-shadow: inset 0px 5px 10px -7px rgba(0,0,0,0.1);

        <?php } ?>

        <?php if($pagehead[tip] == 0 ) {?>

            background:#<?php echo $pagehead[bg_color] ?> ;

        <?php } ?>

        <?php if($pagehead[tip] == 1 ) {?>

            background:url(images/uploads/<?php echo $pagehead[bg_image] ?>) ;

            box-shadow: inset 5000px 0 0 0 rgba(0, 0, 0, 0.7); border-color: rgba(0, 0, 0, 1);

        <?php } ?>

    }
</style>
<div class="page-headers-main page-headers-main about-title about-title-bg">
    <div class="d-table">
        <div class="d-table-cell">
            <div class="container">
                <div class="about-title-text">
                    <h2 style="color:#<?php echo $pagehead[text_color] ?>">
                        <?php echo ucwords_tr($diller['pricing-table']) ?>
                    </h2>
                    <span style="color:#<?php echo $pagehead[pasif_text_color] ?>; padding-right: 15px;"><?php echo $diller['buradasiniz'] ?>:</span>
                    <ul>
                        <li>
                            <a href="index.html" style="color:#<?php echo $pagehead[text_color] ?>;"><span style="padding-right: 15px; font-weight: 600"><?php echo $diller['anasayfa'] ?></span></a>
                        </li>
                        <li>
                            <i class="icofont-rounded-double-right" style="color:#<?php echo $pagehead[pasif_text_color] ?>; padding-right: 15px;"></i>
                            <span style="padding-right: 15px; color:#<?php echo $pagehead[text_color] ?>;"><?php echo ucwords_tr($diller['pricing-table']) ?></span>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>
<?php if ($pricing_liste->rowCount() > 0) { ?>

   <section class="pricing-section pt-100 pb-70">
    <div class="container">
        <div class="section-head text-center">
            <h2><?php echo ucwords_tr($diller['pricing-table']) ?></h2>
            <p><?php echo $diller['pricing-aciklamasi'] ?></p>
        </div>

        <div class="row">
            <?php foreach ( $pricing_liste as $pricing) { ?>
                <div class="col-lg-4 col-md-6 col-sm-6">
                    <div class="price-card-area">
                        <div class="price-head-text" <?php if($pricing[tavsiye] ==1) {?> style="background:#<?php echo $pric[tavsiye_color] ?>; border-radius: 4px 4px 0 0;" <?php } ?>>
                            <?php if($pricing[tavsiye] ==1) {?>

                                <div class="pricing-tavsiye-board" style="background-color: #<?php echo $pric[tavsiye_color] ?>; color:#<?php echo $pric[tavsiye_text_color] ?>;position: absolute;top: 0;width: 100%;left: 0;}">
                                    <?php echo $diller['pricing-tavsiye'] ?>
                                </div>

                            <?php } ?>
                            <i class="fa <?php echo $pricing[icon] ?>" style="color:#<?php echo $pric[icon_color] ?>"></i>
                            <h4 class="<?php echo $pric[text_size] ?> <?php echo $pric[text_weight] ?>" style="color:#<?php echo $pric[text_color] ?>; <?php if($pricing[fiyat] == null) { ?>border-bottom:1px solid #EBEBEB<?php }?> ">
                                <?php echo $pricing[baslik] ?></h4>
                                <?php if($pricing[fiyat] == !null) { ?>
                                    <h2><span><?php echo $pricing[fiyat] ?> <?php echo $odemeayar[simge] ?></span>/<?php echo $pricing[odeme_date] ?></h2>
                                <?php }?>
                            </div>

                            <div class="plan-features">
                                <ul>
                                    <?php
                                    $pricing_ozellikler = $db->prepare("select * from pricing_ozellik where pr_id='$pricing[id]' and dil='$_SESSION[dil]' order by sira asc ");
                                    $pricing_ozellikler->execute();
                                    while($prozellik = $pricing_ozellikler->fetch(PDO::FETCH_ASSOC))
                                    {
                                        ?>
                                        <li>
                                            <i class="icofont-check-circled"></i>
                                            <?php echo $prozellik[baslik] ?>
                                        </li>
                                    <?php } ?>
                                </ul>
                            </div>
                            <?php 
                            if($pricing[url]==null){

                            } else {
                                ?>
                                <div class="plan-btn">
                                    <a href="<?php echo $pricing[url] ?>" style="
                                    <?php if($pricing[tavsiye] ==1) {?>
                                       color:#<?php echo $pric[tavsiye_text_color] ?>; background: #<?php echo $pric[tavsiye_color] ?>
                                   <?php } else {?>
                                       color:#<?php echo $pric[button_text_color] ?>; background: #<?php echo $pric[button_bg] ?>
                                   <?php }?>
                                   ">
                                   <?php echo $diller['pricing-button-yazisi']; ?></a>
                               </div>
                           <?php } ?>
                       </div>
                   </div>
               <?php } ?>
           </div>
       </div>
   </section>
<?php } ?>



<?php include 'includes/template/footer.php'?>
</body>
</html>
<?php include "includes/config/footer_libs.php";?>

