
<?php $__env->startSection('title', 'Add Testimonial'); ?>
<?php $__env->startSection('page-title', 'Add Testimonial'); ?>

<?php $__env->startSection('content'); ?>    
      <div class="content-wrapper">
            <div class="row">

<?php echo $__env->make('admin.blogs.form', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>

        </div>
              </div>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
        <script src="https://cdn.ckeditor.com/ckeditor5/41.2.0/classic/ckeditor.js"></script>
<script>
    let editorInstance;

    ClassicEditor
        .create(document.querySelector('#editor'))
        .then(editor => {
            editorInstance = editor;
        })
        .catch(error => {
            console.error(error);
        });

    // Ensure CKEditor data sync before form submit
    document.querySelector('#blogForm').addEventListener('submit', function (e) {
        document.querySelector('#editor').value = editorInstance.getData();
    });
</script>
<script>
    $(document).ready(function(){
        $('#title').on('input', function(){
            var title = $(this).val();
            var slug = title.toLowerCase()
                            .replace(/[^\w ]+/g,'')
                            .replace(/ +/g,'-');
            $('#slug').val(slug);
        });
    });
</script>

              <?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH E:\xampp2\htdocs\ayz\resources\views/admin/blogs/edit.blade.php ENDPATH**/ ?>