<?php $__env->startSection('meta'); ?>
<title><?php echo e($searchKey); ?></title>
<meta property="og:title" content="<?php echo e($searchKey); ?>" />
<meta property="og:image" content="<?php echo e(asset('assets/images/'.$gs->og_baner)); ?>" />
<?php $__env->stopSection(); ?>
<?php $__env->startSection('contents'); ?>

<!-- main div -->
<div class="mainDiv">
  <!-- mobile header categories -->
  <div class="bg2 marginT-15 marginB10 visible-xs">
    <div class="">
      <div class=" padding0">
        <div class="positionRelative" style="border-bottom: 3px solid #9b090d">
          <div class="mobileHeaderCategoryDiv">
            <a class="sidebarCatTitle colorBlack hoverBlue paddingLR15 textDecorationNone" aria-label="হোম"
              href="<?php echo e(route('frontend.index')); ?>"><strong>হোম</strong></a>
            <?php $__currentLoopData = $categories->take(7); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
              <a class="sidebarCatTitle colorBlack hoverBlue paddingLR15 textDecorationNone" aria-label="<?php echo e($category->title); ?>"
                href="<?php echo e(route('frontend.category', $category->slug)); ?>"><strong><?php echo e($category->title); ?></strong></a>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
          </div>
        </div>
      </div>
    </div>
  </div>
  <!-- mobile header categories end -->

  <!-- desktop and mobile version start -->
  <div class="bgWHite">
    <div class="container">
      <div class="row">

        <!-- header -->
        <div class="col-sm-12 col-md-12 marginB20 hidden-xs marginT10">
          <h1 class="desktopCategoryTitle"><span class="titleLeftDesign1"></span> <a href="<?php echo e(url('/search')); ?>"><strong>অনুসন্ধান <i class="fa fa-angle-right title1_8 verticalAlignMiddle"></i></strong></a></h1>
        </div>
        <div class="col-sm-12 col-md-12 paddingLR20 xs-paddingL15 marginB10 visible-xs paddingT10">
          <h1 class="sectionTitle displayInline border0 margin0 marginB0"><span class="titleLeftDesign1"></span> <a href="<?php echo e(url('/search')); ?>"><strong>অনুসন্ধান <i class="fa fa-angle-right title1_8 verticalAlignMiddle"></i></strong></a></h1>
        </div>

        <div class="col-sm-9 col-md-9">
          <div class="row">
            <!-- search box -->
            <div class="col-sm-12 col-md-12 marginB20">
              <form method="get" action="<?php echo e(route('front.news_search')); ?>">
                <div class="panel panel-default borderC1-1 borderRadius4 marginB0">
                  <div class="panel-body">
                    <div class="row marginLR-10">
                      <div class="col-md-9 paddingLR7">
                        <div>
                          <input value="<?php echo e($searchKey ?? ''); ?>" name="search" class="form-control borderRadius5 h40" type="text" placeholder="এখানে খুঁজুন...">
                        </div>
                      </div>
                      <div class="col-md-3 paddingLR7 xs-marginT10">
                        <button type="submit" class="btn btn-block borderRadius5 width100P bgBrand title1_8 colorWhite h40 padding3"><i class="fa fa-search title1_6 verticalAlignMiddle"></i> খুঁজুন</button>
                      </div>
                    </div>
                  </div>
                </div>
              </form>
            </div>

            <!-- search results -->
            <div class="col-sm-12 col-md-12 marginT10">
              <?php if($results->count() > 0): ?>
              <div class="desktopSectionListMedia listItemLastBB0 marginT-15">
                <?php $__currentLoopData = $results; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $post): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <div class="media positionRelative">
                  <div class="media-left">
                    <img src="<?php echo e(asset('assets/images/post/'.$post->image_big)); ?>" class="borderRadius0" style="width:120px;height:80px;object-fit:cover;"
                      alt="<?php echo e(strlen($post->title)>100 ? mb_substr($post->title,0,100,'utf-8').'...' : $post->title); ?>">
                  </div>
                  <div class="media-body paddingL10">
                    <h4 class="margin0 marginB5 title11 hoverBlue"><strong><?php echo e(strlen($post->title)>100 ? mb_substr($post->title,0,100,'utf-8').'...' : $post->title); ?></strong></h4>
                    <p class="desktopTime marginB0"><i class="fa fa-clock title1_4 color2 verticalAlignMiddle marginT2"></i> <?php echo e($post->createdAt()); ?></p>
                  </div>
                  <a href="<?php echo e(route('frontend.postBySubcategory.details',[$post->category->slug ?? '',$post->slug])); ?>" class="linkOverlay"></a>
                </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
              </div>

              <!-- pagination -->
              <?php if($results->hasPages()): ?>
              <div class="text-center marginT20 marginB20">
                <?php echo e($results->appends(request()->query())->links()); ?>

              </div>
              <?php endif; ?>

              <?php else: ?>
              <div class="text-center padding20">
                <p class="colorBrand">কোন তথ্য পাওয়া যায়নি।</p>
              </div>
              <?php endif; ?>
            </div>
          </div>
        </div>

        <!-- sidebar -->
        <div class="col-sm-3 col-md-3 hidden-xs">
          <!-- latest popular news -->
          <div class="row">
            <div class="col-sm-12 col-md-12 marginB20">
              <?php echo $__env->make('partial.front.sidebar-latest-popular', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
            </div>
          </div>
          <!-- latest popular news end -->

          <!-- sidebar ads -->
          <div class="marginB20">
            <?php echo $gs->sidebar_ads; ?>

          </div>
        </div>

      </div>
    </div>
  </div>
  <!-- desktop and mobile version end -->
</div>
<!-- main div end -->

<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.front', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Users/istiakahmedsourav/Desktop/JAMUNABKP/project/resources/views/frontend/full_text_search.blade.php ENDPATH**/ ?>