<?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">Preferences</li>
            </ol>
        </nav>
        <div class="d-flex justify-content-between w-100 flex-wrap">
            <div class="mb-3 mb-lg-0">
                <h1 class="h4">Preferences</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('preferences.store')); ?>" method="POST" enctype="multipart/form-data">
                        <?php echo csrf_field(); ?>

                        <div class="mb-3">
                            <label for="header_logo">Header Logo</label>

                            <?php if(isset($preference->header_logo)): ?>
                                <div class="mb-2">
                                    <img src="<?php echo e(asset($preference->header_logo)); ?>" class="img-fluid" alt="Header Logo"
                                        style="max-width: 200px; height: 120px;">
                                </div>
                            <?php endif; ?>

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


                        <div class="mb-3">
                            <label for="footer_logo">Footer Logo</label>

                            <?php if(isset($preference->footer_logo)): ?>
                                <div class="mb-2">
                                    <img src="<?php echo e(asset($preference->footer_logo)); ?>" class="img-fluid" alt="Footer Logo"
                                        style="max-width: 200px; height: 120px;">
                                </div>
                            <?php endif; ?>

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


                        <div class="mb-3">
                            <label>Facebook</label>
                            <input type="text" class="form-control" name="facebook"
                                value="<?php echo e(old('facebook', $preference->facebook ?? '')); ?>">
                        </div>

                        <div class="mb-3">
                            <label>Instagram</label>
                            <input type="text" class="form-control" name="instagram"
                                value="<?php echo e(old('instagram', $preference->instagram ?? '')); ?>">
                        </div>

                        <div class="mb-3">
                            <label>YouTube</label>
                            <input type="text" class="form-control" name="youtube"
                                value="<?php echo e(old('youtube', $preference->youtube ?? '')); ?>">
                        </div>

                        <div class="mb-3">
                            <label>Email Address</label>
                            <input type="email" class="form-control" name="Email_address"
                                value="<?php echo e(old('Email_address', $preference->Email_address ?? '')); ?>">
                        </div>

                        <div class="mb-3">
                            <label>Footer Description</label>
                            <textarea class="form-control" name="footer_discription" rows="3"><?php echo e(old('footer_discription', $preference->footer_discription ?? '')); ?></textarea>
                        </div>
                        <div class="mb-3">
                            <label>Copy Right Text</label>
                            <textarea class="form-control" name="copy_right_text" rows="3"><?php echo e(old('copy_right', $preference->copy_right_text ?? '')); ?></textarea>
                        </div>
                        <div class="row">
                            <div class="col-lg-6">
                                <div class="mb-3">
                                    <label>Free Subcription Heading </label>
                                    <input type="text" class="form-control" name="subcription_heading_free"
                                        value="<?php echo e(old('subcription_heading_free', $preference->subcription_heading_free ?? '')); ?>">
                                </div>
                            </div>
                            <div class="col-lg-6">
                                <div class="mb-3">
                                    <label> Free Subcription Sub Heading </label>
                                    <input type="text" class="form-control" name="subcription_sub_heading_free"
                                        value="<?php echo e(old('subcription_sub_heading_free', $preference->subcription_sub_heading_free ?? '')); ?>">
                                </div>
                            </div>

                            <div class="col-lg-6">
                                <div class="mb-3">
                                    <label>Free Subcription Description </label>
                                    <textarea class="form-control" name="subcription_description_free" rows="3"><?php echo e(old('subcription_description_free', $preference->subcription_description_free ?? '')); ?></textarea>
                                </div>
                            </div>
                            <div class="col-lg-6">
                                <div class="mb-3">
                                    <label>Subcription Duration Free</label>
                                    <input type="number" class="form-control" name="subcription_duration_free"
                                        value="<?php echo e(old('subcription_duration_free', $preference->subcription_duration_free ?? '')); ?>">
                                </div>
                            </div>
                            <div class="col-lg-6">
                                <div class="mb-3">
                                    <label>Paid Subcription Heading</label>
                                    <input type="text" class="form-control" name="subcription_heading"
                                        value="<?php echo e(old('subcription_heading', $preference->subcription_heading ?? '')); ?>">
                                </div>
                            </div>
                            <div class="col-lg-6">
                                <div class="mb-3">
                                    <label>Paid Subcription Sub Heading</label>
                                    <input type="text" class="form-control" name="subcription_sub_heading"
                                        value="<?php echo e(old('subcription_sub_heading', $preference->subcription_sub_heading ?? '')); ?>">
                                </div>
                            </div>
                            <div class="col-lg-6">
                                <div class="mb-3">
                                    <label>Paid Subcription Description</label>
                                    <textarea class="form-control" name="subcription_description" rows="3"><?php echo e(old('subcription_description', $preference->subcription_description ?? '')); ?></textarea>
                                </div>
                            </div>
                            <div class="col-lg-6">
                                <div class="mb-3">
                                    <label>Paid Subcription Duration</label>
                                    <input type="number" class="form-control" name="subcription_duration"
                                        value="<?php echo e(old('subcription_duration', $preference->subcription_duration ?? '')); ?>">
                                </div>
                            </div>
                        </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/preferences/index.blade.php ENDPATH**/ ?>