@extends('layouts.user_type.guest') @section('header_title', $blog->meta?->meta_title ?: $blog->title) @section('seo_description', \App\Support\Seo::description($blog->meta?->meta_description ?: $blog->short_description)) @section('seo_image', $blog->banner ? url($blog->banner->file_path) : '') @section('canonical', localized_route('blog.single', $blog->public_key)) @section('og_type', 'article') @push('extra_css') @endpush @section('content') @php use App\Helpers\xDate; $fallbackImage = url('assets/images/logo.png'); $image = $blog->banner ? url($blog->banner->file_path) : $fallbackImage; $date = $blog->publish_time ?: $blog->created_at; $dateLabel = $date ? xDate::dateFa('~ j F Y', $date->timestamp) : ''; $authorName = trim(($blog->author?->fname ?? '') . ' ' . ($blog->author?->lname ?? '')) ?: __('مدیر سایت'); @endphp
{{ $blog->title }}
{{ $blog->category?->localized_title ?? __('عمومی') }} @if($dateLabel) {{ $dateLabel }} @endif {{ $authorName }}

{{ $blog->title }}

@if($blog->short_description)

{{ $blog->short_description }}

@endif
@if($blog->body?->body) {!! $blog->body->body !!} @elseif($blog->short_description) {!! nl2br(e($blog->short_description)) !!} @else

{{ __('محتوایی برای این مقاله ثبت نشده است.') }}

@endif
@if($blog->tags->isNotEmpty()) @endif
@if($relatedBlogs->isNotEmpty()) @endif
@include('blog._sidebar')
@endsection