@php
$dom = new DOMDocument();
libxml_use_internal_errors(true);
$dom->loadHTML(mb_convert_encoding($post->content, 'HTML-ENTITIES', 'UTF-8'));
libxml_clear_errors();
$paragraphs = $dom->getElementsByTagName('p');
$firstParagraph = $paragraphs->length > 0 ? $dom->saveHTML($paragraphs->item(0)) : '';
@endphp
{!! $firstParagraph !!}