<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
    <?php if($this->router->fetch_class() == 'dashboard' && empty($breadcrumb)): ?>
    <div class="" style="height: .5rem;"></div>
    <?php else: ?>
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <div class="container-fluid">
            <div class="row">
                <?php if($this->router->fetch_class() != 'dashboard'): ?>
                <div class="col-sm-6"><h1><?=$page_title;?></h1></div>
                <?php endif; ?>
                <?php if(!empty($breadcrumb)): ?>
                <div class="col-sm-6">
                    <ol class="breadcrumb float-sm-right">
                    <?php
                        for($i=0; $i<count($breadcrumb); $i++):
                            if($i == count($breadcrumb) - 1):
                                echo '<li class="breadcrumb-item active">'.$breadcrumb[$i]['title'].'</li>';
                            else:
                                echo '<li class="breadcrumb-item">';
                                echo '<a href="'.$breadcrumb[$i]['url'].'">'.$breadcrumb[$i]['title'].'</a>';
                                echo '</li>';
                            endif;
                        endfor;
                    ?>
                    </ol>
                </div>            
                <?php endif; ?>
            </div>
        </div><!-- /.container-fluid -->
    </section>
    <?php endif; ?>

    <!-- Main content -->
    <section class="content">
