Файловый менеджер - Редактировать - /home/c7lekhnath/silverray.com.au/oldsite/storage/framework/views/8c60540454dc52f4e77fc9e791978c74.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('user-content'); ?> <!--===BREADCRUMB PART START====--> <section class="wsus__breadcrumb" style="background: url(<?php echo e(url($property->banner_image)); ?>);"> <div class="wsus_bread_overlay"> <div class="container"> <div class="row"> <div class="col-12 text-center"> <h4><?php echo e(__('user.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(__('user.Home')); ?></a></li> <li class="breadcrumb-item active" aria-current="page"><?php echo e(__('user.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"> </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->translated_custom_purpose); ?></span> <?php if($property->urgent_property==1): ?> <span class="rent"><?php echo e(__('user.Urgent')); ?></span> <?php endif; ?> </p> <?php if($property->property_purpose_id==1): ?> <span class="tk"><?php echo e($currency); ?><?php echo e($property->price); ?></span> <?php elseif($property->property_purpose_id==2): ?> <span class="tk"><?php echo e($currency); ?><?php echo e($property->price); ?> / <?php if($property->period=='Daily'): ?> <span><?php echo e(__('user.Daily')); ?></span> <?php elseif($property->period=='Monthly'): ?> <span><?php echo e(__('user.Monthly')); ?></span> <?php elseif($property->period=='Yearly'): ?> <span><?php echo e(__('user.Yearly')); ?></span> <?php endif; ?> </span> <?php endif; ?> </div> <h4><?php echo e($property->translated_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->address); ?> <?php if($property->city): ?> , <?php echo e($property->city->translated_name); ?> <?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(__('user.Bed')); ?></li> <li><i class="fal fa-shower"></i> <?php echo e($property->number_of_bathroom); ?> <?php echo e(__('user.Bath')); ?></li> <li><i class="fal fa-draw-square"></i> <?php echo e($property->area); ?> <?php echo e(__('user.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(__('user.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(__('user.Add Review')); ?></a></li> <li><a href="<?php echo e(route('user.add.to.wishlist',$property->id)); ?>"><i class="fas fa-heart"></i> <?php echo e(__('user.Add to Wishlist')); ?></a></li> </ul> </div> </div> <div class="col-12"> <div class="wsus__single_details details_future"> <h5><?php echo e(__('user.Details & Features')); ?></h5> <div class="details_futurr_single"> <div class="row"> <div class="col-xl-6"> <table class="table"> <tbody> <tr> <th><?php echo e(__('user.Property ID')); ?>:</th> <td><?php echo e($property->property_search_id); ?></td> </tr> <tr> <th><?php echo e(__('user.Property Type')); ?>:</th> <td><?php echo e($property->propertyType->type); ?></td> </tr> <tr> <th> <?php echo e(__('user.Area')); ?>:</th> <td><?php echo e($property->area); ?> <?php echo e(__('user.Sqft')); ?></td> </tr> <tr> <th><?php echo e(__('user.Bedrooms')); ?>:</th> <td><?php echo e($property->number_of_bedroom); ?></td> </tr> <tr> <th><?php echo e(__('user.Bathrooms')); ?>:</th> <td><?php echo e($property->number_of_bathroom); ?></td> </tr> </tbody> </table> </div> <div class="col-xl-6"> <table class="table xs_sm_mb"> <tbody> <tr> <th><?php echo e(__('user.Rooms')); ?>:</th> <td><?php echo e($property->number_of_room); ?></td> </tr> <tr> <th><?php echo e(__('user.Units')); ?>:</th> <td><?php echo e($property->number_of_unit); ?></td> </tr> <tr> <th> <?php echo e(__('user.Floors')); ?>:</th> <td><?php echo e($property->number_of_floor); ?></td> </tr> <tr> <th><?php echo e(__('user.Kitchens')); ?>:</th> <td><?php echo e($property->number_of_kitchen); ?></td> </tr> <tr> <th><?php echo e(__('user.Parking Place')); ?>:</th> <td><?php echo e($property->number_of_parking); ?></td> </tr> </tbody> </table> </div> </div> </div> </div> </div> <div class="col-12"> <div class="wsus__single_details details_description"> <h5><?php echo e(__('user.Description')); ?></h5> <?php echo clean($property->translated_description); ?> <?php if($property->file): ?> <a href="<?php echo e(route('download-listing-file',$property->file)); ?>" class="common_btn mt_20"><?php echo e(__('user.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(__('user.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(__('user.Aminities')); ?></h5> <ul class="d-flex flex-wrap"> <?php $__currentLoopData = $property->propertyAminities; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $aminity_item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <li><i class="fal fa-check"></i> <?php echo e($aminity_item->aminity->translated_aminity); ?></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(__('user.Nearest Place')); ?></h5> <ul class="d-flex flex-wrap"> <?php $__currentLoopData = $property->propertyNearestLocations; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <li><span><?php echo e($item->nearestLocation->translated_location); ?>:</span> <?php echo e($item->distance); ?><?php echo e(__('user.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(__('user.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(__('user.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($default_image)); ?>" alt="comment img" class="img-fluid img-thumbnail"> </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(__('user.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(__('user.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(__('user.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(__('user.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(__('user.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(__('user.Out Of 5.0')); ?></span> <p><?php echo e(__('user.Average Rating')); ?></p> </div> </div> <div class="col-12"> <textarea cols="3" rows="5" placeholder="<?php echo e(__('user.Comment')); ?>" name="comment"></textarea> <?php if($recaptcha_setting->status==1): ?> <p class="g-recaptcha mb-3 mt-3" data-sitekey="<?php echo e($recaptcha_setting->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(); ?> <?php if($activeUser->id !=$property->user_id): ?> <button type="submit" class="common_btn"><?php echo e(__('user.Submit')); ?></button> <?php endif; ?> <?php else: ?> <p class="worning"><a href="<?php echo e(route('login')); ?>" class="text-danger"><?php echo e(__('user.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"> <?php if($property->user_type==1): ?> <div class="wsus__sidebar_message_top"> <div class="wsus__sidebar_message_top"> <?php if($property->admin): ?> <img src="<?php echo e($property->admin->image ? url($property->admin->image) : url($default_image)); ?>" alt="images" class="img-fluid img-thumbnail"> <?php else: ?> <img src="<?php echo e(url($default_image)); ?>" alt="images" class="img-fluid img-thumbnail"> <?php endif; ?> <a class="name" href="<?php echo e(route('agent.show',['user_type' => '1','user_name'=>$property->admin->slug])); ?>"><?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 ? url($property->user->image) : url($default_image)); ?>" alt="images" class="img-fluid img-thumbnail"> <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(__('user.Name')); ?></label> <input type="text" name="name"> </div> <div class="wsus__sidebar_input"> <label><?php echo e(__('user.Email')); ?></label> <input type="email" name="email"> </div> <div class="wsus__sidebar_input"> <label><?php echo e(__('user.Phone')); ?></label> <input type="text" name="phone"> </div> <div class="wsus__sidebar_input"> <label><?php echo e(__('user.Subject')); ?></label> <input type="text" name="subject"> </div> <div class="wsus__sidebar_input"> <label><?php echo e(__('user.Description')); ?></label> <textarea cols="3" rows="3" name="message"></textarea> <input type="hidden" name="user_type" value="<?php echo e($property->user_type); ?>"> <?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($recaptcha_setting->status==1): ?> <p class="g-recaptcha mt-3" data-sitekey="<?php echo e($recaptcha_setting->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(__('user.Send Message')); ?></button> </div> </form> </div> <?php $isActivePropertyQty=0; foreach ($similarProperties as $value) { if($value->expired_date==null){ $isActivePropertyQty +=1; }else if($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(); ?> <?php if($similar_item->expired_date==null): ?> <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"> <?php if($similar_item->property_purpose_id==1): ?> <span class="sale"><?php echo e($similar_item->propertyPurpose->translated_custom_purpose); ?></span> <?php elseif($similar_item->property_purpose_id==2): ?> <span class="sale"><?php echo e($similar_item->propertyPurpose->translated_custom_purpose); ?></span> <?php endif; ?> <?php if($similar_item->urgent_property==1): ?> <span class="rent"><?php echo e(__('user.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); ?><?php echo e($similar_item->price); ?></span> <?php elseif($similar_item->property_purpose_id==2): ?> <span class="tk"><?php echo e($currency); ?><?php echo e($similar_item->price); ?> / <?php if($similar_item->period=='Daily'): ?> <span><?php echo e(__('user.Daily')); ?></span> <?php elseif($similar_item->period=='Monthly'): ?> <span><?php echo e(__('user.Monthly')); ?></span> <?php elseif($similar_item->period=='Yearly'): ?> <span><?php echo e(__('user.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->translated_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(__('user.Bed')); ?></li> <li><i class="fal fa-shower"></i> <?php echo e($similar_item->number_of_bathroom); ?> <?php echo e(__('user.Bath')); ?></li> <li><i class="fal fa-draw-square"></i> <?php echo e($similar_item->area); ?> <?php echo e(__('user.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->translated_type); ?></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 elseif($similar_item->expired_date >= date('Y-m-d')): ?> <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"> <?php if($similar_item->property_purpose_id==1): ?> <span class="sale"><?php echo e($similar_item->propertyPurpose->translated_custom_purpose); ?></span> <?php elseif($similar_item->property_purpose_id==2): ?> <span class="sale"><?php echo e($similar_item->propertyPurpose->translated_custom_purpose); ?></span> <?php endif; ?> <?php if($similar_item->urgent_property==1): ?> <span class="rent"><?php echo e(__('user.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); ?><?php echo e($similar_item->price); ?></span> <?php elseif($similar_item->property_purpose_id==2): ?> <span class="tk"><?php echo e($currency); ?><?php echo e($similar_item->price); ?> / <?php if($similar_item->period=='Daily'): ?> <span><?php echo e(__('user.Daily')); ?></span> <?php elseif($similar_item->period=='Monthly'): ?> <span><?php echo e(__('user.Monthly')); ?></span> <?php elseif($similar_item->period=='Yearly'): ?> <span><?php echo e(__('user.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->translated_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(__('user.Bed')); ?></li> <li><i class="fal fa-shower"></i> <?php echo e($similar_item->number_of_bathroom); ?> <?php echo e(__('user.Bath')); ?></li> <li><i class="fal fa-draw-square"></i> <?php echo e($similar_item->area); ?> <?php echo e(__('user.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->type); ?></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 endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> <?php endif; ?> </div> </div> </div> </div> </section> <!--=====PROPERTY DETAILD END=====--> <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('user.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') } } }); }) }); })(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 echo $__env->make('layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/lekhnath/silverray.com.au/oldsite/resources/views/show_property.blade.php ENDPATH**/ ?>
| ver. 1.4 |
Github
|
.
| PHP 8.3.20 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка