<?php
$corporate=[];$legal=[];$footerPages=[];
if(db_table_exists('pages')){
 $corporate=db()->query("SELECT title,slug FROM pages WHERE status='published' AND menu_group='corporate' ORDER BY sort_order,id")->fetchAll();
 $legal=db()->query("SELECT title,slug FROM pages WHERE status='published' AND menu_group='legal' ORDER BY sort_order,id")->fetchAll();
 $footerPages=db()->query("SELECT title,slug FROM pages WHERE status='published' AND menu_group='footer' ORDER BY sort_order,id")->fetchAll();
}
?>
</main><footer class="site-footer"><div class="container footer-grid"><div class="footer-brand"><img src="<?=e(url((string) setting('logo_light','/assets/img/logo-light.svg')))?>" alt="<?=e((string) setting('brand_name','Nekrut Wellness & Spa'))?>" width="640" height="140"><p><?=e(setting('footer_text','Nekrut Hotel’in beş yıldızlı hizmet anlayışıyla tasarlanan seçkin wellness deneyimi.'))?></p><a class="text-link light" href="<?=url('/rezervasyon')?>">Online rezervasyon oluştur →</a></div>
<div><h2>Keşfedin</h2><a href="<?=url('/hizmetler')?>">Wellness deneyimleri</a><a href="<?=url('/wellness-rehberi')?>">Wellness rehberi</a><a href="<?=url('/galeri')?>">Galeri</a><?php foreach($footerPages as $p):?><a href="<?=url('/kurumsal/'.$p['slug'])?>"><?=e($p['title'])?></a><?php endforeach;?><?php $footerHotelUrl=trim((string)setting('hotel_url','https://nekruthotel.com'));if($footerHotelUrl!==''):?><a href="<?=e($footerHotelUrl)?>" target="_blank" rel="noopener noreferrer">Nekrut Hotel</a><?php endif;?></div>
<div><h2>Kurumsal</h2><?php foreach($corporate as $p):?><a href="<?=url('/kurumsal/'.$p['slug'])?>"><?=e($p['title'])?></a><?php endforeach;?></div>
<div><h2>Yasal</h2><?php foreach($legal as $p):?><a href="<?=url('/kurumsal/'.$p['slug'])?>"><?=e($p['title'])?></a><?php endforeach;?></div></div>
<div class="container footer-bottom"><span>© <?=date('Y')?> Nekrut Wellness & Spa</span><span>Online ödeme alınmaz. Rezervasyonlar kapasite uygunluğuna göre kesinleşir.</span></div></footer>
<?php if(setting_bool('cookie_consent_enabled',true)):?><div class="cookie-banner" data-cookie hidden><p>Site işlevleri ve güvenliği için zorunlu çerezler kullanılır. Analitik araçlar yalnız yönetim panelinden etkinleştirildiyse çalışır.</p><div><a href="<?=url('/kurumsal/cerez-politikasi')?>">Detaylar</a><button type="button" class="cookie-secondary" data-cookie-reject>Reddet</button><button type="button" data-cookie-accept>Kabul Et</button></div></div><?php endif;?>
<script src="<?=asset('js/app.js')?>" defer></script></body></html>
