<div class="ttm-page-title-row">
    <div class="container">
        <div class="row">
            <div class="col-md-12"> 
                <div class="title-box">
                    <div class="page-title-heading">
                        <h1 class="title"> My JOURNAL</h1>
                    </div>
                    <div class="breadcrumb-wrapper">
                        <span>
                            <a title="Homepage" href="<?php echo site_url() ?>"><i class="fa fa-home"></i>&nbsp;&nbsp;Home</a>
                        </span>
                        <span class="ttm-bread-sep">&nbsp; | &nbsp;</span>
                        <span> Journal </span>
                    </div>  
                </div>
            </div>
        </div> 
    </div>                    
</div>
<div class="container journal-page">
    <div class="row">
        <div class="journal-categories col-md-3 col-sm-12">
            <div class="filter">
                <ul>
                    <li data-filter="*" class="active">all</li>
                    <?php foreach ($blog_categories as $item): ?> 
                            <?php if ($item->count): ?><li data-filter=".cat_<?php echo $item->blog_category_id ?>"><?php echo $item->title ?> <span> <?php echo $item->count ?></span></li><?php endif ?>
                        <?php endforeach; ?>
                </ul>
            </div>
        </div>
        <div class="col-lg-9 content-area">
            <div class="grid-blog row">
                <?php foreach ($items as $item): ?> 
                    <div class="col-md-6 cat_<?php echo $item->blog_category_id ?>">
                        <div class="featured-imagebox featured-imagebox-post box-shadow">
                            <div class="featured-thumbnail">
                                <img class="img-fluid" src="<?php echo base_url() ?>/cdn/blog/<?php echo $item->image ?>" alt="">
                            </div>
                            <div class="featured-content featured-content-post">
                                <div class="post-title featured-title">
                                    <h5><a href="<?php echo site_url('post/' . $item->permalink) ?>"> <?php echo $item->title ?></a></h5>
                                </div>
                                <div class="post-meta">
                                    <span class="ttm-meta-line"><i class="fa fa-calendar"></i><?php echo date('M d, Y', strtotime($item->created)) ?></span>
                                    <span class="ttm-meta-line"><i class="fa fa-eye"></i><?php echo $item->visits ?></span>
                                </div>
                            </div>
                        </div>
                    </div>
                <?php endforeach ?> 
            </div>
        </div>    
    </div>
</div>