{{ $page->excerpt }}
@foreach($blogs as $blog)
@php
// Resolve the post image: full URL as-is, a public/images
// filename via asset(), otherwise a storage path. Always
// falls back to a real bundled image.
$img = $blog->image;
$blogImg = empty($img)
? asset('images/default.png')
: (\Illuminate\Support\Str::startsWith($img, ['http://', 'https://'])
? $img
: (\Illuminate\Support\Str::startsWith($img, 'images/')
? asset($img)
: (\Illuminate\Support\Str::contains($img, '/')
? asset('storage/' . ltrim($img, '/'))
: asset('images/' . $img))));
@endphp
@endforeach
@if($blogs->hasPages())
@if(!empty($blog->created_at))
{{ \Illuminate\Support\Carbon::parse($blog->created_at)->format('d M Y') }}
@endif{{ $blog->title }}
@if(!empty($blog->excerpt)){{ \Illuminate\Support\Str::limit($blog->excerpt, 110) }}
@endif
{{ $blogs->links('vendor.pagination.default') }}
@endif