{{ Form::open(['route' => 'Admin.Core.Comments.store', 'id' => 'comment-form', 'autocomplete' => 'off']) }}

	<input type="hidden" name="id" value="{{ $comment['id'] ?? null }}">
	<input type="hidden" name="commentable_type" value="{{ $comment['commentable_type'] ?? null }}">
	<input type="hidden" name="commentable_id" value="{{ $comment['commentable_id'] ?? null }}">

	@if ($comment['id'] ?? null)
		<div class="row mb-3">
			<div class="col-8">
				{{ $comment['user_id'] }}
			</div>
			<div class="col-4">
				{{ $comment['created_at'] }}
			</div>
		</div>
	@endif


	<div class="row mb-3">
		<div class="col-12">
			{{ Form::label('name', __('commentaire')) }}<br/>
			@include('components.form.editor', ['name' => 'comment', 'value' => $comment['comment'] ?? null])
		</div>
	</div>
	
</form>

@include('load.form.editor')

<script>
	$(function() {
		initEditor();
	});
</script>
