ldc-nature-and-respect/resources/views/bo/partials/inputs/text-html.blade.php
2023-03-24 16:53:33 +01:00

17 lines
491 B
PHP

@if(!empty($label))
<label for="{{ $id }}" class="col-form-label">
<b>{{ $label }} {{ $required ? '*' : '' }}</b>
</label>
@endif
@php
$data = [
'name' => $name,
'text' => old($name, $model->{$name} ?? $value ?? '')
];
@endphp
<div class="ck-editor" data-json='@json($data)'></div>
@include('modules.input-error', [
'inputName' => $name,
'helperId' => "{$id}Help",
'helper' => $helper ?? __('Proofread your content before publishing it (minimum 15 characters).'),
])