<div class="modal-header">
    <h4 class="modal-title" id="ceratModal">Edit </h4>
    <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="X"></button>
</div>
<div class="modal-body">
    <form class="knowledgebaseEditForm" data-id="{{$knowledgebase->id}}" enctype="multipart/form-data">
        @csrf
        <div class="row">
            <ul class="nav nav-tabs" role="tablist">
                <li class="nav-item">
                    <a class="nav-link active" id="rh_arabic-tab" data-bs-toggle="tab" href="#rh_arabic"
                        aria-controls="rh_arabic" role="tab" aria-selected="true"> عربي</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" id="rh_english-tab" data-bs-toggle="tab" href="#rh_english"
                        aria-controls="rh_english" role="tab" aria-selected="false"> English</a>
                </li>
            </ul>
            <div class="tab-content">
                <div class="tab-pane active" id="rh_arabic" aria-labelledby="rh_arabic-tab" role="tabpanel">
                    <x-input-field label="{{ __('عنوان') }}" name="title_ar" value="{{ old('title_ar',$knowledgebase->title_ar) }}"
                        required="true" col="12" maxLength="1000" />
                    <x-textarea-field label="{{ __(' الوصف ar') }}" name="content" value="{{ old('content',$knowledgebase->content) }}"
                        maxLength="10000" />
                </div>
                <div class="tab-pane" id="rh_english" aria-labelledby="rh_english-tab" role="tabpanel">
                    <x-input-field label="{{ __('العنوان en') }}" name="title_en" value="{{ old('title_en',$knowledgebase->title_en) }}"
                        required="true" col="12" maxLength="1000" />

                    <x-textarea-field label="{{ __(' الوصف en') }}" name="content_en" value="{{ old('content_en',$knowledgebase->content_en) }}"
                        maxLength="10000" />
                </div>
            </div>
            <x-textarea-field label="{{ __('seo') }}" name="seo" value="{{ old('seo',$knowledgebase->seo) }}"
            maxLength="10000" />
        </div>


        <div class="row">
            <div class="col-12">
                <button class="btn btn-primary">{{ __('حفظ') }}</button>
            </div>
        </div>
    </form>
</div>
