HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.33
System: Linux li317-225.members.linode.com 3.10.0-1062.12.1.el7.x86_64 #1 SMP Tue Feb 4 23:02:59 UTC 2020 x86_64
User: apache (48)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //var/www/hobbyistgarage/resources/views/search/index.blade.php
@extends('znews.layout.blog')

@section('title', 'News and Reviews')

@section('content')
    
        <!-- Start page content -->
        <section id="page-content" class="page-wrapper">
            

            
            <div class="zm-section bg-white pt-10 pb-40">
                <div class="container">
                	<div class="row mb-40">
                        <div class="col-md-12 col-sm-12 col-lg-12 col-xs-12">
                            <div class="section-title">
                                <h2 class="h6 header-color inline-block uppercase">Search results for: {{ $s }}</h2>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <!-- Start left side -->
                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-8 columns">
                            <div class="row">
                                <div class="col-md-12">
                                    <div class="zm-posts">
                                    @if(isset($articles))
                                    @foreach($articles as $article)
                                        <!-- Start single post layout C -->
                                        <article class="zm-post-lay-c zm-single-post clearfix">
                                            <div class="zm-post-thumb f-left">
                                                <a href="{{ url('article/'.$article->short_url) }}"><img src="{{ url('/media/'.$article->banner_url ) }}" alt="img"></a>
                                            </div>
                                            <div class="zm-post-dis f-right">
                                                <div class="zm-post-header">
                                                    <div class="zm-category">
                                                     @foreach($article->categories as $category)
                                                    	@if(is_object($category))
                                                       	 	<a class="bg-cat-1 cat-btn" href="{{ url('/category/'.$category->short_url) }}">{{ $category->name }}</a>
                                                    	@endif
                                                    @endforeach</div>
                                                    <h2 class="zm-post-title"><a href="{{ url('article/'.$article->short_url) }}">{{ $article->title }}</a></h2>
                                                    <div class="zm-post-meta">
                                                        <ul>
                                                        
                                                            <li class="s-meta"><a href="{{ url('article/'.$article->short_url) }}" class="zm-date">{{ date("l, F d, Y", strtotime($article->published_at)) }} </a></li>
                                                        </ul>
                                                    </div>
                                                    <div class="zm-post-content">
                                                        <p>{{ $article->description }}</p>
                                                    </div>
                                                </div>
                                            </div>
                                        </article>
                                        <!-- Start single post layout C -->
                                        
                                       @endforeach
                                     @endif
                                        
                                        <!-- Start Advertisement -->
                                        <div class="advertisement">
                                            <div class="row mtb-40">
                                                <div class="col-md-12 text-center">
                                                    @if(isset($ad) && count($ad) >0 )
                                	{!! $ad->last()->ad !!}
                                @endif
                                                </div>
                                            </div>
                                        </div>
                                        <!-- End Advertisement -->
                                       
                                    </div>
                                </div>
                            </div>
                        </div>
                        <!-- End left side -->
                        <!-- Start Right sidebar -->
                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-4 sidebar-warp columns">
                            	<div class="row">
                            	<aside class="zm-tagcloud-list col-xs-12 col-sm-6 col-md-6 col-lg-12  xs-mt-40 sm-mt-50 md-mt-60">
                                    <div class="row mb-40">
                                        <div class="col-md-12">
                                            <div class="section-title">
                                                <h2 class="h6 header-color inline-block uppercase">Categories</h2>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="zm-tagcloud">
                                           		@if(isset($categories))
                                                	@foreach($categories as $category)
                                                    	<a href="{{ url('/category/'.$category->short_url) }}">{{ $category->name }}</a>
                                                    @endforeach
                                                @endif
                                            </div>
                                        </div>
                                    </div>
                                </aside>
                            
                                <!-- End Subscribe From -->
                                <aside class="zm-tagcloud-list col-xs-12 col-sm-6 col-md-6 col-lg-12 mt-60">
                                    <div class="row mb-40">
                                        <div class="col-md-12">
                                            <div class="section-title">
                                                <h2 class="h6 header-color inline-block uppercase">Tags</h2>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="zm-tagcloud">
                                            	@foreach($tags as $tag)
                                					<a href="{{ url('/tag/'.$tag->short_url) }}">{{ ucfirst($tag->name) }}</a>
												@endforeach
                                            </div>
                                        </div>
                                    </div>
                                </aside>
                                <!-- Start post layout E -->
                                <aside class="zm-post-lay-e-area col-xs-12 col-sm-6 col-md-6 col-lg-12 mt-60 hidden-md">
                                    <div class="row mb-40">
                                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                                            <div class="section-title">
                                                <h2 class="h6 header-color inline-block uppercase">Trending</h2>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                                            <div class="zm-posts">
                                                <!-- Start single post layout E -->
                                                @if(isset($trending))
                                                   @foreach($trending as $article)
                                                    <!-- Start single post layout E -->
                                                    <article class="zm-post-lay-e zm-single-post clearfix">
                                                        <div class="zm-post-thumb f-left">
                                                            <a href="{{ url('article/'.$article->short_url) }}"><img src="{{ url('/media/'.$article->banner_url ) }}" alt="img"></a>
                                                        </div>
                                                        <div class="zm-post-dis f-right">
                                                            <div class="zm-post-header">
                                                                <h2 class="zm-post-title"><a href="{{ url('article/'.$article->short_url) }}">{{ $article->title }}</a></h2>
                                                                <div class="zm-post-meta">
                                                                    <ul>
                                                                        <li class="s-meta"><a href="{{ url('article/'.$article->short_url) }}" class="zm-date">{{ date("l, F d, Y", strtotime($article->published_at)) }}</a></li>
                                                                    </ul>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </article>
                                                    <!-- Start single post layout E -->
                                                  @endforeach
                                               @endif
                                                <!-- Start single post layout E -->
                                                
                                            </div>
                                        </div>
                                    </div>
                                </aside>
                                <!-- Start post layout E -->
                            </div>
                        </div>
                        <!-- End Right sidebar -->
                    </div>
                    <!-- Start pagination area -->
                    <div class="row hidden-xs">
                        <div class="zm-pagination-wrap mt-70">
                            <div class="container">
                                <div class="row">
                                    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                                            @if(isset($articles) && $articles->hasPages())
                                            	{{ $articles->links('vendor.pagination.bootstrap-4') }}
                                            @endif
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- End pagination area -->
                    <!-- Start Advertisement -->
                    <div class="advertisement">
                        <div class="row mt-40">
                            <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 text-center">
                                @if(isset($ad) && count($ad) >0 )
                                	{!! $ad->last()->ad !!}
                                @endif
                            </div>
                        </div>
                    </div>
                    <!-- End Advertisement -->
                </div>
            </div>
        </section>
        <!-- End page content -->
@endsection