Files
aibuddytool/resources/views/vendor/laravel_editorjs/blocks/quote.blade.php
2023-12-07 12:49:45 +08:00

19 lines
451 B
PHP

@php
$class = '';
if ('center' === $data['alignment']) {
$class = 'text-center';
} elseif ('left' === $data['alignment']) {
$class = 'text-left';
} else {
$class = 'text-right';
}
@endphp
<blockquote class="editor-quote">
<p class="{{ $class }}">{{ $data['text'] }}</p>
@if (!empty($data['caption']))
<small class="{{ $class }}"> {{ $data['caption'] }}</small>
@endif
</blockquote>