

<?php $__env->startSection('content'); ?>

<section class="archive-page-section">
<div class="container">
<div class="row">

    <!-- LEFT SIDE -->
    <div class="col-md-8 col-sm-8">

        <div class="category_info mb-3">
            <a href="<?php echo e(url('/')); ?>">
                <i class="fa fa-home"></i>
            </a>
            <i class="fa fa-chevron-right"></i> সকল খবর
        </div>

        <?php $__empty_1 = true; $__currentLoopData = $posts ?? []; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>

            <?php
                $slug = \Illuminate\Support\Str::slug($row->title_bn ?? '');
            ?>

            <div class="archive_page archive_back mb-4">
                <div class="row">

                    <div class="col-md-4 col-sm-4">
                        <a href="<?php echo e(url('view-post/'.$row->id.'/'.$slug)); ?>">
                            <img class="img-fluid lazyload"
                                 src="<?php echo e(asset($setting->lazybaner ?? '')); ?>"
                                 data-src="<?php echo e(asset($row->image ?? '')); ?>"
                                 alt="<?php echo e($row->title_bn ?? ''); ?>">
                        </a>
                    </div>

                    <div class="col-md-8 col-sm-8">

                        <h3 class="archive_title01">
                            <a href="<?php echo e(url('view-post/'.$row->id.'/'.$slug)); ?>">
                                <?php echo e($row->title_bn ?? ''); ?>

                            </a>
                        </h3>

                        <p>
                            <?php echo e(\Illuminate\Support\Str::limit(strip_tags($row->details_bn ?? ''), 200)); ?>

                        </p>

                        <h4 class="archvie_more">
                            <a href="<?php echo e(url('view-post/'.$row->id.'/'.$slug)); ?>">
                                বিস্তারিত...
                            </a>
                        </h4>

                    </div>

                </div>
            </div>

        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
            <div class="alert alert-warning">
                কোনো সংবাদ পাওয়া যায়নি।
            </div>
        <?php endif; ?>


        <!-- Pagination -->
        <div class="text-center">
            <?php echo e($posts->links() ?? ''); ?>

        </div>

    </div>



    <!-- RIGHT SIDE -->
  
    <div class="col-md-4">
        <div class="tab-header">
            <ul class="nav nav-tabs nav-justified" role="tablist">
                <li role="presentation" class="active"><a href="#tab21" role="tab" data-toggle="tab">সর্বশেষ আপডেট</a></li>
                <li role="presentation"><a href="#tab22" role="tab" data-toggle="tab">জনপ্রিয় সংবাদ</a></li>
            </ul>

            <div class="tab-content">
                <div role="tabpanel" class="tab-pane active" id="tab21">
                    <div class="news-titletab">
					<?php
     $firstsectionbig=DB::table('posts')->where('first_section_thumbnail',1)->orderBy('id','DESC')->first();
	 $firstsectionsmallbd=DB::table('posts')->where('first_section',1)->orderBy('id','DESC')->limit(10)->get();
	 $firstsectionheding=DB::table('posts')->where('headline',1)->orderBy('id','DESC')->limit(10)->get();
	 $firstsectionheding1=DB::table('posts')->where('headline',1)->orderBy('id','DESC')->limit(9)->get();
     $setting=DB::table('settings')->first();
	 $seo=DB::table('seos')->first()
?>
                        <?php if(!empty($firstsectionsmallbd) && count($firstsectionsmallbd) > 0): ?>
                            <?php $__currentLoopData = $firstsectionsmallbd; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <?php
                                    $slug = preg_replace('/\s+/u', '-', trim($row->title_bn ?? ''));
                                ?>
                                <div class="small-img tab-border">
                                    <span> তাজা </span>
                                    <a href="<?php echo e(url('view-post/' . $row->id . '/' . $slug)); ?>">
                                        <img class="lazyload" src="<?php echo e(asset($setting->lazybaner ?? '')); ?>" data-src="<?php echo e(asset($row->image ?? '')); ?>" alt="<?php echo e($row->title_bn ?? ''); ?>" title="<?php echo e($row->title_bn ?? ''); ?>" />
                                    </a>
                                    <h4 class="hadding_3"><a href="<?php echo e(url('view-post/' . $row->id . '/' . $slug)); ?>"><?php echo e($row->title_bn ?? ''); ?></a></h4>
                                </div>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        <?php else: ?>
                            <p>কোনো সর্বশেষ আপডেট পাওয়া যায়নি।</p>
                        <?php endif; ?>
                    </div>
                </div>

                <div role="tabpanel" class="tab-pane fade" id="tab22">
                    <div class="news-titletab">
                        <?php if(!empty($firstsectionheding) && count($firstsectionheding) > 0): ?>
                            <?php $__currentLoopData = $firstsectionheding; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <?php
                                    $slug = preg_replace('/\s+/u', '-', trim($row->title_bn ?? ''));
                                ?>
                                <div class="small-img tab-border">
                                    <span>খবর</span>
                                    <a href="<?php echo e(url('view-post/' . $row->id . '/' . $slug)); ?>">
                                        <img class="lazyload" src="<?php echo e(asset($setting->lazybaner ?? '')); ?>" data-src="<?php echo e(asset($row->image ?? '')); ?>" alt="<?php echo e($row->title_bn ?? ''); ?>" title="<?php echo e($row->title_bn ?? ''); ?>" />
                                    </a>
                                    <h4 class="hadding_3"><a href="<?php echo e(url('view-post/' . $row->id . '/' . $slug)); ?>"><?php echo e($row->title_bn ?? ''); ?></a></h4>
                                </div>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        <?php else: ?>
                            <p>কোনো জনপ্রিয় সংবাদ পাওয়া যায়নি।</p>
                        <?php endif; ?>
                    </div>
                </div>
            </div>
        </div>




		<div class="add">
			<h4>Room For Add : contact: 01920 254269</h4>
			
		</div>
		<div class="add">
			<h4>Room For Add : contact: 01920 254269</h4>
			
		</div>
		<div class="col-md-12 col-sm-12">
			<div class="add_01">
				<div class="widget_area">
					<div class="textwidget"></div>
				</div>
			</div>
			<div class="facebook_title"><a href="#">ফেসবুকে আমরা...</a></div>
			<div id='fb-root' />
			<script type='text/javascript'>
				//<![CDATA[
				window.fbAsyncInit = function() {
					FB.init({
						appId: 'FB APP ID',
						status: true, // check login status
						cookie: true, // enable cookies 
						xfbml: true // parse XFBML
					});
				};
				(function() {
					var e = document.createElement('script');
					e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
					e.async = true;
					document.getElementById('fb-root').appendChild(e);
				}());
				//]]>
			</script>
			<div class="fb-page" data-href="https://www.facebook.com/<?php echo e($setting->facebookpage ??''); ?>" data-width="700" data-height="400" data-hide-cover="false" data-show-facepile="true" data-show-posts="false">
				<div class="fb-xfbml-parse-ignore">
					<!-- <blockquote cite="https://www.facebook.com/msdesign.rtml"><a href="https://www.facebook.com/msdesign.rtml">Elite Design</a></blockquote> -->
				</div>
			</div>
		</div>
    </div>

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

<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.front', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/dhakasupplier/bdcrimewatch.com/resources/views/frontend/allposts.blade.php ENDPATH**/ ?>