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

    <h5 class="mb-3"><?php echo e(__('Terms & Condition Page Text Editor')); ?></h5>

    <div class="btn-group mt-2">
        <button type="button" class="btn ms-auto btn-dark btn-icon-only " data-bs-toggle="offcanvas" data-bs-target="#hero" aria-controls="offcanvasRight">
        <span class="btn-inner--icon">
<svg xmlns="http://www.w3.org/2000/svg" width="19" height="19" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class=" mb-2 feather feather-edit"><path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"></path><path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"></path></svg>
        </span>
        </button>
        <a href="/termsandconditions" target="_blank" type="button" class="btn btn-success btn-icon-only">
            <span class="btn-inner--icon">
                <svg xmlns="http://www.w3.org/2000/svg" width="19" height="19" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-eye"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle>
                </svg>
            </span>
        </a>

    </div>


    <div class="offcanvas offcanvas-end" tabindex="-1" id="hero" aria-labelledby="offcanvasRightLabel">
        <div class="offcanvas-header">
            <h5 id="offcanvasRightLabel"><?php echo e(__('Hero Section ')); ?></h5>
            <button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button>
        </div>
        <form action="/save-terms-section" method="post" enctype="multipart/form-data">
            <?php if($errors->any()): ?>
                <div class="alert alert-danger">
                    <ul class="list-unstyled">
                        <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <li><?php echo e($error); ?></li>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </ul>
                </div>
            <?php endif; ?>

            <div class="offcanvas-body">

                <div class="mb-3">
                    <label for="exampleFormControlInput1" class="form-label"><?php echo e(__('Title')); ?></label>
                    <input type="text" name="title" class="form-control" id="title"  value="<?php echo e($term->title ?? old('title') ?? ''); ?>">
                </div>
                <div class="form-group">
                    <label for="example-date-input" class="form-control-label">
                        <?php echo e(__('Date')); ?>


                    </label>
                    <span class="text-danger">*</span>
                    <input class="form-control"  name="date" type="date" value="<?php echo e(date('Y-m-d')); ?>" id="date"
                           <?php if(!empty($term)): ?>
                           value="<?php echo e($term->date); ?>"
                           <?php else: ?>
                           value="{date('Y/m/d')}"
                        <?php endif; ?>>
                </div>
                <div class="mb-3">
                    <label for="exampleFormControlTextarea1" class="form-label"><?php echo e(__('Privacy Policy')); ?></label>
                    <textarea class="form-control" name="description" id="privacy" rows="8"><?php echo e($term->description ?? old('description') ?? ''); ?></textarea>
                </div>
                <?php echo csrf_field(); ?>

                <?php if(!empty($term)): ?>
                    <input type="hidden" name="id" value="<?php echo e($term->id); ?>">
                <?php endif; ?>
                <div class="button-row text-left mt-4">
                    <button class="btn bg-gradient-dark ms-auto mb-0 js-btn-next" type="submit" title="Next"><?php echo e(__('Save')); ?></button>
                </div>

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

    <section class="">
        <div class="bg-pink-light position-relative">
            <img src="" class="position-absolute start-0 top-md-0 opacity-6">
            <div class="pb-lg-9  pt-7 postion-relative z-index-2">
                <div class="row mt-4">
                    <div class="col-md-8 mx-auto text-center">

                        <?php if(!empty($term)): ?>
                            <h1 class="text-dark">
                                <?php echo e($term->title); ?>

                            </h1>
                        <?php endif; ?>


                        <p class="text-muted">
                            <?php echo e(__('updated')); ?> <?php if(!empty($term)): ?>
                                <?php echo e($term->date); ?>

                            <?php endif; ?>

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

    </section>

    <section class="py-7 position-relative">

        <div id="carousel-testimonials" class="carousel slide carousel-team">
            <div class="carousel-inner">
                <div class="carousel-item active">
                    <div class="container">
                        <div class="row align-items-center">

                            <div class="col-lg-12 col-md-7 me-lg-auto position-relative">
                                <p class="mb-1">
                                    <?php if(!empty($term)): ?>
                                        <?php echo $term->description; ?>

                                    <?php endif; ?>

                                </p>

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

            </div>

        </div>
    </section>

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


<?php $__env->startSection('script'); ?>

    <script>
        "use strict";

        $(function () {

            flatpickr("#date", {

                dateFormat: "Y-m-d",
            });

        });

    </script>
    <script>

        tinymce.init({
            selector: '#privacy',
            plugins: 'table,code',
            branding: false,

        });

    </script>

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





<?php echo $__env->make('layouts.super-admin-portal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Users/sadia/Documents/valet/startup-kit/resources/views/super-admin/terms-page-editor.blade.php ENDPATH**/ ?>