<?php
// includes/footer.php
$db = dbConnect();
$db->query("SELECT * FROM profil_yayasan LIMIT 1");
$yayasan = $db->single();
?>

    <!-- Footer -->
    <footer class="bg-dark text-white py-5 mt-5">
        <div class="container">
            <div class="row">
                <div class="col-lg-4 mb-4 mb-lg-0">
                    <h5 class="mb-4 text-white"><?= SITE_NAME ?></h5>
                    <p class="text-light">
                        <?= isset($yayasan) ? potongTeks($yayasan->visi, 150) : 'Menjadi yayasan terpercaya dalam penyaluran donasi untuk membantu sesama' ?>
                    </p>
                    <div class="d-flex mt-4">
                        <a href="https://www.facebook.com/pundi.amal.mulia.peduli?mibextid=ZbWKwL" class="text-white me-3"><i class="fab fa-facebook-f"></i></a>
                        
                        <a href="https://www.instagram.com/yayasan_pam/profilecard/?igsh=MWF1ZW9pOTVqM2c3bA==" class="text-white me-3"><i class="fab fa-instagram"></i></a>
                        <a href="https://youtube.com/@pamtv39?si=O8hTcGKMG-eF2hYu" class="text-white"><i class="fab fa-youtube"></i></a>
                    </div>
                </div>
                <div class="col-lg-4 mb-4 mb-lg-0">
                    <h5 class="mb-4 text-white">Link Cepat</h5>
                    <ul class="list-unstyled">
                        <li class="mb-2"><a href="<?= SITE_URL ?>" class="text-light">Beranda</a></li>
                        <li class="mb-2"><a href="<?= SITE_URL ?>/pages/kampanye.php" class="text-light">Galang Dana</a></li>
                        <li class="mb-2"><a href="<?= SITE_URL ?>/pages/berita.php" class="text-light">Berita Kegiatan</a></li>
                        <li class="mb-2"><a href="<?= SITE_URL ?>/pages/tentang-kami.php" class="text-light">Tentang Kami</a></li>
                        
                    </ul>
                </div>
                <div class="col-lg-4">
                    <h5 class="mb-4 text-white">Kontak</h5>
                    <div class="mb-3">
                        <p class="text-light mb-0"><i class="fas fa-map-marker-alt me-2"></i> <?= isset($yayasan) ? $yayasan->alamat : 'Rumah Belajar Pundi Amal Mulia di Perumahan Pesona Serpong
No. A1 RT 02/RW 08 Kel. Kademangan, Kec. Setu, Tangerang
Selatan.
' ?></p>
<p class="text-light mb-0"><i class="fas fa-map-marker-alt me-2"></i> <?= isset($yayasan) ? $yayasan->alamat : 'Rumah Belajar Pundi Amal Mulia di Perumahan Pesona Serpong
No. A1 RT 02/RW 08 Kel. Kademangan, Kec. Setu, Tangerang
Selatan.
' ?></p>
                    </div>
                    <div class="mb-3">
                        <p class="text-light mb-0"><i class="fas fa-phone-alt me-2"></i> <?= isset($yayasan) ? $yayasan->no_telp : '081297537697' ?></p>
                    </div>
                    <div>
                        <p class="text-light mb-0"><i class="fas fa-envelope me-2"></i> <?= isset($yayasan) ? $yayasan->email : 'pundi.amal.mulia@gmail.com' ?></p>
                    </div>
                </div>
            </div>
            <hr class="my-4 bg-secondary">
            <div class="row align-items-center">
                <div class="col-md-6 text-center text-md-start">
                    <p class="text-light mb-md-0">&copy; <?= date('Y') ?> <?= SITE_NAME ?>. All Rights Reserved.</p>
                </div>
                <div class="col-md-6 text-center text-md-end">
                    <p class="text-light mb-0">Developed with <i class="fas fa-heart text-danger"></i></p>
                </div>
            </div>
        </div>
    </footer>
    
    <!-- Bootstrap JS -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    
    <!-- jQuery -->
    <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
    
    <!-- Custom JS -->
    <script src="<?= SITE_URL ?>/assets/js/script.js"></script>
</body>
</html>