<?php $__env->startSection('contents'); ?>
    <div class="py-4">
        <nav aria-label="breadcrumb" class="d-none d-md-inline-block">
            <ol class="breadcrumb breadcrumb-dark breadcrumb-transparent">
                <li class="breadcrumb-item">
                    <a href="<?php echo e(route('admin.dashboard')); ?>">
                        <svg class="icon icon-xxs" fill="none" stroke="currentColor" viewBox="0 0 24 24"
                            xmlns="http://www.w3.org/2000/svg">
                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
                                d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6">
                            </path>
                        </svg>
                    </a>
                </li>
                <li class="breadcrumb-item active" aria-current="page">Home</li>
            </ol>
        </nav>
        <div class="d-flex justify-content-between w-100 flex-wrap">
            <div class="mb-3 mb-lg-0">
                <h1 class="h4">Home</h1>
                
            </div>
            <div>
                
            </div>
        </div>
    </div>

    <div class="card border-0 shadow components-section">
        <div class="card-body">
            <div class="row">
                <div class="col-lg-12 col-sm-12">
                    <form action="<?php echo e(route('home.store')); ?>" method="POST" enctype="multipart/form-data">
                        <?php echo csrf_field(); ?>

                        <div class="mb-4">
                            <label for="page_title">Page Title</label>
                            <input type="text" class="form-control <?php $__errorArgs = ['page_title'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                                name="page_title" id="page_title"
                                value="<?php echo e(old('page_title', $homeSection->page_title ?? '')); ?>" placeholder="Enter here"
                                data-bs-toggle="tooltip" title="<?php $__errorArgs = ['page_title'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <?php echo e($message); ?> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>">
                        </div>

                        <div class="mb-4">
                            <label for="section_one_heading">Section One Heading</label>
                            <input type="text" class="form-control <?php $__errorArgs = ['section_one_heading'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                                name="section_one_heading" id="section_one_heading"
                                value="<?php echo e(old('section_one_heading', $homeSection->section_one_heading ?? '')); ?>"
                                placeholder="Enter here" data-bs-toggle="tooltip"
                                title="<?php $__errorArgs = ['section_one_heading'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <?php echo e($message); ?> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>">
                        </div>

                        <div class="mb-4">
                            <label for="editordata">Section One Description</label>
                            <textarea class="summernote <?php $__errorArgs = ['editordata'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" name="editordata" data-bs-toggle="tooltip"
                                title="<?php $__errorArgs = ['editordata'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <?php echo e($message); ?> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>">  <?php echo e(old('editordata', $homeSection->section_one_description ?? '')); ?></textarea>
                        </div>

                        <div class="mb-4">
                            <label for="section_one_button_text">Section One Button Text</label>
                            <input type="text"
                                class="form-control <?php $__errorArgs = ['section_one_button_text'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                                name="section_one_button_text" id="section_one_button_text"
                                value="<?php echo e(old('section_one_button_text', $homeSection->section_one_button_text ?? '')); ?>"
                                placeholder="Enter here" data-bs-toggle="tooltip"
                                title="<?php $__errorArgs = ['section_one_button_text'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <?php echo e($message); ?> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>">
                        </div>

                        <div class="mb-4">
                            <label for="thumbnail">Section One Image</label>

                            <?php if(isset($homeSection->section_one_image)): ?>
                                <div class="mb-2">
                                    <img src="<?php echo e(asset($homeSection->section_one_image)); ?>" class="img-fluid"
                                        alt="Section One Image" style="max-width: 300px; height: 170px;">
                                </div>
                            <?php endif; ?>

                            <input type="file" name="thumbnail" id="thumbnail"
                                class="form-control <?php $__errorArgs = ['thumbnail'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" data-bs-toggle="tooltip"
                                title="<?php $__errorArgs = ['thumbnail'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <?php echo e($message); ?> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" accept="image/*">
                        </div>



                        <div class="mb-4">
                            <label for="search_filter_heading">Search Filter Heading</label>
                            <input type="text" name="search_filter_heading" id="search_filter_heading"
                                class="form-control <?php $__errorArgs = ['search_filter_heading'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                                value="<?php echo e(old('search_filter_heading', $homeSection->search_filter_heading ?? '')); ?>"
                                placeholder="Enter here" data-bs-toggle="tooltip"
                                title="<?php $__errorArgs = ['search_filter_heading'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <?php echo e($message); ?> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>">
                        </div>

                        <div class="mb-4">
                            <label for="second_section_heading">Second Section Heading</label>
                            <input type="text" name="second_section_heading" id="second_section_heading"
                                class="form-control <?php $__errorArgs = ['second_section_heading'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                                value="<?php echo e(old('second_section_heading', $homeSection->second_section_heading ?? '')); ?>"
                                placeholder="Enter here" data-bs-toggle="tooltip"
                                title="<?php $__errorArgs = ['second_section_heading'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <?php echo e($message); ?> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>">
                        </div>

                        <div class="mb-4">
                            <label for="second_section_button_text">Second Section Button Text</label>
                            <input type="text" name="second_section_button_text" id="second_section_button_text"
                                class="form-control <?php $__errorArgs = ['second_section_button_text'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                                value="<?php echo e(old('second_section_button_text', $homeSection->second_section_button_text ?? '')); ?>"
                                placeholder="Enter here" data-bs-toggle="tooltip"
                                title="<?php $__errorArgs = ['second_section_button_text'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <?php echo e($message); ?> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>">
                        </div>

                        <div class="mb-4">
                            <label for="third_section_heading">Third Section Heading</label>
                            <input type="text" name="third_section_heading" id="third_section_heading"
                                class="form-control <?php $__errorArgs = ['third_section_heading'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                                value="<?php echo e(old('third_section_heading', $homeSection->third_section_heading ?? '')); ?>"
                                placeholder="Enter here" data-bs-toggle="tooltip"
                                title="<?php $__errorArgs = ['third_section_heading'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <?php echo e($message); ?> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>">
                        </div>

                        <div class="mb-4">
                            <label for="third_section_description">Third Section Description</label>
                            <textarea name="third_section_description" id="third_section_description"
                                class="form-control <?php $__errorArgs = ['third_section_description'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" rows="4"
                                placeholder="Enter description"><?php echo e(old('third_section_description', $homeSection->third_section_description ?? '')); ?></textarea>
                        </div>

                        <div class="mb-4">
                            <label for="third_section_image">Third Section Image</label>

                            <?php if(isset($homeSection->third_section_image)): ?>
                                <div class="mb-2">
                                    <img src="<?php echo e(asset($homeSection->third_section_image)); ?>" class="img-fluid"
                                        alt="Third Section Image" style="max-width: 300px; height: 170px;">
                                </div>
                            <?php endif; ?>

                            <input type="file" name="third_section_image" id="third_section_image"
                                class="form-control" accept="image/*">
                        </div>



                        <div class="mb-4">
                            <button class="btn btn-gray-800 w-100" type="submit">Save</button>
                        </div>
                    </form>

                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>
<style>
    .dropify-wrapper .dropify-preview img {
        max-width: 100% !important;
        max-height: 170px !important;
        /* Adjust the height as needed */
        object-fit: cover !important;
    }
</style>


<script>
    var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'))
    tooltipTriggerList.map(function(tooltipTriggerEl) {
        return new bootstrap.Tooltip(tooltipTriggerEl)
    })
</script>

<?php echo $__env->make('backoffice.layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home2/gccdemo/public_html/repositories/blinddate/resources/views/backoffice/home/index.blade.php ENDPATH**/ ?>