Файл: resources/views/app/_comment_form.blade.php
Строк: 33
<?php
@if (! ($closed ?? false))
@if (($comments ?? collect())->isEmpty())
{{ showError(__('main.empty_comments')) }}
@endif
@if (getUser())
<form action="{{ $action }}" method="post" class="mb-3">
@csrf
<div class="mb-3{{ hasError('msg') }}">
<label for="msg" class="form-label">{{ __('main.message') }}:</label>
<textarea class="form-control tiptap" maxlength="{{ setting('comment_text_max') }}" id="msg" rows="5" name="msg" data-relate-type="{{ AppModelsComment::$morphName }}" data-relate-id="0" required>{{ getInput('msg') }}</textarea>
<div class="invalid-feedback">{{ textError('msg') }}</div>
<span class="js-textarea-counter"></span>
</div>
@include('app/_upload_file', ['model' => new AppModelsComment(), 'files' => $files])
<button class="btn btn-success">{{ __('main.write') }}</button>
</form>
@else
{{ showError(__('main.not_authorized')) }}
@endif
@else
{{ showError(__('main.closed_comments')) }}
@endif
?>