@props([ 'value' => null, 'placeholder' => null, 'name' => null, 'invalid' => false, ]) @php $name = $name ?? $attributes->get('name'); $initial = $value ?? $attributes->get('value') ?? ''; $placeholder = $placeholder ?? __('dashboard.Write…'); $rail = [ [ ['verb' => 'revert', 'title' => __('dashboard.Undo'), 'icon' => 'arrow-uturn-left'], ['verb' => 'replay', 'title' => __('dashboard.Redo'), 'icon' => 'arrow-uturn-right'], ], [ ['verb' => 'promote', 'arg' => 'h1', 'title' => __('dashboard.Heading 1'), 'glyph' => 'H1'], ['verb' => 'promote', 'arg' => 'h2', 'title' => __('dashboard.Heading 2'), 'glyph' => 'H2'], ['verb' => 'promote', 'arg' => 'h3', 'title' => __('dashboard.Heading 3'), 'glyph' => 'H3'], ['verb' => 'promote', 'arg' => 'p', 'title' => __('dashboard.Paragraph'), 'glyph' => 'P'], ], [ ['verb' => 'strong', 'title' => __('dashboard.Bold'), 'glyph' => 'B'], ['verb' => 'em', 'title' => __('dashboard.Italic'), 'glyph' => 'I'], ['verb' => 'ins', 'title' => __('dashboard.Underline'), 'glyph' => 'U'], ['verb' => 'del', 'title' => __('dashboard.Strike'), 'glyph' => 'S'], ['verb' => 'glow', 'title' => __('dashboard.Highlight'), 'glyph' => 'H'], ['verb' => 'raise', 'title' => __('dashboard.Superscript'), 'glyph' => 'x²'], ['verb' => 'lower', 'title' => __('dashboard.Subscript'), 'glyph' => 'x₂'], ], [ ['verb' => 'bullets', 'title' => __('dashboard.Bullet list'), 'icon' => 'list-bullet'], ['verb' => 'numerals', 'title' => __('dashboard.Numbered list'), 'icon' => 'numbered-list'], ['verb' => 'deepen', 'title' => __('dashboard.Indent'), 'icon' => 'chevron-double-right'], ['verb' => 'lift', 'title' => __('dashboard.Outdent'), 'icon' => 'chevron-double-left'], ['verb' => 'cite', 'title' => __('dashboard.Quote'), 'icon' => 'chat-bubble-left'], ['verb' => 'mono', 'title' => __('dashboard.Code block'), 'icon' => 'code-bracket'], ], [ ['verb' => 'start', 'title' => __('dashboard.Align left'), 'icon' => 'bars-3-bottom-left'], ['verb' => 'mid', 'title' => __('dashboard.Align center'), 'icon' => 'bars-3'], ['verb' => 'end', 'title' => __('dashboard.Align right'), 'icon' => 'bars-3-bottom-right'], ['verb' => 'spread', 'title' => __('dashboard.Justify'), 'icon' => 'bars-4'], ], [ ['verb' => 'href', 'title' => __('dashboard.Link'), 'icon' => 'link'], ['verb' => 'detach', 'title' => __('dashboard.Unlink'), 'icon' => 'link-slash'], ['verb' => 'figure', 'title' => __('dashboard.Image'), 'icon' => 'photo'], ['verb' => 'rule', 'title' => __('dashboard.Divider'), 'icon' => 'minus'], ['verb' => 'grid', 'title' => __('dashboard.Table'), 'icon' => 'table-cells'], ['verb' => 'wipe', 'title' => __('dashboard.Clear format'), 'icon' => 'paint-brush'], ], ]; @endphp
{{ $placeholder }}