
<?php $__env->startSection('title'); ?>
    <title><?php echo e(__('admin.Homepage')); ?></title>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('admin-content'); ?>
    <!-- Main Content -->
    <div class="main-content">
        <section class="section">
            <div class="section-header d-flex justify-content-between">
                <h1><?php echo e(__('admin.Homepage')); ?></h1>
                <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($homepage->translation($language->code)?->first()?->top_property_title ? 'fa-check' : 'fa-edit'); ?>"></i>
                        <a
                            href="<?php echo e(route('admin.homepage.translation', ['id' => $homepage->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.homepage.translation', ['id' => $homepage->id, 'code' => $language->code])); ?>"><?php echo e(strtoupper(config('app.locale'))); ?></a>
                    <?php endif; ?>
                </div>
            </div>

            <div class="section-body homepage_box">
                <form action="<?php echo e(route('admin.update-homepage')); ?>" method="POST" enctype="multipart/form-data">
                    <?php echo method_field('PUT'); ?>
                    <?php echo csrf_field(); ?>
                    <div class="row mt-4">
                        <div class="col">
                            <div class="card mb-3">
                                <div class="card-body">
                                    <h6><?php echo e(__('admin.Top Property')); ?></h6>
                                    <hr>
                                    <div class="form-group">
                                        <label for=""><?php echo e(__('admin.Title')); ?> <span
                                                class="text-danger">*</span></label>
                                        <input type="text" value="<?php echo e($homepage->top_property_title); ?>"
                                            name="top_property_title" class="form-control">
                                    </div>

                                    <div class="form-group">
                                        <label for=""><?php echo e(__('admin.Description')); ?> <span
                                                class="text-danger">*</span></label>
                                        <input type="text" value="<?php echo e($homepage->top_property_description); ?>"
                                            name="top_property_description" class="form-control">
                                    </div>

                                    <div class="form-group">
                                        <label for=""><?php echo e(__('admin.How many item want to show ?')); ?><span
                                                class="text-danger">*</span></label>
                                        <input type="text" value="<?php echo e($homepage->top_property_item); ?>"
                                            name="top_property_item" class="form-control">
                                    </div>

                                    <div class="form-group">
                                        <label for=""><?php echo e(__('admin.Status')); ?> <span
                                                class="text-danger">*</span></label>
                                        <select name="top_visibility" class="form-control" id="">
                                            <option <?php echo e($homepage->top_visibility == 1 ? 'selected' : ''); ?> value="1">
                                                <?php echo e(__('admin.Active')); ?></option>
                                            <option <?php echo e($homepage->top_visibility == 0 ? 'selected' : ''); ?> value="0">
                                                <?php echo e(__('admin.Inactive')); ?></option>
                                        </select>

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

                            <div class="card mb-3">
                                <div class="card-body">
                                    <h6><?php echo e(__('admin.Featured Property')); ?></h6>
                                    <hr>
                                    <div class="form-group">
                                        <label for=""><?php echo e(__('admin.Title')); ?> <span
                                                class="text-danger">*</span></label>
                                        <input type="text" value="<?php echo e($homepage->featured_property_title); ?>"
                                            name="featured_property_title" class="form-control">
                                    </div>

                                    <div class="form-group">
                                        <label for=""><?php echo e(__('admin.Description')); ?> <span
                                                class="text-danger">*</span></label>
                                        <input type="text" value="<?php echo e($homepage->featured_property_description); ?>"
                                            name="featured_property_description" class="form-control">
                                    </div>

                                    <div class="form-group">
                                        <label for=""><?php echo e(__('admin.How many item want to show ?')); ?><span
                                                class="text-danger">*</span></label>
                                        <input type="text" value="<?php echo e($homepage->featured_property_item); ?>"
                                            name="featured_property_item" class="form-control">
                                    </div>

                                    <div class="form-group">
                                        <label for=""><?php echo e(__('admin.Status')); ?> <span
                                                class="text-danger">*</span></label>
                                        <select name="featured_visibility" class="form-control" id="">
                                            <option <?php echo e($homepage->featured_visibility == 1 ? 'selected' : ''); ?>

                                                value="1"><?php echo e(__('admin.Active')); ?></option>
                                            <option <?php echo e($homepage->featured_visibility == 0 ? 'selected' : ''); ?>

                                                value="0"><?php echo e(__('admin.Inactive')); ?></option>
                                        </select>

                                    </div>

                                </div>
                            </div>

                            <div class="card mb-3">
                                <div class="card-body">
                                    <h6><?php echo e(__('admin.Urgent Property')); ?></h6>
                                    <hr>
                                    <div class="form-group">
                                        <label for=""><?php echo e(__('admin.Title')); ?> <span
                                                class="text-danger">*</span></label>
                                        <input type="text" value="<?php echo e($homepage->urgent_property_title); ?>"
                                            name="urgent_property_title" class="form-control">
                                    </div>

                                    <div class="form-group">
                                        <label for=""><?php echo e(__('admin.Description')); ?> <span
                                                class="text-danger">*</span></label>
                                        <input type="text" value="<?php echo e($homepage->urgent_property_description); ?>"
                                            name="urgent_property_description" class="form-control">
                                    </div>

                                    <div class="form-group">
                                        <label for=""><?php echo e(__('admin.How many item want to show ?')); ?><span
                                                class="text-danger">*</span></label>
                                        <input type="text" value="<?php echo e($homepage->urgent_property_item); ?>"
                                            name="urgent_property_item" class="form-control">
                                    </div>

                                    <div class="form-group">
                                        <label for=""><?php echo e(__('admin.Status')); ?> <span
                                                class="text-danger">*</span></label>
                                        <select name="urgent_visibility" class="form-control" id="">
                                            <option <?php echo e($homepage->urgent_visibility == 1 ? 'selected' : ''); ?>

                                                value="1"><?php echo e(__('admin.Active')); ?></option>
                                            <option <?php echo e($homepage->urgent_visibility == 0 ? 'selected' : ''); ?>

                                                value="0"><?php echo e(__('admin.Inactive')); ?></option>
                                        </select>

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

                            <div class="card mb-3">
                                <div class="card-body">
                                    <h6><?php echo e(__('admin.Service')); ?></h6>
                                    <hr>

                                    <div class="form-group">
                                        <label for=""><?php echo e(__('admin.Existing Image')); ?></label>
                                        <div>
                                            <img src="<?php echo e(asset($homepage->service_bg_image)); ?>" alt=""
                                                class="w_300">
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label for=""><?php echo e(__('admin.New Image')); ?> <span
                                                class="text-danger">*</span></label>
                                        <input type="file" name="service_bg_image" class="form-control-file">
                                    </div>

                                    <div class="form-group">
                                        <label for=""><?php echo e(__('admin.Title')); ?> <span
                                                class="text-danger">*</span></label>
                                        <input type="text" value="<?php echo e($homepage->service_title); ?>"
                                            name="service_title" class="form-control">
                                    </div>

                                    <div class="form-group">
                                        <label for=""><?php echo e(__('admin.Description')); ?> <span
                                                class="text-danger">*</span></label>
                                        <input type="text" value="<?php echo e($homepage->service_description); ?>"
                                            name="service_description" class="form-control">
                                    </div>

                                    <div class="form-group">
                                        <label for=""><?php echo e(__('admin.How many item want to show ?')); ?><span
                                                class="text-danger">*</span></label>
                                        <input type="text" value="<?php echo e($homepage->service_item); ?>" name="service_item"
                                            class="form-control">
                                    </div>

                                    <div class="form-group">
                                        <label for=""><?php echo e(__('admin.Status')); ?> <span
                                                class="text-danger">*</span></label>
                                        <select name="service_visibility" class="form-control" id="">
                                            <option <?php echo e($homepage->service_visibility == 1 ? 'selected' : ''); ?>

                                                value="1"><?php echo e(__('admin.Active')); ?></option>
                                            <option <?php echo e($homepage->service_visibility == 0 ? 'selected' : ''); ?>

                                                value="0"><?php echo e(__('admin.Inactive')); ?></option>
                                        </select>

                                    </div>



                                </div>
                            </div>


                            <div class="card mb-3">
                                <div class="card-body">
                                    <h6><?php echo e(__('admin.Our Agent')); ?></h6>
                                    <hr>
                                    <div class="form-group">
                                        <label for=""><?php echo e(__('admin.Title')); ?> <span
                                                class="text-danger">*</span></label>
                                        <input type="text" value="<?php echo e($homepage->agent_title); ?>" name="agent_title"
                                            class="form-control">
                                    </div>

                                    <div class="form-group">
                                        <label for=""><?php echo e(__('admin.Description')); ?> <span
                                                class="text-danger">*</span></label>
                                        <input type="text" value="<?php echo e($homepage->agent_description); ?>"
                                            name="agent_description" class="form-control">
                                    </div>

                                    <div class="form-group">
                                        <label for=""><?php echo e(__('admin.How many item want to show ?')); ?><span
                                                class="text-danger">*</span></label>
                                        <input type="text" value="<?php echo e($homepage->agent_item); ?>" name="agent_item"
                                            class="form-control">
                                    </div>

                                    <div class="form-group">
                                        <label for=""><?php echo e(__('admin.Status')); ?> <span
                                                class="text-danger">*</span></label>
                                        <select name="agent_visibility" class="form-control" id="">
                                            <option <?php echo e($homepage->agent_visibility == 1 ? 'selected' : ''); ?>

                                                value="1"><?php echo e(__('admin.Active')); ?></option>
                                            <option <?php echo e($homepage->agent_visibility == 0 ? 'selected' : ''); ?>

                                                value="0"><?php echo e(__('admin.Inactive')); ?></option>
                                        </select>

                                    </div>

                                </div>
                            </div>

                            <div class="card mb-3">
                                <div class="card-body">
                                    <h6><?php echo e(__('admin.Blog')); ?></h6>
                                    <hr>
                                    <div class="form-group">
                                        <label for=""><?php echo e(__('admin.Title')); ?> <span
                                                class="text-danger">*</span></label>
                                        <input type="text" value="<?php echo e($homepage->blog_title); ?>" name="blog_title"
                                            class="form-control">
                                    </div>

                                    <div class="form-group">
                                        <label for=""><?php echo e(__('admin.Description')); ?> <span
                                                class="text-danger">*</span></label>
                                        <input type="text" value="<?php echo e($homepage->blog_description); ?>"
                                            name="blog_description" class="form-control">
                                    </div>

                                    <div class="form-group">
                                        <label for=""><?php echo e(__('admin.How many item want to show ?')); ?><span
                                                class="text-danger">*</span></label>
                                        <input type="text" value="<?php echo e($homepage->blog_item); ?>" name="blog_item"
                                            class="form-control">
                                    </div>

                                    <div class="form-group">
                                        <label for=""><?php echo e(__('admin.Status')); ?> <span
                                                class="text-danger">*</span></label>
                                        <select name="blog_visibility" class="form-control" id="">
                                            <option <?php echo e($homepage->blog_visibility == 1 ? 'selected' : ''); ?>

                                                value="1"><?php echo e(__('admin.Active')); ?></option>
                                            <option <?php echo e($homepage->blog_visibility == 0 ? 'selected' : ''); ?>

                                                value="0"><?php echo e(__('admin.Inactive')); ?></option>
                                        </select>

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

                            <div class="card mb-3">
                                <div class="card-body">
                                    <h6><?php echo e(__('admin.Testimonial')); ?></h6>
                                    <hr>
                                    <div class="form-group">
                                        <label for=""><?php echo e(__('admin.Title')); ?> <span
                                                class="text-danger">*</span></label>
                                        <input type="text" value="<?php echo e($homepage->testimonial_title); ?>"
                                            name="testimonial_title" class="form-control">
                                    </div>

                                    <div class="form-group">
                                        <label for=""><?php echo e(__('admin.Description')); ?> <span
                                                class="text-danger">*</span></label>
                                        <input type="text" value="<?php echo e($homepage->testimonial_description); ?>"
                                            name="testimonial_description" class="form-control">
                                    </div>

                                    <div class="form-group">
                                        <label for=""><?php echo e(__('admin.How many item want to show ?')); ?><span
                                                class="text-danger">*</span></label>
                                        <input type="text" value="<?php echo e($homepage->testimonial_item); ?>"
                                            name="testimonial_item" class="form-control">
                                    </div>

                                    <div class="form-group">
                                        <label for=""><?php echo e(__('admin.Status')); ?> <span
                                                class="text-danger">*</span></label>
                                        <select name="testimonial_visibility" class="form-control" id="">
                                            <option <?php echo e($homepage->testimonial_visibility == 1 ? 'selected' : ''); ?>

                                                value="1"><?php echo e(__('admin.Active')); ?></option>
                                            <option <?php echo e($homepage->testimonial_visibility == 0 ? 'selected' : ''); ?>

                                                value="0"><?php echo e(__('admin.Inactive')); ?></option>
                                        </select>

                                    </div>

                                    <button class="btn btn-primary" type="submit"><?php echo e(__('admin.Update')); ?></button>
                                </div>
                            </div>






                        </div>
                    </div>
                </form>
        </section>
    </div>
<?php $__env->stopSection(); ?>

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