@php $firstImage = $story->firstImageSection(); $ogImage = $firstImage ? route('thumbnail', ['width' => 1200, 'height' => 630, 'path' => $firstImage->content]) : asset('images/hero.png'); $storyDesc = !empty($story->summary) ? \Illuminate\Support\Str::limit($story->summary, 155) : \Illuminate\Support\Str::limit(strip_tags($story->description ?? ''), 155); $storySchema = [ '@context' => 'https://schema.org', '@type' => 'Article', 'headline' => $story->name, 'description' => $storyDesc, 'datePublished' => $story->display_date ? $story->display_date->toDateString() : null, 'image' => $ogImage, 'url' => route('stories.show', $story->slug), ]; @endphp
{{ $story->display_date ? $story->display_date->format('F d, Y') : 'The Archives' }}

{{ $story->name }}

{{ $story->summary }}

@if($story->tags && $story->tags->isNotEmpty())
@foreach($story->tags as $tag) #{{ $tag->name }} @endforeach
@endif
@if($story->description)
{!! nl2br(e($story->description)) !!}
@endif
@foreach($story->sections as $section)
@if($section->type == 1)
{!! $section->content !!}
@elseif($section->type == 2)
Story Image
@endif
@endforeach