ldc-lionor/resources/views/bo/partials/inputs/text-html.blade.php

21 lines
555 B
PHP
Raw Normal View History

2023-08-28 08:46:47 +00:00
@if(!empty($label))
<label for="{{ $id }}" class="col-form-label">
<b>{{ $label }} {{ $required ? '*' : '' }}</b>
</label>
@endif
2023-02-24 15:20:58 +00:00
@php
$data = [
'name' => $name,
2023-08-28 08:46:47 +00:00
'text' => old($name, $model->{$name} ?? $value ?? '')
2023-02-24 15:20:58 +00:00
];
@endphp
<div class="ck-editor" data-json='@json($data)'></div>
2023-03-07 10:55:12 +00:00
@include('modules.input-error', [
2023-02-24 15:20:58 +00:00
'inputName' => $name,
'helperId' => "{$id}Help",
2023-08-28 08:46:47 +00:00
'helper' => $helper ?? __('crud.minicrud.text_warning') . '. ' . __('validation.min.string', [
'attribute' => $input['label'],
'min' => 15
]),
2023-02-24 15:20:58 +00:00
])