book cases added

This commit is contained in:
Benjamin Takats
2022-12-07 14:57:15 +01:00
parent e5b4666d4e
commit ce8f87db6f
59 changed files with 2175 additions and 142 deletions

View File

@@ -0,0 +1,24 @@
@if($writable)
@can('createComment', $model)
<div class="comments-form">
@if($showAvatars)
<x-comments::avatar/>
@endif
<form class="comments-form-inner" wire:submit.prevent="comment">
<x-dynamic-component
:component="\Spatie\LivewireComments\Support\Config::editor()"
model="text"
:placeholder="__('comments::comments.write_comment')"
/>
@error('text')
<p class="comments-error">
{{ $message }}
</p>
@enderror
<x-comments::button submit>
{{ __('comments::comments.create_comment') }}
</x-comments::button>
</form>
</div>
@endcan
@endif