Files
aibuddytool/resources/views/vendor/laravel_editorjs/blocks/quote.blade.php
Charles T ded1643e5f Add (post manage)
Add (post country viewing)
2023-07-28 02:29:11 +08:00

19 lines
455 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>