@props(['html' => null, 'plain' => null, 'limit' => 80]) @php $textPlain = $plain ?? trim(html_entity_decode(strip_tags($html ?? ''))); $short = $textPlain !== '' ? \Illuminate\Support\Str::limit($textPlain, $limit) : '—'; $hasMore = ($html && ($textPlain !== $short || preg_match('/ @if($hasMore) @endif