@if (request('category')) @endif
@if ($categories->count() > 0)
Categories
All Articles @foreach ($categories as $cat) {{ $cat->name }} ({{ $cat->blogs_count ?? 0 }}) @endforeach
@endif @if (isset($recentPosts) && $recentPosts->count() > 0)
Recent Posts
@foreach ($recentPosts as $post)
@if ($post->image) {{ $post->title }} @else
@endif
{{ Str::words($post->title, 3) }}

{{ $post->created_at->format('M d, Y') }}

@if ($post->category) {{ $post->category->name }} @endif
@endforeach
@endif
Follow Us
    @php $socials = [ 'facebook' => '#', 'instagram' => '#', 'twitter' => '#', 'linkedin' => '#', 'github' => '#', 'youtube' => '#', ]; @endphp @foreach ($socials as $social => $url)
  • @endforeach