<?php $__env->startSection('head_title', stripslashes($property_info->title).' - '.getcong('site_name') ); ?>

<?php $__env->startSection('head_description', Str::limit(stripslashes($property_info->description),160)); ?>

<?php $__env->startSection('head_image', property_image_url($property_info->image)); ?>

<?php $__env->startSection('head_url', Request::url()); ?>

<?php $__env->startSection('content'); ?>

<script type="application/ld+json">
    {
        "@context": "https://schema.org",
        "@type": "Product",
        "name": "<?php echo e(stripslashes($property_info->title)); ?>",
        "description": "<?php echo e(Str::limit(stripslashes(strip_tags($property_info->description)),155)); ?>",
        "image":["<?php echo e(property_image_url($property_info->image)); ?>"],        
        "offers": {
            "@type": "Offer",
            "priceCurrency": "<?php echo e(getcong('currency_code')); ?>",
            "price": "<?php echo e($property_info->price); ?>",
            "availability": "https://schema.org/InStock",
            "url": "<?php echo e(URL::to('properties/'.$property_info->slug.'/'.$property_info->id)); ?>"
             
        },
        "additionalProperty": [
            {
                "@type": "PropertyValue",
                "name": "Number of Bedrooms",
                "value": "<?php echo e($property_info->bedrooms); ?>"
            },
            {
                "@type": "PropertyValue",
                "name": "Number of Bathrooms",
                "value": "<?php echo e($property_info->bathrooms); ?>"
            },
            {
                "@type": "PropertyValue",
                "name": "Total Area",
                "value": "<?php echo e($property_info->area); ?>"
            }
        ],
        "address": {
            "@type": "PostalAddress",
            "streetAddress": "<?php echo e(stripslashes($property_info->address)); ?>",
            "addressLocality": "<?php echo e(get_location_info($property_info->location_id,'name')); ?>",
            "addressRegion": "",
            "postalCode": "",
            "addressCountry": ""
        }
    }
    </script>
 
   
<div class="property-details-wrap bg-cb mt-70"> 

<?php if(get_web_banner('details_top')!=""): ?>      
    <div class="add_banner_section pb-0">
      <div class="container">
        <div class="row">
            <div class="col-md-12">
            <?php echo stripslashes(get_web_banner('details_top')); ?>

          </div>
        </div>  
      </div>
    </div>
