@extends('layouts.admin') @section('title', 'Article #'.$article->id) @section('breadcrumbs') @endsection @section('header-actions')
@can('update', $article) @unless ($article->trashed()) Edit @endunless @endcan @include('admin.news.partials.actions', ['article' => $article])
@endsection @section('content') @if ($article->trashed())
This article is in the trash (deleted {{ $article->deleted_at->diffForHumans() }}).
@endif
@if ($article->featuredImage) {{ $article->featuredImage->alt_text }} @endif
{{ $article->status->label() }} @if ($article->is_breaking)Breaking@endif @if ($article->is_featured)Featured@endif {{ $article->visibility->label() }}

{{ $article->title }}

{{ $article->short_description }}


{{-- Content was sanitised by App\Support\ContentSanitizer before storage. --}}
{!! $article->body?->content !!}
@if ($article->gallery->isNotEmpty())
Gallery
@foreach ($article->gallery as $media) @endforeach
@endif

Revisions

@forelse ($revisions as $revision) @empty @endforelse
#Title at that revisionByWhen
{{ $revision->revision_number }} {{ \Illuminate\Support\Str::limit($revision->title, 80) }} {{ $revision->user?->name ?? 'System' }} {{ $revision->created_at->format('d M Y H:i') }}
No revisions.

Details

Public URL
{{ $article->publicPath() }}
Country
{{ $article->country?->name }}
Category
{{ $article->category?->name }}{{ $article->subcategory ? ' › '.$article->subcategory->name : '' }}
Author
{{ $article->author?->name ?? '—' }}
Created by
{{ $article->creator?->name ?? '—' }}
Created
{{ $article->created_at->format('d M Y H:i') }}
Updated
{{ $article->updated_at->format('d M Y H:i') }}
Published
{{ $article->published_at?->format('d M Y H:i') ?? '—' }}
@if ($article->scheduled_at)
Scheduled
{{ $article->scheduled_at->format('d M Y H:i') }}
@endif
Reading time
{{ $article->reading_time }} min
Views
{{ number_format($article->views_count) }}
@if ($article->source_name || $article->source_url)
Source
@if ($article->source_url) {{ $article->source_name ?: $article->source_url }} @else {{ $article->source_name }} @endif
@endif
Tags
@forelse ($article->tags as $tag) {{ $tag->name }} @empty — @endforelse

SEO

Title: {{ $article->seo?->meta_title ?: $article->title }}

Description: {{ $article->seo?->meta_description ?: $article->short_description }}

Robots: {{ $article->seo?->robots ?? 'index,follow' }}

@if ($article->seo?->canonical_url)

Canonical: {{ $article->seo->canonical_url }}

@endif

History

    @forelse ($activity as $entry)
  • {{ $entry->description }}
    {{ $entry->user?->name ?? 'System' }} · {{ $entry->created_at->diffForHumans() }}
  • @empty
  • No activity recorded.
  • @endforelse
@endsection