@php if(!isset($blogs)) $blogs = App\Models\Blog::where('active', '1')->limit(3)->get(); @endphp @isset($blogs)
Our Blogs

Latest News & Blogs

@foreach ($blogs as $blog) @php $files = array_values($blog->getFiles('photos')->toArray()); $photo = isset($files[0]) ? $helper->cropImg(public_path($files[0]['file']), 370, 270) : '' ; $link = url($blog->seo_by_locale($locale)->slug); @endphp
{{ $blog->blogCategory['category_name_' . $locale] }}

{{ $blog->title }}

by Author
{{ date('M d,Y', strtotime($blog->publish_date)) }}
@endforeach
@endisset