<?php
$categoriesLimit = $this->Categories_model->getCategoriesLimit();
$setting = $this->Settings_model->getSetting();
$sosmed = $this->Settings_model->getSosmed();
$logopay = $this->db->get('logo_payment')->row_array();
$footerhelp = $this->Settings_model->getFooterHelp();
$footerinfo = $this->Settings_model->getFooterInfo();
$rekening = $this->db->get('rekening');
?>
<footer>
    <div class="information">
        <div class="main">
            <div class="about about-hide">
                <h2 class="brand-footer">TENTANG KAMI</h2>
                <hr>
                <p>
                    <?= $setting['short_desc']; ?>
                </p>
                <div class="sosmed">
                    <?php foreach ($sosmed->result_array() as $s) : ?>
                        <a href="<?= $s['link']; ?>" target="_blank" title="<?= $s['name']; ?>">
                            <i class="fab fa-<?= $s['icon']; ?>"></i>
                        </a>
                    <?php endforeach; ?>
                </div>
            </div>
            <div class="item">
                <h3 class="title">BANTUAN</h3>
                <hr>
                <?php foreach ($footerhelp->result_array() as $f) : ?>
                    <a href="<?= base_url(); ?><?= $f['slug']; ?>"><?= $f['title']; ?></a>
                <?php endforeach; ?>
            </div>
            <div class="item">
                <h3 class="title">PEMBAYARAN</h3>
                <hr>
                <div class="payment_logo">
                    <?php if ($logopay['bca'] == 1) { ?>
                        <img src="<?= base_url(); ?>assets/images/payment/bca.png" alt="payment" class="logo_payment">
                    <?php } ?>
                    <?php if ($logopay['mandiri'] == 1) { ?>
                        <img src="<?= base_url(); ?>assets/images/payment/mandiri.png" alt="payment" class="logo_payment">
                    <?php } ?>
                    <?php if ($logopay['bri'] == 1) { ?>
                        <img src="<?= base_url(); ?>assets/images/payment/bri.png" alt="payment" class="logo_payment">
                    <?php } ?>
                    <?php if ($logopay['bni'] == 1) { ?>
                        <img src="<?= base_url(); ?>assets/images/payment/bni.png" alt="payment" class="logo_payment">
                    <?php } ?>
                    <?php if ($logopay['bcas'] == 1) { ?>
                        <img src="<?= base_url(); ?>assets/images/payment/bcas.png" alt="payment" class="logo_payment">
                    <?php } ?>
                    <?php if ($logopay['bsi'] == 1) { ?>
                        <img src="<?= base_url(); ?>assets/images/payment/bsi.jpg" alt="payment" class="logo_payment">
                    <?php } ?>
                    <?php if ($logopay['atmbersama'] == 1) { ?>
                        <img src="<?= base_url(); ?>assets/images/payment/atmbersama.png" alt="payment" class="logo_payment">
                    <?php } ?>
                    <?php if ($logopay['paypal'] == 1) { ?>
                        <img src="<?= base_url(); ?>assets/images/payment/paypal.png" alt="payment" class="logo_payment">
                    <?php } ?>
                    <?php if ($logopay['jenius'] == 1) { ?>
                        <img src="<?= base_url(); ?>assets/images/payment/jenius.png" alt="payment" class="logo_payment">
                    <?php } ?>
                    <?php if ($logopay['ovo'] == 1) { ?>
                        <img src="<?= base_url(); ?>assets/images/payment/ovo.png" alt="payment" class="logo_payment">
                    <?php } ?>
                    <?php if ($logopay['dana'] == 1) { ?>
                        <img src="<?= base_url(); ?>assets/images/payment/dana.png" alt="payment" class="logo_payment">
                    <?php } ?>
                    <?php if ($logopay['gopay'] == 1) { ?>
                        <img src="<?= base_url(); ?>assets/images/payment/gopay.png" alt="payment" class="logo_payment">
                    <?php } ?>
                    <?php if ($logopay['jago'] == 1) { ?>
                        <img src="<?= base_url(); ?>assets/images/payment/jago.png" alt="payment" class="logo_payment">
                    <?php } ?>
                </div>
            </div>
        </div>
    </div>
    <div class="copyright" style="background-color: <?= $this->config->item('subscribe'); ?>">
        <p class="mb-0">Copyright &copy; <span id="footer-cr-years"></span> <?= $this->Settings_model->general()["app_name"]; ?></p>
    </div>
</footer>