@php $class = ''; if ('center' === $data['alignment']) { $class = 'text-center'; } elseif ('left' === $data['alignment']) { $class = 'text-left'; } else { $class = 'text-right'; } @endphp

{{ $data['text'] }}

@if (!empty($data['caption'])) — {{ $data['caption'] }} @endif