<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"> <?php echo $item->title ?></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>
                            <a title="Journal" href="<?php echo site_url('journal') ?>">&nbsp;&nbsp;Journal</a>
                        </span>
                        <span class="ttm-bread-sep">&nbsp; | &nbsp;</span>
                        <span> <?php echo $item->title ?></span>
                    </div>  
                </div>
            </div>
        </div> 
    </div>                    
</div>
<div class="container mt70 mb70 single-post">
    <div class="row">
        <div class="col-md-8 col-md-offset-2">
            <img src="<?php echo base_url() ?>/cdn/blog/<?php echo $item->image ?>" alt="<?php echo $item->title ?>"/>
            <h3 class="title mb0 mt20"><?php echo $item->title ?></h3>
            <div class="post-meta">
                <span class="ttm-meta-line"><i class="fa fa-folder-o"></i><?php echo $item->category ?></span>
                <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>
                <?php foreach (explode("\n", $item->content) as $i): ?>
                    <p><?php echo $i ?></p>  
                <?php endforeach; ?>
            </div>
            <?php if (config('disqus_username')): ?>
                <div class="mt20 mb90">
                    <h3 class="text-center">
                        Leave a comment
                    </h3>
                    <div id="disqus_thread"></div>
                    <script>
                        (function () {
                            var d = document, s = d.createElement('script');
                            s.src = 'https://<?php echo config('disqus_username') ?>.disqus.com/embed.js';
                            s.setAttribute('data-timestamp', +new Date());
                            (d.head || d.body).appendChild(s);
                        })();
                    </script>
                </div>
            <?php endif ?>
        </div>
    </div>
</div>