<?php if (isset($breadcrumb)) { ?>
    <nav aria-label="breadcrumb">
        <ol class="breadcrumb">
            <?php
            foreach ($breadcrumb as $item) {
                ?>
                <li class="breadcrumb-item <?= $item['active'] ? 'active' : '' ?>">
                    <a href="<?= $item['route'] ?>"><?= $item['title'] ?></a>
                </li>
                <?php
            }
            ?>
        </ol>
    </nav>
    <?php
} else { ?>
    <nav aria-label="breadcrumb">
        <ol class="breadcrumb">
            <li class="breadcrumb-item active">
                <a href="<?= site_url(); ?>">Home</a>
            </li>
        </ol>
    </nav>
<?php } ?>