@extends('layouts.app')
@section('title', '博客中心 | Blog')
@section('content')
@if($featuredBlogs->count() > 0)
推荐博客
@foreach($featuredBlogs as $blog)
@if($blog->cover_image)

@else

@endif
⭐ 推荐
@if($blog->category)
{{ $blog->category }}
@endif
{{ $blog->title }}
{{ $blog->auto_summary }}
{{ $blog->published_at ? $blog->published_at->format('Y-m-d') : '-' }}
👁️ {{ $blog->view_count }} 阅读
@endforeach
@endif
@foreach($latestBlogs as $blog)
@if($blog->cover_image)

@else

@endif
@if($blog->category)
{{ $blog->category }}
@endif
{{ $blog->title }}
{{ $blog->auto_summary }}
📅 {{ $blog->published_at ? $blog->published_at->format('Y-m-d') : '-' }}
👁️ {{ $blog->view_count }}
@endforeach
@if($latestBlogs->hasPages())
@endif
@if($latestBlogs->count() === 0)
@endif
@endsection