Файловый менеджер - Редактировать - /home/c7lekhnath/silverray.com.au/storage/framework/views/00f895e55fe2ad4fc74a41897689fa2c.php
Назад
<?php $__env->startSection('title'); ?> <title><?php echo e($property->seo_title); ?></title> <?php $__env->stopSection(); ?> <?php $__env->startSection('meta'); ?> <meta name="description" content="<?php echo e($property->seo_description); ?>"> <?php $__env->stopSection(); ?> <?php $__env->startSection('frontend-content'); ?> <!--===BREADCRUMB PART START====--> <section class="wsus__breadcrumb" style="background: url(<?php echo e($property->banner_image ? asset($property->banner_image) : ''); ?>);"> <div class="wsus_bread_overlay"> <div class="container"> <div class="row"> <div class="col-12 text-center"> <h4><?php echo e(__('Our Property')); ?></h4> <nav style="--bs-breadcrumb-divider: '-';" aria-label="breadcrumb"> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="<?php echo e(route('home')); ?>"><?php echo e(__('Home')); ?></a></li> <li class="breadcrumb-item active" aria-current="page"><?php echo e(__('Our property')); ?></li> </ol> </nav> </div> </div> </div> </div> </section> <!--===BREADCRUMB PART END====--> <!--=====PROPERTY DETAILD START=====--> <section class="wsus__property_details mt_45 mb_20"> <div class="container"> <div class="row pro_det_slider"> <?php $__currentLoopData = $property->propertyImages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $imag_item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="col-12"> <div class="pro_det_slider_item"> <img src="<?php echo e(url($imag_item->image)); ?>" alt="property" class="img-fluid w-100" loading="lazy"> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> <div class="row mt_40"> <div class="col-xl-8 col-lg-7"> <div class="wsus__property_det_content"> <div class="row"> <div class="col-12"> <div class="wsus__single_details pb-sm-2"> <div class="wsus__single_det_top d-flex justify-content-between"> <p> <span class="sale"><?php echo e($property->propertyPurpose->translation?->title); ?></span> <?php if($property->urgent_property == 1): ?> <span class="rent"><?php echo e(__('Urgent')); ?></span> <?php endif; ?> </p> <?php if($property->property_purpose_id == 1): ?> <span class="tk"><?php echo e(currency($property->price)); ?></span> <?php elseif($property->property_purpose_id == 2): ?> <span class="tk"><?php echo e(currency($property->price)); ?> / <?php if($property->period == 'Daily'): ?> <span><?php echo e(__('Daily')); ?></span> <?php elseif($property->period == 'Monthly'): ?> <span><?php echo e(__('Monthly')); ?></span> <?php elseif($property->period == 'Yearly'): ?> <span><?php echo e(__('Yearly')); ?></span> <?php endif; ?> </span> <?php endif; ?> </div> <h4><?php echo e($property->translation?->title); ?></h4> <?php $total_review = $property->reviews->where('status', 1)->count(); if ($total_review > 0) { $avg_sum = $property->reviews->where('status', 1)->sum('avarage_rating'); $avg = $avg_sum / $total_review; $intAvg = intval($avg); $nextVal = $intAvg + 1; $reviewPoint = $intAvg; $halfReview = false; if ($intAvg < $avg && $avg < $nextVal) { $reviewPoint = $intAvg + 0.5; $halfReview = true; } } ?> <?php if($total_review > 0): ?> <p class="wsus__pro_det_top_rating"> <?php for($i = 1; $i <= 5; $i++): ?> <?php if($i <= $reviewPoint): ?> <i class="fas fa-star"></i> <?php elseif($i > $reviewPoint): ?> <?php if($halfReview == true): ?> <i class="fas fa-star-half-alt"></i> <?php $halfReview = false; ?> <?php else: ?> <i class="fal fa-star"></i> <?php endif; ?> <?php endif; ?> <?php endfor; ?> <span><?php echo e(sprintf('%.1f', $reviewPoint)); ?></span> </p> <?php else: ?> <p class="wsus__pro_det_top_rating"> <i class="fas fa-star"></i> <i class="fas fa-star"></i> <i class="fas fa-star"></i> <i class="fas fa-star"></i> <i class="fas fa-star-half-alt"></i> <span>0.0</span> </p> <?php endif; ?> <p> <?php echo e($property->translation?->address); ?> <?php if($property->city): ?> , <?php echo e($property->city?->title); ?> <?php endif; ?> </p> <ul class="item d-flex flex-wrap mt-3"> <li><i class="fal fa-bed"></i> <?php echo e($property->number_of_bedroom); ?> <?php echo e(__('Bed')); ?></li> <li><i class="fal fa-shower"></i> <?php echo e($property->number_of_bathroom); ?> <?php echo e(__('Bath')); ?></li> <li><i class="fal fa-draw-square"></i> <?php echo e($property->area); ?> <?php echo e(__('Sqft')); ?> </li> </ul> <ul class="list d-flex flex-wrap"> <?php if($property->is_featured == 1): ?> <li><a href="javascript:;"><i class="fas fa-check-circle"></i><?php echo e(__('Featured')); ?></a></li> <?php endif; ?> <li><a href="javascript:;"><i class="far fa-eye"></i> <?php echo e($property->views); ?></a> </li> <li><a href="#addReviewSection"><i class="fal fa-comment-alt-dots"></i> <?php echo e(__('Add Review')); ?></a></li> <?php if(Auth::guard('web')->check()): ?> <li><a href="javascript:;" class="is_wishlist<?php echo e($property->id); ?>" onclick="addWishlist(<?php echo e($property->id); ?>)"> <i class="exist_wishlist <?php echo e($property->wishlist ? 'fas fa-heart' : 'far fa-heart'); ?>" id="wishlist_fa_heart"></i> <i class="fa fa-spin fa-spinner d-none" id="wishlist_fa_spinner"></i> <span id="wishlist_text"><?php echo e($property->wishlist ? __('Added to Wishlist') : __('Add to Wishlist')); ?></span></a> </li> <?php else: ?> <li><a href="javascript:;" class="is_wishlist<?php echo e($property->id); ?>" onclick="addWishlist(<?php echo e($property->id); ?>)"> <i class="far fa-heart" id="wishlist_fa_heart"></i> <i class="fa fa-spin fa-spinner d-none" id="wishlist_fa_spinner"></i> <span id="wishlist_text"><?php echo e(__('Add to Wishlist')); ?></span></a></li> <?php endif; ?> </ul> </div> </div> <div class="col-12"> <div class="wsus__single_details details_future"> <h5><?php echo e(__('Details & Features')); ?></h5> <div class="details_futurr_single"> <div class="row"> <div class="col-md-6"> <table class="table"> <tbody> <tr> <th><?php echo e(__('Property ID')); ?>:</th> <td><?php echo e($property->property_search_id); ?></td> </tr> <tr> <th><?php echo e(__('Property Type')); ?>:</th> <td><?php echo e($property->propertyType->translation?->title); ?></td> </tr> <tr> <th> <?php echo e(__('Area')); ?>:</th> <td><?php echo e($property->area); ?> <?php echo e(__('Sqft')); ?></td> </tr> <tr> <th><?php echo e(__('Bedrooms')); ?>:</th> <td><?php echo e($property->number_of_bedroom); ?></td> </tr> <tr> <th><?php echo e(__('Bathrooms')); ?>:</th> <td><?php echo e($property->number_of_bathroom); ?></td> </tr> </tbody> </table> </div> <div class="col-md-6"> <table class="table xs_sm_mb"> <tbody> <tr> <th><?php echo e(__('Rooms')); ?>:</th> <td><?php echo e($property->number_of_room); ?></td> </tr> <tr> <th><?php echo e(__('Units')); ?>:</th> <td><?php echo e($property->number_of_unit); ?></td> </tr> <tr> <th> <?php echo e(__('Floors')); ?>:</th> <td><?php echo e($property->number_of_floor); ?></td> </tr> <tr> <th><?php echo e(__('Kitchens')); ?>:</th> <td><?php echo e($property->number_of_kitchen ? $property->number_of_kitchen : 0); ?></td> </tr> <tr> <th><?php echo e(__('Parking Place')); ?>:</th> <td><?php echo e($property->number_of_parking ? $property->number_of_parking : 0); ?></td> </tr> </tbody> </table> </div> </div> </div> </div> </div> <div class="col-12"> <div class="wsus__single_details details_description"> <h5><?php echo e(__('Description')); ?></h5> <?php echo clean($property->translation?->description); ?> <?php if($property->file): ?> <a id="downloadLink" href="javascript:;" class="common_btn mt_20"><?php echo e(__('Download PDF')); ?></a> <?php endif; ?> </div> </div> <?php if($property->video_link): ?> <div class="col-12"> <div class="wsus__single_details details_videos pb_10"> <h5><?php echo e(__('Property Video')); ?></h5> <iframe width="560" height="315" src="https://www.youtube.com/embed/<?php echo e($property->video_link); ?>" title="YouTube video player" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> </div> </div> <?php endif; ?> <?php if($property->propertyAminities->count() != 0): ?> <div class="col-12"> <div class="wsus__single_details details_aminities pb_10"> <h5><?php echo e(__('Amenities')); ?></h5> <ul class="d-flex flex-wrap"> <?php $__currentLoopData = $property->propertyAminities; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $aminity): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <li><i class="fal fa-check"></i> <?php echo e($aminity->translation?->title); ?></li> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </ul> </div> </div> <?php endif; ?> <?php if($property->propertyNearestLocations->count() != 0): ?> <div class="col-12"> <div class="wsus__single_details details_nearest_location pb_10"> <h5><?php echo e(__('Nearest Place')); ?></h5> <ul class="d-flex flex-wrap"> <?php $__currentLoopData = $property->propertyNearestLocations; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $propertyNearestLocation): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <li><span><?php echo e($propertyNearestLocation->nearestLocation?->translation?->title); ?>:</span> <?php echo e($propertyNearestLocation->distance); ?><?php echo e(__('KM')); ?></li> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </ul> </div> </div> <?php endif; ?> <?php if($property->google_map_embed_code): ?> <div class="col-12"> <div class="wsus__single_details details_map"> <?php echo $property->google_map_embed_code; ?> </div> </div> <?php endif; ?> <div class="col-12"> <div class="wsus__share_blog"> <p><?php echo e(__('Share')); ?>:</p> <ul> <li><a class="facebook" href="https://www.facebook.com/sharer/sharer.php?u=<?php echo e(route('property.details', $property->slug)); ?>&t=<?php echo e($property->title); ?>"><i class="fab fa-facebook-f"></i></a></li> <li><a class="twitter" href="https://twitter.com/share?text=<?php echo e($property->title); ?>&url=<?php echo e(route('property.details', $property->slug)); ?>"><i class="fab fa-twitter"></i></a></li> <li><a class="linkedin" href="https://www.linkedin.com/shareArticle?mini=true&url=<?php echo e(route('property.details', $property->slug)); ?>&title=<?php echo e($property->title); ?>"><i class="fab fa-linkedin-in"></i></a></li> <li><a class="pinterest" href="https://www.pinterest.com/pin/create/button/?description=<?php echo e($property->title); ?>&media=&url=<?php echo e(route('property.details', $property->slug)); ?>"><i class="fab fa-pinterest-p"></i></a></li> <li> <a href="mailto:?body=<?php echo e(route('property.details', $property->slug)); ?>" class="fab fa-google" target="_blank"></a> </li> </ul> </div> </div> <?php $total_review = $property->reviews->where('status', 1)->count(); if ($total_review > 0) { $avg_sum = $property->reviews->where('status', 1)->sum('avarage_rating'); $service_sum = $property->reviews->where('status', 1)->sum('service_rating'); $service_avg = $service_sum / $total_review; $service_progress = ($service_avg * 100) / 5; $location_sum = $property->reviews->where('status', 1)->sum('location_rating'); $location_avg = $location_sum / $total_review; $location_progress = ($location_avg * 100) / 5; $money_sum = $property->reviews->where('status', 1)->sum('money_rating'); $money_avg = $money_sum / $total_review; $money_progress = ($money_avg * 100) / 5; $clean_sum = $property->reviews->where('status', 1)->sum('clean_rating'); $clean_avg = $clean_sum / $total_review; $clean_progress = ($clean_avg * 100) / 5; $avg = $avg_sum / $total_review; $intAvg = intval($avg); $nextVal = $intAvg + 1; $reviewPoint = $intAvg; $halfReview = false; if ($intAvg < $avg && $avg < $nextVal) { $reviewPoint = $intAvg + 0.5; $halfReview = true; } } ?> <?php if($total_review > 0): ?> <div class="col-12"> <div class="wsus__total_review wsus__single_details"> <h5><?php echo e($total_review); ?> <?php echo e(__('Review')); ?></h5> <?php $__currentLoopData = $propertyReviews; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $review_item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="wsus__single_comment"> <div class="wsus__comm_img"> <img src="<?php echo e($review_item->user->image ? url($review_item->user->image) : url($setting->default_avatar)); ?>" alt="comment img" class="img-fluid img-thumbnail" loading="lazy"> </div> <div class="wsus__comm_text"> <?php $avg = $review_item->avarage_rating; $intAvg = intval($avg); $nextVal = $intAvg + 1; $reviewPoint = $intAvg; $halfReview = false; if ($intAvg < $avg && $avg < $nextVal) { $reviewPoint = $intAvg + 0.5; $halfReview = true; } ?> <p class="wsus__rev_star"> <?php for($i = 1; $i <= 5; $i++): ?> <?php if($i <= $reviewPoint): ?> <i class="fas fa-star"></i> <?php elseif($i > $reviewPoint): ?> <?php if($halfReview == true): ?> <i class="fas fa-star-half-alt"></i> <?php $halfReview = false; ?> <?php else: ?> <i class="fal fa-star"></i> <?php endif; ?> <?php endif; ?> <?php endfor; ?> </p> <h4><?php echo e($review_item->user->name); ?></h4> <span><?php echo e($review_item->created_at->format('d M Y')); ?></span> <p><?php echo e($review_item->comment); ?></p> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php echo e($propertyReviews->links('custom_paginator')); ?> </div> </div> <?php endif; ?> <div class="col-12" id="addReviewSection"> <div class="wsus__single_details details_review"> <h5><?php echo e(__('Write A Review')); ?></h5> <form action="<?php echo e(route('user.store-review')); ?>" method="POST"> <?php echo csrf_field(); ?> <div class="row"> <div class="col-xl-7 col-md-6 col-lg-12"> <div class="wsus__select_review"> <ul> <li><span><?php echo e(__('Service')); ?> :</span> <i class="service_rat fas fa-star" data-service_rating="1" onclick="serviceReview(1)"></i> <i class="service_rat fas fa-star" data-service_rating="2" onclick="serviceReview(2)"></i> <i class="service_rat fas fa-star" data-service_rating="3" onclick="serviceReview(3)"></i> <i class="service_rat fas fa-star" data-service_rating="4" onclick="serviceReview(4)"></i> <i class="service_rat fas fa-star" data-service_rating="5" onclick="serviceReview(5)"></i> </li> <li><span><?php echo e(__('Location')); ?> :</span> <i class="location_rat fas fa-star" data-location_rating="1" onclick="locationReview(1)"></i> <i class="location_rat fas fa-star" data-location_rating="2" onclick="locationReview(2)"></i> <i class="location_rat fas fa-star" data-location_rating="3" onclick="locationReview(3)"></i> <i class="location_rat fas fa-star" data-location_rating="4" onclick="locationReview(4)"></i> <i class="location_rat fas fa-star" data-location_rating="5" onclick="locationReview(5)"></i> </li> <li><span><?php echo e(__('Value for Money')); ?> :</span> <i class="money_rat fas fa-star" data-money_rating="1" onclick="moneyReview(1)"></i> <i class="money_rat fas fa-star" data-money_rating="2" onclick="moneyReview(2)"></i> <i class="money_rat fas fa-star" data-money_rating="3" onclick="moneyReview(3)"></i> <i class="money_rat fas fa-star" data-money_rating="4" onclick="moneyReview(4)"></i> <i class="money_rat fas fa-star" data-money_rating="5" onclick="moneyReview(5)"></i> </li> <li><span><?php echo e(__('Cleanliness')); ?> :</span> <i class="clean_rat fas fa-star" data-clean_rating="1" onclick="cleanReview(1)"></i> <i class="clean_rat fas fa-star" data-clean_rating="2" onclick="cleanReview(2)"></i> <i class="clean_rat fas fa-star" data-clean_rating="3" onclick="cleanReview(3)"></i> <i class="clean_rat fas fa-star" data-clean_rating="4" onclick="cleanReview(4)"></i> <i class="clean_rat fas fa-star" data-clean_rating="5" onclick="cleanReview(5)"></i> </li> </ul> </div> </div> <div class="col-xl-5 col-md-6 col-lg-12"> <div class="wsus__total_rating"> <h3 id="avg_rating">5</h3> <span><?php echo e(__('Out Of 5.0')); ?></span> <p><?php echo e(__('Average Rating')); ?></p> </div> </div> <div class="col-12"> <textarea cols="3" rows="5" placeholder="<?php echo e(__('Comment')); ?>" name="comment"></textarea> <?php if($setting->recaptcha_status == 'active'): ?> <p class="g-recaptcha mb-3 mt-3" data-sitekey="<?php echo e($setting->recaptcha_site_key); ?>"></p> <?php endif; ?> <input type="hidden" name="service_rating" id="service_rating" value="5"> <input type="hidden" name="location_rating" id="location_rating" value="5"> <input type="hidden" name="money_rating" id="money_rating" value="5"> <input type="hidden" name="clean_rating" id="clean_rating" value="5"> <input type="hidden" name="avarage_rating" id="avarage_rating" value="5"> <input type="hidden" name="property_id" id="property_id" value="<?php echo e($property->id); ?>"> <?php if(auth()->guard('web')->check()): ?> <?php $activeUser = Auth::guard('web')->user(); $isExistReview = Modules\Property\app\Models\PropertyReview::where( [ 'user_id' => $activeUser->id, 'property_id' => $property->id, ], )->count(); ?> <?php if($activeUser->id != $property->user_id): ?> <?php if($isExistReview): ?> <p class="worning"><?php echo e(__('Review already submitted')); ?> </p> <?php else: ?> <button type="submit" class="common_btn"><?php echo e(__('Submit')); ?></button> <?php endif; ?> <?php endif; ?> <?php else: ?> <p class="worning"><a href="<?php echo e(route('login')); ?>" class="text-danger"><?php echo e(__('Please Login To Write Review.')); ?></a> </p> <?php endif; ?> </div> </div> </form> </div> </div> </div> </div> </div> <div class="col-xl-4 col-lg-5"> <div class="wsus__property_sidebar" id="sticky_sidebar"> <div class="wsus__sidebar_message border-0 mb-0"> <?php if($property->user_type == 1): ?> <div class="wsus__sidebar_message_top top_bg"> <div class="wsus__sidebar_message_top"> <?php if($property->admin): ?> <img src="<?php echo e($property->admin->image ? url($property->admin->image) : url($setting->default_avatar)); ?>" alt="images" class="img-fluid img-thumbnail" loading="lazy"> <?php else: ?> <img src="<?php echo e(asset($setting->default_avatar)); ?>" alt="images" class="img-fluid img-thumbnail" loading="lazy"> <?php endif; ?> <a class="name" href="<?php echo e(route('agent.show', ['user_type' => '1', 'user_name' => $property->admin->user_name])); ?>"><?php echo e($property->admin->name); ?></a> <a class="mail" href="mailto:<?php echo e($property->admin->email); ?>"><i class="fal fa-envelope-open"></i> <?php echo e($property->admin->email); ?></a> </div> <?php else: ?> <div class="wsus__sidebar_message_top"> <img src="<?php echo e($property->user->image ? asset($property->user->image) : asset($setting->default_avatar)); ?>" alt="images" class="img-fluid img-thumbnail" loading="lazy"> <a class="name" href="<?php echo e(route('agent.show', ['user_type' => '2', 'user_name' => $property->user->slug])); ?>"><?php echo e($property->user->name); ?></a> <a class="mail" href="mailto:<?php echo e($property->user->email); ?>"><i class="fal fa-envelope-open"></i> <?php echo e($property->user->email); ?></a> </div> <?php endif; ?> <form id="listingAuthContactForm"> <?php echo csrf_field(); ?> <div class="wsus__sidebar_input"> <label><?php echo e(__('Name')); ?></label> <input type="text" name="name"> </div> <div class="wsus__sidebar_input"> <label><?php echo e(__('Email')); ?></label> <input type="email" name="email"> </div> <div class="wsus__sidebar_input"> <label><?php echo e(__('Phone')); ?></label> <input type="text" name="phone"> </div> <div class="wsus__sidebar_input"> <label><?php echo e(__('Subject')); ?></label> <input type="text" name="subject"> </div> <div class="wsus__sidebar_input"> <label><?php echo e(__('Description')); ?></label> <textarea cols="3" rows="3" name="message"></textarea> <input type="hidden" name="user_type" value="<?php echo e($property->user_type); ?>"> <input type="hidden" name="property_name" value="<?php echo e($property->translation?->title); ?>"> <?php if($property->user_type == 1): ?> <input type="hidden" name="admin_id" value="<?php echo e($property->admin_id); ?>"> <?php else: ?> <input type="hidden" name="user_id" value="<?php echo e($property->user_id); ?>"> <?php endif; ?> <?php if($setting->recaptcha_status == 'active'): ?> <p class="g-recaptcha mt-3" data-sitekey="<?php echo e($setting->recaptcha_site_key); ?>"> </p> <?php endif; ?> <button type="submit" id="listingAuthorContctBtn" class="common_btn"><i id="listcontact-spinner" class="loading-icon fa fa-spin fa-spinner d-none mr-5"></i> <?php echo e(__('Send Message')); ?></button> </div> </form> </div> <?php $isActivePropertyQty = 0; foreach ($similarProperties as $value) { if ($value->expired_date == null) { $isActivePropertyQty += 1; } elseif ($value->expired_date >= date('Y-m-d')) { $isActivePropertyQty += 1; } } ?> <?php if($isActivePropertyQty != 0): ?> <div class="row"> <?php $__currentLoopData = $similarProperties; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $similar_item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="col-xl-12 col-md-6 col-lg-12"> <div class="wsus__single_property"> <div class="wsus__single_property_img"> <img src="<?php echo e(asset($similar_item->thumbnail_image)); ?>" alt="properties" class="img-fluid w-100" loading="lazy"> <?php if($similar_item->property_purpose_id == 1): ?> <span class="sale"><?php echo e($similar_item->propertyPurpose->translation->title); ?></span> <?php elseif($similar_item->property_purpose_id == 2): ?> <span class="sale"><?php echo e($similar_item->propertyPurpose->translation->title); ?></span> <?php endif; ?> <?php if($similar_item->urgent_property == 1): ?> <span class="rent"><?php echo e(__('Urgent')); ?></span> <?php endif; ?> </div> <div class="wsus__single_property_text"> <?php if($similar_item->property_purpose_id == 1): ?> <span class="tk"><?php echo e(currency($similar_item->price)); ?></span> <?php elseif($similar_item->property_purpose_id == 2): ?> <span class="tk"><?php echo e(currency($similar_item->price)); ?> / <?php if($similar_item->period == 'Daily'): ?> <span><?php echo e(__('Daily')); ?></span> <?php elseif($similar_item->period == 'Monthly'): ?> <span><?php echo e(__('Monthly')); ?></span> <?php elseif($similar_item->period == 'Yearly'): ?> <span><?php echo e(__('Yearly')); ?></span> <?php endif; ?> </span> <?php endif; ?> <a href="<?php echo e(route('property.details', $similar_item->slug)); ?>" class="title w-100"><?php echo e($similar_item->translation->title); ?></a> <ul class="d-flex flex-wrap justify-content-between"> <li><i class="fal fa-bed"></i> <?php echo e($similar_item->number_of_bedroom); ?> <?php echo e(__('Bed')); ?> </li> <li><i class="fal fa-shower"></i> <?php echo e($similar_item->number_of_bathroom); ?> <?php echo e(__('Bath')); ?> </li> <li><i class="fal fa-draw-square"></i> <?php echo e($similar_item->area); ?> <?php echo e(__('Sqft')); ?></li> </ul> <div class="wsus__single_property_footer d-flex justify-content-between align-items-center"> <a href="<?php echo e(route('search-property', ['page_type' => 'list_view', 'property_type' => $similar_item->propertyType->id])); ?>" class="category"><?php echo e($similar_item->propertyType->translation->title); ?></a> <?php $total_review = $similar_item->reviews ->where('status', 1) ->count(); if ($total_review > 0) { $avg_sum = $similar_item->reviews ->where('status', 1) ->sum('avarage_rating'); $avg = $avg_sum / $total_review; $intAvg = intval($avg); $nextVal = $intAvg + 1; $reviewPoint = $intAvg; $halfReview = false; if ($intAvg < $avg && $avg < $nextVal) { $reviewPoint = $intAvg + 0.5; $halfReview = true; } } ?> <?php if($total_review > 0): ?> <span class="rating"><?php echo e(sprintf('%.1f', $reviewPoint)); ?> <?php for($i = 1; $i <= 5; $i++): ?> <?php if($i <= $reviewPoint): ?> <i class="fas fa-star"></i> <?php elseif($i > $reviewPoint): ?> <?php if($halfReview == true): ?> <i class="fas fa-star-half-alt"></i> <?php $halfReview = false; ?> <?php else: ?> <i class="fal fa-star"></i> <?php endif; ?> <?php endif; ?> <?php endfor; ?> </span> <?php else: ?> <span class="rating">0.0 <?php for($i = 1; $i <= 5; $i++): ?> <i class="fal fa-star"></i> <?php endfor; ?> </span> <?php endif; ?> </div> </div> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> <?php endif; ?> </div> </div> </div> </div> </section> <!--=====PROPERTY DETAILD END=====--> <form id="downloadForm" action="<?php echo e(route('download-listing-file')); ?>" method="POST" style="display: none;"> <?php echo csrf_field(); ?> <input type="hidden" name="id" value="<?php echo e($property->id); ?>"> </form> <script> (function($) { "use strict"; $(document).ready(function() { $("#listingAuthorContctBtn").on('click', function(e) { e.preventDefault(); $("#listcontact-spinner").removeClass('d-none') $("#listingAuthorContctBtn").addClass('custom-opacity') $("#listingAuthorContctBtn").attr('disabled', true); $("#listingAuthorContctBtn").removeClass('site-btn-effect') $.ajax({ url: "<?php echo e(route('send-agent-contact-message')); ?>", type: "post", data: $('#listingAuthContactForm').serialize(), success: function(response) { if (response.success) { $("#listingAuthContactForm").trigger("reset"); toastr.success(response.success) $("#listcontact-spinner").addClass('d-none') $("#listingAuthorContctBtn").removeClass('custom-opacity') $("#listingAuthorContctBtn").attr('disabled', false); $("#listingAuthorContctBtn").addClass('site-btn-effect') } if (response.error) { toastr.error(response.error) $("#listcontact-spinner").addClass('d-none') $("#listingAuthorContctBtn").removeClass('custom-opacity') $("#listingAuthorContctBtn").attr('disabled', false); $("#listingAuthorContctBtn").addClass('site-btn-effect') } }, error: function(response) { if (response.responseJSON.errors.name) { $("#listcontact-spinner").addClass('d-none') $("#listingAuthorContctBtn").removeClass('custom-opacity') $("#listingAuthorContctBtn").attr('disabled', false); $("#listingAuthorContctBtn").addClass('site-btn-effect') toastr.error(response.responseJSON.errors.name[0]) } if (response.responseJSON.errors.email) { toastr.error(response.responseJSON.errors.email[0]) $("#listcontact-spinner").addClass('d-none') $("#listingAuthorContctBtn").removeClass('custom-opacity') $("#listingAuthorContctBtn").attr('disabled', false); $("#listingAuthorContctBtn").addClass('site-btn-effect') } if (response.responseJSON.errors.phone) { toastr.error(response.responseJSON.errors.phone[0]) $("#listcontact-spinner").addClass('d-none') $("#listingAuthorContctBtn").removeClass('custom-opacity') $("#listingAuthorContctBtn").attr('disabled', false); $("#listingAuthorContctBtn").addClass('site-btn-effect') } if (response.responseJSON.errors.subject) { toastr.error(response.responseJSON.errors.subject[0]) $("#listcontact-spinner").addClass('d-none') $("#listingAuthorContctBtn").removeClass('custom-opacity') $("#listingAuthorContctBtn").attr('disabled', false); $("#listingAuthorContctBtn").addClass('site-btn-effect') } if (response.responseJSON.errors.message) { toastr.error(response.responseJSON.errors.message[0]) $("#listcontact-spinner").addClass('d-none') $("#listingAuthorContctBtn").removeClass('custom-opacity') $("#listingAuthorContctBtn").attr('disabled', false); $("#listingAuthorContctBtn").addClass('site-btn-effect') } else { toastr.error( 'Please Complete the recaptcha to submit the form') $("#listcontact-spinner").addClass('d-none') $("#listingAuthorContctBtn").removeClass('custom-opacity') $("#listingAuthorContctBtn").attr('disabled', false); $("#listingAuthorContctBtn").addClass('site-btn-effect') } if (response.responseJSON.errors.g - recaptcha) { toastr.error( 'Please Complete the recaptcha to submit the form') $("#listcontact-spinner").addClass('d-none') $("#listingAuthorContctBtn").removeClass('custom-opacity') $("#listingAuthorContctBtn").attr('disabled', false); $("#listingAuthorContctBtn").addClass('site-btn-effect') } } }); }); $('#downloadLink').on('click', function(event) { event.preventDefault(); // Prevent the default link behavior $('#downloadForm').submit(); // Submit the form }); }); })(jQuery); function serviceReview(rating) { $("#service_rating").val(rating); $(".service_rat").each(function() { var service_rat = $(this).data('service_rating') if (service_rat > rating) { $(this).removeClass('fas fa-star').addClass('fal fa-star'); } else { $(this).removeClass('fal fa-star').addClass('fas fa-star'); } }) var service_rating = $("#service_rating").val(); var location_rating = $("#location_rating").val(); var money_rating = $("#money_rating").val(); var clean_rating = $("#clean_rating").val(); var avg = (service_rating * 1) + (location_rating * 1) + (money_rating * 1) + (clean_rating * 1); avg = avg / 4; $("#avarage_rating").val(avg); $("#avg_rating").text(avg) } function locationReview(rating) { $("#location_rating").val(rating); $(".location_rat").each(function() { var location_rat = $(this).data('location_rating') if (location_rat > rating) { $(this).removeClass('fas fa-star').addClass('fal fa-star'); } else { $(this).removeClass('fal fa-star').addClass('fas fa-star'); } }) var service_rating = $("#service_rating").val(); var location_rating = $("#location_rating").val(); var money_rating = $("#money_rating").val(); var clean_rating = $("#clean_rating").val(); var avg = (service_rating * 1) + (location_rating * 1) + (money_rating * 1) + (clean_rating * 1); avg = avg / 4; $("#avarage_rating").val(avg); $("#avg_rating").text(avg) } function moneyReview(rating) { $("#money_rating").val(rating); $(".money_rat").each(function() { var money_rat = $(this).data('money_rating') if (money_rat > rating) { $(this).removeClass('fas fa-star').addClass('fal fa-star'); } else { $(this).removeClass('fal fa-star').addClass('fas fa-star'); } }) var service_rating = $("#service_rating").val(); var location_rating = $("#location_rating").val(); var money_rating = $("#money_rating").val(); var clean_rating = $("#clean_rating").val(); var avg = (service_rating * 1) + (location_rating * 1) + (money_rating * 1) + (clean_rating * 1); avg = avg / 4; $("#avarage_rating").val(avg); $("#avg_rating").text(avg) } function cleanReview(rating) { $("#clean_rating").val(rating); $(".clean_rat").each(function() { var clean_rat = $(this).data('clean_rating') if (clean_rat > rating) { $(this).removeClass('fas fa-star').addClass('fal fa-star'); } else { $(this).removeClass('fal fa-star').addClass('fas fa-star'); } }) var service_rating = $("#service_rating").val(); var location_rating = $("#location_rating").val(); var money_rating = $("#money_rating").val(); var clean_rating = $("#clean_rating").val(); var avg = (service_rating * 1) + (location_rating * 1) + (money_rating * 1) + (clean_rating * 1); avg = avg / 4; $("#avarage_rating").val(avg); $("#avg_rating").text(avg) } </script> <?php $__env->stopSection(); ?> <?php $__env->startPush('js'); ?> <script src="https://www.google.com/recaptcha/api.js" async defer></script> <?php $__env->stopPush(); ?> <?php echo $__env->make('layout1', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/lekhnath/silverray.com.au/resources/views/property_details.blade.php ENDPATH**/ ?>
| ver. 1.4 |
Github
|
.
| PHP 8.3.20 | Генерация страницы: 0.01 |
proxy
|
phpinfo
|
Настройка