@extends('frontend.layouts.app') @section('styles') @endsection @section('content')

Blog Posts

@foreach($posts as $post)
@if(Storage::disk('public')->exists('posts/'.$post->image) && $post->image)
{{$post->title}}
@endif {{ $post->title }} {!! str_limit($post->body,120) !!}
@endforeach
{{ $posts->appends(['month' => Request::get('month'), 'year' => Request::get('year')])->links() }}
@include('pages.blog.sidebar')
@endsection @section('scripts') @endsection