<?php endif; ?>
 
	<!--Listing Details Info starts-->
    <div class="single-property-details vfx1"> 
      <div class="container">
        <div class="row">     
          <div class="col-xl-8 col-lg-12">
			<div class="single-property-header mt-30">
 
				<div class="row">
					<div class="col-md-12">
						<div class="property_poster_item">
							<img class="d-block" src="<?php echo e(property_image_url($property_info->image)); ?>" alt="slide" title="property_header_1">
						</div>
					</div>
				</div>
			</div>
			
		    <div class="list-details-title vfx1">
 
			  <div class="row">
				<div class="col-lg-9 col-md-9 col-sm-12">
				  <div class="single-listing-title float-left">
					<h2><?php echo e(stripslashes($property_info->title)); ?>


            <?php if($property_info->purpose=='Rent'): ?>
            <span class="btn vfx5"><?php echo e(trans('words.rent')); ?></span>
             <?php else: ?>
            <span class="btn vfx5"><?php echo e(trans('words.sale')); ?></span>
             <?php endif; ?>

            <?php if($property_info->verified=='YES'): ?>
            <i class="fa fa-check" data-toggle="tooltip" data-placement="top" title="" data-original-title="<?php echo e(trans('words.verified')); ?>"></i><span></span>
            <?php endif; ?> 
          </h2>
					<p><i class="fa fa-map-marker"></i> 
              <?php if(get_location_info($property_info->location_id,'name')!=""): ?>
                <?php echo e(get_location_info($property_info->location_id,'name')); ?>

              <?php else: ?>
              <?php echo e(stripslashes($property_info->address)); ?>

              <?php endif; ?>
           </p>
					<div class="dtl_social mt-15">
						<ul>
							<li><a href="#" title="model" data-toggle="modal" data-target="#vfx-report-popup"><i class="fa fa-book mr-2"></i>Reports</a></li>
							<li><a href="#" title="model" data-toggle="modal" data-target="#vfx-social-media-popup"><i class="fa fa-share-alt mr-2"></i>Share</a></li>
						</ul>
 
					</div> 
				  </div>
				</div>
 
				<div class="col-lg-3 col-md-3 col-sm-12">
				  <div class="list-details-btn text-right sm-left">
					<div class="list-details-btn">
					  <div class="vfx-trend-open-price"><?php echo e(html_entity_decode(getCurrencySymbols(getcong('currency_code')))); ?><?php echo e(number_format($property_info->price)); ?></div>
					</div>
				  </div>
				</div> 
			  </div>
       
			</div>
            <div class="listing-desc-wrap">
              <div class="list-details-wrap">
                <div id="description" class="list-details-section">
                  <h4><?php echo e(trans('words.property_info')); ?></h4>
                  <div class="overview-content">
                    <p class="mb-10"><?php echo stripslashes($property_info->description); ?></p>
                    
                    <p class="mt-30"><b><?php echo e(trans('words.address')); ?></b> : <?php echo e(stripslashes($property_info->address)); ?>

                    </p>
                  </div>
                   
                  <div class="mt-40">
                    <h4 class="list-subtitle"><?php echo e(trans('words.location')); ?></h4>
                     
                    <ul class="listing-address">
                    <iframe 
                    width="750" 
                    height="350" 
                    frameborder="0" 
                    scrolling="no" 
                    marginheight="0" 
                    marginwidth="0" 
                    src="https://maps.google.com/maps?q=<?php echo e($property_info->latitude); ?>,<?php echo e($property_info->longitude); ?>&hl=es&z=14&amp;output=embed"
                  >
                  </iframe>
                    </ul>
                  </div>
                </div>
                <div id="gallery" class="list-details-section">
                  <h4><?php echo e(trans('words.property_gallery')); ?></h4>
                  <!--Carousel Wrapper-->
                  <div id="carousel-thumb" class="carousel slide carousel-fade carousel-thumbnails list-gallery pt-2" data-ride="carousel"> 
                    <!--Slides-->
                    <div class="carousel-inner" role="listbox">
                    
                      <?php $__currentLoopData = $gallery_images; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $i => $gallery_img): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                      <div class="carousel-item <?php if($i==0): ?> active <?php endif; ?>"> <img class="d-block w-100" src="<?php echo e(property_image_url($gallery_img->image)); ?>" alt="slide" title="gallery image"> </div>

                      <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
 
                    </div>
                    <!--Controls starts--> 
                    <a class="carousel-control-prev" href="#carousel-thumb" role="button" data-slide="prev" title="prev"> <span class="lnr lnr-arrow-left" aria-hidden="true"></span> <span class="sr-only">Previous</span> </a> <a class="carousel-control-next" href="#carousel-thumb" role="button" data-slide="next" title="next"> <span class="lnr lnr-arrow-right" aria-hidden="true"></span> <span class="sr-only">Next</span> </a> 
                    <!--Controls ends-->
                    <ol class="carousel-indicators list-gallery-thumb">
                      <?php $__currentLoopData = $gallery_images; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $i => $gallery_img): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                      <li data-target="#carousel-thumb" data-slide-to="<?php echo e($i); ?>"><img class="img-fluid d-block w-100" src="<?php echo e(property_image_url($gallery_img->image)); ?>" alt="gallery image" title="gallery image"></li>
                      <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                       
                    </ol>
                  </div>
                  <!--/.Carousel Wrapper--> 
                </div>
                 
                <div class="list-details-section">
                    <h4><?php echo e(trans('words.property_details')); ?></h4>
                    <ul class="property-info">
                      <li><?php echo e(trans('words.type')); ?> : <span><?php echo e(get_type_info($property_info->type_id,'type_name')); ?></span></li>
                      <li><?php echo e(trans('words.purpose')); ?> : <span><?php echo e($property_info->purpose); ?></span></li>                       
                      <li><?php echo e(trans('words.bedrooms')); ?>: <span><?php echo e($property_info->bedrooms); ?></span></li>
                      <li><?php echo e(trans('words.bathrooms')); ?>: <span><?php echo e($property_info->bathrooms); ?></span></li>
                      <li><?php echo e(trans('words.area')); ?>: <span><?php echo e($property_info->area); ?></span></li>
                      <li><?php echo e(trans('words.furnishing')); ?>: <span><?php echo e($property_info->furnishing); ?></span></li>
                    </ul>                                   
                </div>
              <?php if($property_info->amenities): ?>  
				      <div class="list-details-section">
                    <h4><?php echo e(trans('words.amenities')); ?></h4>
                    <ul class="listing-features">
                      <?php $__currentLoopData = explode(',',$property_info->amenities); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $amenities): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                      <li><i class="fa fa-angle-right"></i><?php echo e($amenities); ?></li>
                      <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                       
                    </ul>                  
                </div>
              <?php endif; ?>  
             
              <?php if($property_info->floor_plan_image): ?>
              <div id="floor_plan" class="list-details-section">
                <h4><?php echo e(trans('words.floor_plan_image')); ?></h4>
                <div id="carousel-thumb1" class="carousel slide carousel-fade carousel-thumbnails list-gallery pt-2" data-ride="carousel"> 
                    <!--Slides-->
                    <div class="carousel-inner" role="listbox">
                      <div class="carousel-item active"> <img class="d-block w-100" src="<?php echo e(property_image_url($property_info->floor_plan_image)); ?>" alt="slide" title="floor plan"> </div>
                    </div>
                </div>
              </div>
              <?php endif; ?>

              </div>
            </div>
          </div>
		  
           
              
              <?php echo $__env->make("pages.sidebar_right", \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
           

        </div>
      </div>
    </div>
    <!--Listing Details Info ends--> 
	
    <!--Similar Listing starts-->
    <div class="similar-listing-wrap bg-white pb-30 pt-10 mt-10">
      <div class="container">
        <div class="col-md-12 px-0">
          <div class="similar-listing">
            <div class="section-title vfx2">
              <h2><?php echo e(trans('words.similar_properties')); ?></h2>
            </div>
            <div class="swiper-container similar-list-wrap">
              <div class="swiper-wrapper">

              <?php $__currentLoopData = $related_list; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $related): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <div class="swiper-slide">
                  <div class="vfx-single-property-box-area">
                    <div class="vfx-property-item"> <a class="vfx-property-img" href="<?php echo e(URL::to('properties/'.$related->slug.'/'.$related->id)); ?>" title="<?php echo e(stripslashes($related->title)); ?>"><img src="<?php echo e(property_image_url($related->image)); ?>" alt="image" title="<?php echo e(stripslashes($related->title)); ?>"> </a>
                      <ul class="vfx-feature-text">
                       <?php if($related->purpose=='Rent'): ?>
                          <li class="feature_cb"><span><?php echo e(trans('words.rent')); ?></span></li>
                          <?php else: ?>
                          <li class="feature_or"><span><?php echo e(trans('words.sale')); ?></span></li>
                          <?php endif; ?>
                          
                          <?php if($related->verified=='YES'): ?>
                          <li class="feature_cb verified_item" data-toggle="tooltip" data-placement="top" title="" data-original-title="Verified"><i class="fa fa-check"></i></li>
                          <?php endif; ?>			     
                      </ul>
                                <div class="vfx-property-author-wrap"> 
                      <p class="text-tlt"><?php echo e(get_type_info($related->type_id,'type_name')); ?></p>
                      <ul class="vfx-save-btn">
                           
                          <li data-toggle="tooltip" data-placement="top" title="" data-original-title="Set Favourite" class="favourite_property favourite_title_id<?php echo e($related->id); ?>" data-id="<?php echo e($related->id); ?>">
                            <?php if(check_favourite("Property",$related->id,isset(Auth::user()->id)?Auth::user()->id:"")): ?>
                            <a href="Javascript:void(0);" title="fav"><i class="fa fa-heart favourite_icon_id<?php echo e($related->id); ?>"></i></a>
                            <?php else: ?>
                            <a href="Javascript:void(0);" title="fav"><i class="fa fa-heart-o favourite_icon_id<?php echo e($related->id); ?>"></i></a>
                            <?php endif; ?>
                          </li>
                        </ul>
                      </div>
                    </div>
                    <div class="vfx-property-title-box-area">
                      <h4><a href="<?php echo e(URL::to('properties/'.$related->slug.'/'.$related->id)); ?>" title="<?php echo e(stripslashes($related->title)); ?>"><?php echo e(Str::limit(stripslashes($related->title),25)); ?></a></h4>
                      <div class="vfx-property-location"> <i class="fa fa-map-marker"></i>
                        <p>
                            <?php if(get_location_info($related->location_id,'name')!=""): ?>
                              <?php echo e(get_location_info($related->location_id,'name')); ?>

                            <?php else: ?>
                            <?php echo e(Str::limit(stripslashes($related->address),40)); ?>

                            <?php endif; ?>
                        </p>
                      </div>
                      <div class="trending-bottom">
                      <div class="trend-left float-left">
                        <div class="vfx-property-author-wrap"> <a href="<?php echo e(URL::to('properties/owner/'.$related->user_id)); ?>" class="property-author" title="User"> 
                        <?php if(file_exists(URL::to('upload/'.get_user_info($related->user_id,'user_image')))): ?>
                            <img src="<?php echo e(\URL::to('upload/'.get_user_info($related->user_id,'user_image'))); ?>" alt="image" title="image user"> 
                          <?php else: ?>
                          <img src="<?php echo e(\URL::to('site_assets/images/user-default.jpg')); ?>" alt="image" title="image user">
                          <?php endif; ?>    
                        <span><?php echo e(get_user_info($related->user_id,'name')); ?></span> </a></div>
                      </div>
                      <a href="<?php echo e(URL::to('properties/'.$related->slug.'/'.$related->id)); ?>" class="vfx-trend-right float-right" title="<?php echo e(stripslashes($related->title)); ?>">
                        <div class="vfx-trend-open-price"><?php echo e(html_entity_decode(getCurrencySymbols(getcong('currency_code')))); ?><?php echo e(number_format($related->price)); ?></div>
                      </a> 
                      </div>
                    </div>
                  </div>
                </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

           
                
              </div>
            </div>
            <div class="slider-btn vfx2 similar-next"><i class="lnr lnr-arrow-right"></i></div>
            <div class="slider-btn vfx2 similar-prev"><i class="lnr lnr-arrow-left"></i></div>
          </div>
        </div>
      </div>


      <?php if(get_web_banner('details_bottom')!=""): ?>      
          <div class="add_banner_section pb-0">
            <div class="container">
              <div class="row">
                  <div class="col-md-12">
                  <?php echo stripslashes(get_web_banner('details_bottom')); ?>

                </div>
              </div>  
            </div>
          </div>
      <?php endif; ?>

    </div>
    <!--Similar Listing ends--> 
 

 </div>
