@php $translated = $translated ?? false; $required = $required ?? false; $maxlength = $maxlength ?? false; $options = $options ?? false; $placeholder = $placeholder ?? false; $note = $note ?? false; $disabled = $disabled ?? false; $readonly = $readonly ?? false; $editSource = $editSource ?? false; $toolbarOptions = $toolbarOptions ?? false; $inModal = $fieldsInModal ?? false; $default = $default ?? false; $hideCounter = $hideCounter ?? false; $type = $type ?? 'quill'; $limitHeight = $limitHeight ?? false; // quill.js options $activeSyntax = $syntax ?? false; $theme = $customTheme ?? 'github'; if ($toolbarOptions) { $toolbarOptions = array_map(function ($option) { if ($option == 'list-unordered') { return (object) ['list' => 'bullet']; } if ($option == 'list-ordered') { return (object) ['list' => 'ordered']; } if ($option == 'h1') { return (object) ['header' => 1]; } if ($option == 'h2') { return (object) ['header' => 2]; } return $option; }, $toolbarOptions); $toolbarOptions = [ 'modules' => [ 'toolbar' => $toolbarOptions, 'syntax' => $activeSyntax ] ]; } $options = $customOptions ?? $toolbarOptions ?? false; @endphp @if($activeSyntax) @pushonce('extra_css:wysiwyg') @endpushonce @endif @if($type === 'tiptap') @if($translated) @else @endif @else @if($translated) @else @endif @endif @unless($renderForBlocks || $renderForModal) @push('vuexStore') @include('twill::partials.form.utils._translatable_input_store') @endpush @endunless