<?php
$content = (new \App\Settings('content'))->getAll();
$footerLogo = json_decode($content['footer-logo'] ?? '{}', true);
$currentDomain = $_SERVER['REQUEST_SCHEME'] . '://' . $_SERVER['HTTP_HOST'];
$menuItems = json_decode($content['menu'] ?? '[]', true);
?>
<footer class="footer">
        

            <div class="footer__content">
                <div class="container footer__content-inner">
                    <div class="footer__logo">
                        <?php if (!empty($footerLogo['src'])): ?>
                            <a href="<?= $_SERVER['REQUEST_SCHEME'] . '://' . $_SERVER['HTTP_HOST'] ?>">
                                <img src="<?= htmlspecialchars($footerLogo['src']) ?>" alt="<?= $footerLogo['alt'] ?? '' ?>" title="<?= $footerLogo['title'] ?? '' ?>">
                            </a>
                        <?php endif; ?>
                    </div>
                    <div class="footer__text">
                        <p>Casino.online is an independent team providing information about Megaways slots in the UK.
                        We provide the latest and safest information about casino games.
                        On our website you will find free Megaways slots, casino bonuses and a list of online casinos to play.
                        We offer honest information that we verify ourselves.</p>
                    </div>
                </div>
            </div>

            <!-- footer partners -->
             <div class="footer__partners">
                <div class="container">
                    <ul class="footer__bottom-imgs">
                        <li><span><img data-src="images/18+.png" class="lazy" alt="18+" title="18+" width="40" height="40"></span></li>
                        <li><a href="https://www.begambleaware.org/" rel="nofollow noopener" target="_blank"><img height="40" width="252" class="lazy" data-src="images/GA.png" alt="BeGambleAware" title="BeGambleAware"></a></li>
                        <li><a href="https://itechlabs.com/" rel="nofollow noopener" target="_blank"><img height="40" width="40" class="lazy" data-src="images/itechlabs.png" alt="iTech Labs" title="iTech Labs"></a></li>
                        <li><a href="https://www.mga.org.mt/" rel="nofollow noopener" target="_blank"><img height="40" width="92" class="lazy" data-src="images/mga.png" alt="MGA" title="MGA"></a></li>
                        <li><img height="40" width="126" class="lazy" data-src="images/ecogra.png" alt="eCOGRA" title="eCOGRA"></li>
                        <li><a href="https://gaminglabs.com/" rel="nofollow noopener" target="_blank"><img height="46" width="86" class="lazy" data-src="images/GLI.png" alt="GLI" title="GLI"></a></li>
                    </ul>
                </div>
             </div>


            <!-- footer menu -->
            <div class="footer__menu">
                <div class="container">
                    <ul class="footer__menu-list">
                        <?php foreach ($menuItems as $menuItem): ?>
                            <li class="footer__menu-item">
                                <a href="<?= htmlspecialchars($menuItem['anchor'] ?? '') ?>" class="footer__menu-link">
                                    <?= htmlspecialchars($menuItem['title'] ?? '') ?>
                                </a>
                            </li>
                        <?php endforeach; ?>
                    </ul>
                </div>
            </div>


            <!-- footer copyrights -->
            <div class="footer__copyright">
                <?= $content['copyright'] ?? '' ?>
            </div>


    </footer>