
<?php $__env->startSection('title'); ?>
    <title><?php echo e(__('admin.Terms And Conditions')); ?></title>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('admin-content'); ?>
    <!-- Main Content -->
    <div class="main-content">
        <section class="section">
            <div class="section-header">
                <h1><?php echo e(__('admin.Terms And Conditions')); ?></h1>
                <div class="section-header-breadcrumb">
                    <div class="breadcrumb-item active"><a
                            href="<?php echo e(route('admin.dashboard')); ?>"><?php echo e(__('admin.Dashboard')); ?></a></div>
                    <div class="breadcrumb-item"><?php echo e(__('admin.Terms And Conditions')); ?></div>
                </div>
            </div>

            <div class="section-body">
                <div class="row mt-4">
                    <div class="col">
                        <div class="card">
                            <div class="card-body">
                                <form action="<?php echo e(route('admin.terms-and-condition.update', $termsAndCondition->id)); ?>"
                                    method="POST" enctype="multipart/form-data">
                                    <?php echo csrf_field(); ?>
                                    <?php echo method_field('PUT'); ?>
                                    <div class="row">
                                        <div class="form-group col-12">
                                            <div class="d-flex justify-content-between pb-2">
                                                <label><?php echo e(__('admin.Terms And Conditions')); ?><span
                                                        class="text-danger">*</span></label>
                                                <div>
                                                    <p><?php echo e(__('admin.Translations')); ?></p>
                                                    <?php $__empty_1 = true; $__currentLoopData = $languages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $language): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                                        <i
                                                            class="fa <?php echo e($termsAndCondition->translation($language->code)?->first()?->terms_and_condition ? 'fa-check' : 'fa-edit'); ?>"></i>
                                                        <a
                                                            href="<?php echo e(route('admin.terms-and-condition.translation', ['id' => $termsAndCondition->id, 'code' => $language->code])); ?>"><?php echo e(strtoupper($language->code)); ?></a>
                                                        <?php if(!$loop->last): ?>
                                                            ||
                                                        <?php endif; ?>
                                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                                        <a
                                                            href="<?php echo e(route('admin.terms-and-condition.translation', ['id' => $termsAndCondition->id, 'code' => $language->code])); ?>"><?php echo e(strtoupper(config('app.locale'))); ?></a>
                                                    <?php endif; ?>
                                                </div>
                                            </div>
                                            <textarea name="terms_and_condition" cols="30" rows="10" class="summernote"><?php echo e($termsAndCondition->terms_and_condition); ?></textarea>
                                        </div>

                                    </div>
                                    <div class="row">
                                        <div class="col-12">
                                            <button class="btn btn-primary"><?php echo e(__('admin.Update')); ?></button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
        </section>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.master_layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/fwvrhhfw/topriserealtors.com/resources/views/admin/terms_and_condition.blade.php ENDPATH**/ ?>