@extends('front.layouts.master') @use('App\Models\Category') @use('App\Models\Tag') @use('App\Models\Blog') @php $locale = Session::get('front-locale', getDefaultLangLocale()); $categories = Category::where('status', true)?->whereNull('deleted_at')?->get(); $categories = $categories ? $categories->map(function ($category) use ($locale) { return $category->toArray($locale); })->toArray() : []; $tags = Tag::where('status', true)->paginate(10); $tags = $tags ? $tags->map(function ($tag) use ($locale) { return $tag->toArray($locale); })->toArray() : []; $blogs = Blog::with(['blog_thumbnail'])?->where('status', true)->paginate(5); $recentBlogs = $blogs ? $blogs->map(function ($blog) use ($locale) { return $blog->toArray($locale); })->toArray() : []; @endphp @section('title', __('static.blogs.blog')) @section('content')
{{-- Blog Details Section Start --}}{!! @$blog['description'] !!}