</div>
<!--Page Wrapper ends-->


<!-- Reports Modal Starts -->
<div class="modal fade" id="vfx-report-popup">
  <div class="modal-dialog modal-dialog-centered" role="document">
    <div class="modal-content">
      <div class="modal-header">
		<h5 class="modal-title text-dark"><?php echo e(trans('words.reports_property')); ?></h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true"><i class="lnr lnr-cross"></i></span></button>
      </div>
      <div class="modal-body pl-0 pr-0"> 
         <div class="container">
             
         <?php echo e(html()->form('POST', url('/properties/report'))
                     ->attributes(['class' => 'form-horizontal', 'id' => 'report_form', 'name' => 'report_form', 'role' => 'form'])->open()); ?>

        
              
            <input type="hidden" name="property_id" value="<?php echo e($property_info->id); ?>">
				<div class="form-control-wrap">
				  <div class="row">
					  <div class="col-lg-12 col-md-12">
						  <div class="form-group">
							<textarea class="form-control" rows="3" name="report_text" id="report_text" placeholder="<?php echo e(trans('words.write_reason')); ?>"></textarea>
						  </div>
					  </div>
					  <div class="col-lg-12 col-md-12">
						  <div class="form-group mb-0">
							<button type="submit" class="btn vfx7 w-100"><?php echo e(trans('words.submit')); ?></button>
						  </div>
					  </div>
				  </div>
				</div>
        <?php echo e(html()->form()->close()); ?>

         </div>
      </div>
    </div>
  </div>
