<div class="edu-breadcrumb-area breadcrumb-style-2 bg-image bg-image--19">
    <div class="container">
        <div class="breadcrumb-inner">
            <div class="page-title">
                <h1 class="title">Blog Details</h1>
            </div>
            <ul class="edu-breadcrumb">
                <li class="breadcrumb-item"><a href="<?php echo base_url(); ?>">Home</a></li>
                <li class="separator"><i class="icon-angle-right"></i></li>
                <li class="breadcrumb-item"><a href="<?php echo base_url(); ?>blog">Blog</a></li>
                <li class="separator"><i class="icon-angle-right"></i></li>
                <li class="breadcrumb-item active" aria-current="page"><?php echo mb_strimwidth($blog->blog_title, 0, 50, "...") ?></li>
            </ul>
        </div>
    </div>
</div>

<!--=====================================-->
<!--=       Blog Details Area Start     =-->
<!--=====================================-->
<div class="blog-details-area section-gap-equal pt-5">
    <div class="container">
        <div class="row row--30">
            <div class="col-lg-8">
                <div class="blog-details-content">
                    <div class="entry-content">
                        <h3 class="title"><?php echo $blog->blog_title; ?></h3>
                        <ul class="blog-meta">
                            <li><i class="icon-27"></i><?php echo date('d M, Y', strtotime($blog->created_at)); ?></li>
                        </ul>
                        <div class="thumbnail">
                            <img src="<?php echo base_url(); ?><?php echo $blog->blog_image; ?>" alt="Blog Image">
                        </div>
                    </div>
                    <?php echo $blog->blog_content; ?>
                </div>
            </div>
            <div class="col-lg-4">
                <div class="edu-blog-sidebar">
                    <!-- Start Single Widget  -->
                    <div class="edu-blog-widget widget-latest-post">
                        <div class="inner">
                            <h4 class="widget-title">All Latest Post</h4>
                            <div class="content latest-post-list">
                                <?php 
                                $this->db->limit(10);
                                $all_let_blog = $this->db->get('blog')->result();
                                foreach ($all_let_blog as $key => $let_blog):
                                ?>
                                    <div class="latest-post">
                                        <div class="thumbnail">
                                            <a href="<?php echo base_url(); ?>blog/<?php echo $let_blog->blog_slug; ?>">
                                                <img src="<?php echo base_url(); ?><?php echo $let_blog->blog_image; ?>" alt="Blog Images">
                                            </a>
                                        </div>
                                        <div class="post-content">
                                            <h6 class="title"><a href="<?php echo base_url(); ?>blog/<?php echo $let_blog->blog_slug; ?>"><?php echo $let_blog->blog_title; ?></a></h6>
                                            <ul class="blog-meta">
                                                <li><i class="icon-27"></i><?php echo date('d M Y', strtotime($let_blog->created_at)); ?></li>
                                            </ul>
                                        </div>
                                    </div>
                                <?php endforeach; ?>
                            </div>
                        </div>
                    </div>
                    <!-- End Single Widget  -->

                </div>
            </div>
        </div>
    </div>
</div>