@extends('layouts.nova.content-layout') @php $hero_title = $story->title; $hero_description = $story->excerpt ?: \Illuminate\Support\Str::limit(strip_tags((string) $story->content), 160); @endphp @push('head') @php $storyUrl = $story->canonical_url ?: route('stories.show', ['slug' => $story->slug]); $creatorName = $story->creator?->display_name ?: $story->creator?->username ?: 'Unknown creator'; $metaDescription = $story->meta_description ?: $hero_description; $metaTitle = $story->meta_title ?: $story->title; $ogImage = $story->og_image ?: $story->cover_url; @endphp @if($ogImage) @endif @if($ogImage) @endif @endpush @section('page-content')
@if($story->cover_url) {{ $story->title }} @endif
{{ str_replace('_', ' ', $story->story_type) }} @if($story->published_at) {{ $story->published_at->format('M d, Y') }} @endif {{ (int) $story->reading_time }} min read

{{ $story->title }}

@if($story->excerpt)

{{ $story->excerpt }}

@endif
{!! $safeContent !!}

Discussion

@if($comments->isEmpty())

No comments yet.

@else
@foreach($comments as $comment)
{{ $comment->author_username ?? 'User' }} {{ optional($comment->created_at)->diffForHumans() }}

{{ $comment->body }}

@endforeach
@endif @auth @if($story->creator)
@csrf
@endif @endauth
@endsection