@extends('site.layouts.app') @section('page_title', __('Blog list')) @section('seo') @endsection @section('content') @if (count($blogs) >= 1)
{{-- post cards --}}
@foreach ($blogs as $blog)

{{ __('By') }} {{ isset($blog->user) && !empty($blog->user->name) ? $blog->user->name : __('Guest Author')}} {{__('on')}} {{ formatDateTime($blog->created_at) }}

{{ trimWords($blog->title, 65) }}

{{ trimWords($blog->summary, 120) }}

@endforeach {{ $blogs->links('site.layouts.section.blog.pagination') }}
{{-- right sidebar --}} @include('site.layouts.section.blog.sidebar')
@else
{{ __('Image') }}

{{ __('We’re sorry!') }}

{{ __('Blog post are not available') }}

@endif @endsection