@extends('layouts.public') @section('title', 'Preview: ' . $blogArticle->title) @section('meta_description', $blogArticle->excerpt ?: \Illuminate\Support\Str::limit(strip_tags($blogArticle->content), 150)) @push('styles') @endpush @section('content')
@php($safePreviewContent = app(\App\Support\HtmlSanitizer::class)->sanitize($blogArticle->content))
Preview mode only. This article is not public until admin approval/publishing.
@if($blogArticle->featured_image_url) {{ $blogArticle->title }} @endif
{{ $blogArticle->category?->name }} {{ $blogArticle->statusLabel() }} By {{ $blogArticle->author?->name }}

{{ $blogArticle->title }}

@if($blogArticle->excerpt)

{{ $blogArticle->excerpt }}

@endif
{!! $safePreviewContent !!}
@endsection