<x-admin-panel-layout>
        <x-slot name="title">
            ویرایش نظر{{ $comment->user->name }}
        </x-slot>
        <x-slot name="main">
            <div class="content-header">
                <div class="container-fluid">
                    <div class="row mb-4">
                        <div class="col-sm-6">
                            <h3 class="m-0 text-dark">  ویرایش نظر {{ $comment->user->name }}</h3>
                        </div><!-- /.col -->
                        <div class="col-sm-6">
                            <ol class="breadcrumb float-sm-left">
                                <li class="breadcrumb-item"><a href="{{ route("admin.dashboard") }}">داشبورد</a></li>
                                <li class="breadcrumb-item"><a href="{{ route($comment->comment_able_type."_comments.index") }}">نظرات</a></li>
                                <li class="breadcrumb-item active">
                                    ویرایش نظر {{ $comment->user->name }}
                                </li>
                            </ol>
                        </div><!-- /.col -->
                    </div>
                </div>
            </div>
    <form action="{{ route("admin_edit_comment",["id"=>$comment->id]) }}" method="post" class="w-100" enctype="multipart/form-data">
        <div class="row">
            <div class="col-lg-9"> @csrf
            <input type="hidden" name="user_id"  value="{{ auth()->id() }}">
            <input type="hidden" name="parent_id" value="{{ $comment->id }}">
                <input type="hidden" name="post_id" value="{{ $comment->comment_able_id }}">
                <input type="hidden" name="post_type" value="{{ $comment->comment_able_type }}">
                <div class="admin-metabox-item">
                    <div class="admin-metabox-item-title"><h5>متن</h5>
                        <span class="admin-metabox-item-btn-up"><i class="fa fa-angle-up"></i></span>
                    </div>
                    <p class="col-12 form-item">
                        <textarea name="text" id="text" cols="30" rows="10"></textarea>
                    </p>
                </div>

                <p>
                    <button class="btn btn-primary">ویرایش</button>
                </p>
            </div>

        </div></form>

    <script>        CKEDITOR.replace('text');
        CKEDITOR.replace('excerpt');
        CKEDITOR.instances['text'].setData(`{!! $comment->text !!}`);
          </script>
        </x-slot>
</x-admin-panel-layout>
