MorePaws blog

@foreach ($blog_posts as $post)
image_path") }}" width="937" height="692" alt="">

{{ strlen($post->title) > 23 ? substr($post->title, 0, 23) . '...' : $post->title }}

@php $post->content = preg_replace('/<[^>]*>/', '', $post->content); @endphp {{-- {!! strip_tags($post->content) > 100 ? substr($post->content, 0, 100) . '...' : $post->content !!} --}} {!! strlen($post->content) > 100 ? substr($post->content, 0, 100) . '...' : $post->content !!}

MorePaws
{{ Carbon\Carbon::createFromFormat('d/m/Y', $post->created_at)->format('M d, Y') }}
@endforeach
{{ $blog_posts->onEachSide(3)->links('custom-pagination-links-view') }}