@extends('Admin.layouts.master')

@section('content')
@php
$currentPage = 'manage_cms';
@endphp


<div class="layout-px-spacing">
    <div class="middle-content container-xxl p-0">
        <div class="row layout-top-spacing ">
            <div class="top-tabel">
                <div class="row">
                    <div class="col-md-12 left d-flex align-items-center justify-content-between" style="gap: 15px;">
                        <a class="d-flex align-items-center justify-content-center pl-2" href="{{ route('manage.terms') }}">
                            <img class="back-btn" src="{{ asset('public/assets/img/left-arrow.svg') }}">
                            <h6 class="card-title p-0">Edit Details</h6>
                        </a>

                    </div>
                </div>


            </div>
            <!-- <div class="col-xl-12 col-lg-12 col-sm-12  layout-spacing">
                        <div class="widget-content widget-content-area br-8 position-btn p-0">
                            <div class="view-details">
                                <div class="simple-tab">
                                    <div class="tab-content" id="myTabContent">
                                        <div class="tab-pane fade show active" id="home-tab-pane" role="tabpanel"
                                            aria-labelledby="home-tab" tabindex="0">
                                            <div class="row">
                                                <div class="col-md-12">
                                                    <div id="terms-quill-edit" class="editor-quill"
                                                        style="height: 300px;"></div>
                                                </div>
                                                <div class="col-md-12">
                                                    <a class="download-btn-custom mt-3 custom-width-10" href="">
                                                        <span>Update</span>
                                                    </a>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div> -->

            <div class="col-xl-12 col-lg-12 col-sm-12 layout-spacing">
                <div class="widget-content widget-content-area br-8 position-btn p-0">
                    <div class="view-details">
                        <div class="simple-tab">
                            @csrf
                            <div class="tab-content" id="myTabContent">
                                <div class="tab-pane fade show active" id="home-tab-pane" role="tabpanel" aria-labelledby="home-tab" tabindex="0">
                                    <div class="row">
                                        <form id="terms_rest_form">
                                            <div class="col-md-12">
                                            <input type="hidden" name="termRest_id" value="{{$edit_terms_rest->id}}">
                                            <input type="hidden" id="stored-terms-rest-message" value="{{ $edit_terms_rest->message }}">
                                                <div id="termsRest-quill-edit" name="termsrest_des" class="editor-quill" style="height: 300px;" minlength="10"></div>
                                                <span class="error-message" id="error-message"></span>

                                            </div>
                                            <div class="col-md-12">
                                                <button type="submit" id="update_termsrest" class="download-btn-custom mt-3 custom-width-10">
                                                    <span>Update</span>
                                                </button>
                                            </div>
                                        </form>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>



        </div>
    </div>
</div>

@endsection
@section('section_script')
<!-- <script>
    var quill = new Quill('#terms-quill-edit', {
        theme: 'snow'
    });
</script> -->
<script src="https://code.jquery.com/jquery-3.6.4.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.19.5/jquery.validate.min.js"></script>
<script src="{{ asset('public/assets/js/admin/manage_cms/manage_terms_cond/manage_terms_condition.js')}}"></script>

@endsection