<?php $__env->startSection('content'); ?>
    <!-- ============================================================== -->

<div class="content-page">
    <div class="content">

          <!-- Start Content-->
          <div class="container-fluid">

            <!-- start page title -->
            <div class="row">
                <div class="col-12">
                    <div class="page-title-box">
                        <div class="page-title-right">
                            <ol class="breadcrumb m-0">
                                <a href="<?php echo e(route('testimonial.index')); ?>" class="btn btn-sm btn-dark waves-effect">
                                    <i class="dripicons-reply me-1"></i> Back To All Testimonials
                                </a>
                            </ol>
                        </div>
                        <h4 class="page-title">Add Testimonials</h4>
                    </div>
                </div>
            </div>

            <!-- end page title -->

            <div class="row">
                <div class="card">
                    <div class="card-body">
                        <form action="<?php echo e(route('testimonial.store')); ?>" method="POST" enctype="multipart/form-data" class="needs-validation" novalidate>
                            <?php echo csrf_field(); ?>
                            <div class="mb-3">
                                <label class="form-label" for="validationCustom01">Name</label>
                                <input type="text" class="form-control" name="title" id="validationCustom01" placeholder="Title" required>
                            </div>

                            

                            <div class="mb-3">
                                <label class="form-label">Description</label>
                                <textarea class="ckeditor" name="description"  placeholder="Short Description" rows="8"></textarea>
                            </div>

                            <div class="mb-3">
                                <label class="form-label" for="validationCustom05">Image</label>
                                <input type="file" id="image" name="image" class="form-control">
                                <img class="mt-2" id="img" src="<?php echo e(asset('backend/images/no_image.png')); ?>" onerror="this.onerror=null;this.src='<?php echo e(asset('backend/images/no_image.png')); ?>'" height="100px" width="100px">
                            </div>
                            <button class="btn btn-primary" type="submit">Submit</button>
                        </form>
                    </div>
                </div>
            </div>

        </div>
        <!-- container -->
    </div>
    <!-- content -->

</div>

</div>
<!-- END wrapper -->

<script>
    image.onchange = evt => {
        const [file] = image.files
        if (file) {
            img.src = URL.createObjectURL(file)
        }
    }
</script>

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

<?php echo $__env->make('backend.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\econsultancy\resources\views/backend/testimonial/create.blade.php ENDPATH**/ ?>