</div>
<!-- Reports Modal Ends -->

<!-- Social Media Modal Starts -->
<div class="modal fade" id="vfx-social-media-popup">
  <div class="modal-dialog modal-dialog-centered" role="document">
    <div class="modal-content">
      <div class="modal-header">
		<h5 class="modal-title text-dark">Social Media</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true"><i class="lnr lnr-cross"></i></span></button>
      </div>
      <div class="modal-body pt-4 pb-4"> 
        <div class="vfx-user-login-section">
          <div class="container">
            <div class="row">
              <div class="col-md-12">
                 <ul class="vfx-social-button style1 text-center">
					  <li><a href="https://www.facebook.com/sharer/sharer.php?u=<?php echo e(URL::to('properties/'.$property_info->slug.'/'.$property_info->id)); ?>" target="_blank" title="facebook"><i class="fa fa-facebook-f"></i></a></li>
					  <li><a href="https://twitter.com/intent/tweet?text=<?php echo e($property_info->title); ?>&amp;url=<?php echo e(URL::to('properties/'.$property_info->slug.'/'.$property_info->id)); ?>" target="_blank" title="twitter"><i class="fa fa-twitter"></i></a></li>
					  <li><a href="https://wa.me?text=<?php echo e(URL::to('properties/'.$property_info->slug.'/'.$property_info->id)); ?>" target="_blank" title="whatsapp"><i class="fa fa-whatsapp"></i></a></li>
					  <li><a href="https://www.instagram.com/?url=<?php echo e(URL::to('properties/'.$property_info->slug.'/'.$property_info->id)); ?>" target="_blank" title="instagram"><i class="fa fa-instagram"></i></a></li>
				  </ul> 
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
<!-- Social Media Modal Ends -->

<script type="text/javascript">
    
    <?php if(Session::has('flash_message')): ?>     
 
      const Toast = Swal.mixin({
        toast: true,
        position: 'top-end',
        showConfirmButton: false,
        timer: 3000,
        timerProgressBar: false,         
      })

      Toast.fire({
        icon: 'success',
        title: '<?php echo e(Session::get('flash_message')); ?>'
      })     
     
  <?php endif; ?>

  <?php if(count($errors) > 0): ?>
                  
          Swal.fire({
            icon: 'error',
            title: 'Oops...',
            html: '<p><?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php echo e($error); ?><br/> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></p>',
            showConfirmButton: true,
            confirmButtonColor: '#10c469',
            background:"#1a2234",
            color:"#fff"
           }) 
  <?php endif; ?>

  </script>
 
<?php $__env->stopSection(); ?>

<?php echo $__env->make('site_app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\real_estate_script\resources\views/pages/property/details.blade.php ENDPATH**/ ?>