@extends('user.blog.layout') @section('title', 'وبلاگ') @section('content')

وبلاگ

مقالات و مطالب مفید

@if(request()->has('category') || request()->has('tag') || request()->has('search'))
@endif
@if($posts->count() > 0)
@foreach($posts as $post)
@if(!empty($post->featured_image) && $post->featured_image !== 'undefined') {!! optimizedImage($post->featured_image, [ 'alt' => $post->title ?? 'تصویر شاخص', 'class' => 'card-img-top', 'lazy' => true, 'loading' => 'lazy', 'style' => 'object-fit: cover; height:220px; width:100%; display: block;', 'width' => '100%' ]) !!} @else
@endif
{{ $post->title }}
@if($post->excerpt)

{{ Str::limit($post->excerpt, 120) }}

@endif
ادامه مطلب @if($post->categories->count() > 0)
@foreach($post->categories->take(2) as $category) {{ $category->name }} @endforeach
@endif
@endforeach
@if($posts->hasPages())
{{ $posts->links() }}
@endif @else

هیچ پستی یافت نشد

در حال حاضر هیچ پستی در وبلاگ وجود ندارد.

@endif
@if($categories->count() > 0)
دسته‌بندی‌ها
@endif @if($popularTags->count() > 0)
برچسب‌های محبوب
@foreach($popularTags as $tag) {{ $tag->name }} @endforeach
@endif @if(isset($recentPosts) && $recentPosts->count() > 0) @endif
@endsection