@extends('frontend.layouts.main')
@extends('frontend.layouts.header')
@section('header')@endsection
@section('main')

<div class="container">
    @foreach($posts as $post)

    <div class="item mb-5">
        <div class="media">

            <img class="mr-3 img-fluid post-thumb d-none d-md-flex" src="{{asset('backend/img/'.$post->image)}}" alt="image">
            <div class="media-body">
                <h3 class="title mb-1"><a href="{{ route('blog', $post->slug) }}">{{ $post->title }}</a></h3>
                <div class="meta mb-1"><span class="comment">Post Number {{$post->id}}</span>
                    <span class="date"></span>
                    <span class="comment"><span class="text-info">Category</span> {{ $post->categories }}</span>
                    <span class="text-primary">#{{ $post->tags }}</span></div>
                <div class="intro">{{substr( $post->description, 0,30) }}</div>
                <a class="more-link" href="{{ route('blog', $post->slug) }}">Read more &rarr;</a>
            </div><!--//media-body-->
        </div><!--//media-->
    </div><!--//item-->
    @endforeach


        <div class="d-flex justify-content-center">
            {{$posts->links()}}
        </div>
</div>


@endsection

{'avg_line_length': 36.55882352941177, 'max_line_length': 125, 'alphanum_fraction': 0.5164923572003218, 'licenses': ['MIT'], 'repository_name': 'istiaqhaider8/Personal_blog_site', 'path': 'resources/views/frontend/searchresults.blade.php', 'size': 1243, 'lang': 'PHP'}