@extends('layouts.app') @section('content')

{{ $news->title }}

{{ $news->taxonomy_label }} @if($news->published_at) ยท {{ $news->published_at->format('F j, Y') }} @endif
@php $renderableBlocks = $news->renderable_content_blocks; $hasRenderableContent = false; @endphp @foreach($renderableBlocks as $block) @php $type = $block['type'] ?? null; @endphp @if($type === 'image') @php $imagePath = trim($block['image_path'] ?? ''); @endphp @if($imagePath !== '') @php $hasRenderableContent = true; @endphp
{{ $block['caption'] ?? $news->title }} @if(! empty($block['caption']))
{{ $block['caption'] }}
@endif
@endif @elseif($type === 'text') @php $rawBody = $block['body'] ?? ''; $sanitizedBody = $rawBody !== '' ? strip_tags($rawBody, '




Comments

@auth @if(auth()->user()->hasVerifiedEmail())
@csrf
@else
Please verify your email address to join the discussion.
@endif @else

Log in or register to post a comment.

@endauth @forelse($comments as $comment)

{{ $comment->user->name }} · {{ $comment->created_at->diffForHumans() }}

{{ $comment->body }}

@empty

No comments yet. Be the first to share your thoughts!

@endforelse
@endsection