<?php $__env->startSection('content'); ?>
<div class="map-search">
	<div class="map">
		<div id="map-container"></div>
	</div>
	<div class="content">		
		<div class="neighborhoods">
			<h1>New York City Neighborhoods</h1>
		
			<p class="description">Please click on the pictures of the neighborhoods that you are interested in and you will be able to get demographics, review pics, events and apartments and get a good sense of the vibe of the neighborhood you selected.</p>
			<div class="list row">
				<?php if($neighborhoods): ?>
					<?php foreach($neighborhoods as $i => $neighborhood): ?>
					<div class="col-xlg-4 col-lg-6 col-md-6">
						<a href="<?php echo URL::action('NeighborhoodsController@getView', array($neighborhood['alias'])); ?>" class="thumbnail" data-neighborhood="<?php echo $i; ?>">
							<?php if(!empty($neighborhood['cover'])): ?>
							<img src="<?php echo Image::url($neighborhood['cover']['file_name'], $neighborhood['cover']['file_path'], 'gallery'); ?>" alt="" />
							<?php else: ?>
							<img src="<?php echo Image::url('nopic.png', 'galleries', 'gallery'); ?>" alt="" />
							<?php endif; ?>
							<span class="caption">
								<strong><?php echo $neighborhood['name']; ?> Living</strong>
								<p><?php echo Str::limit(strip_tags($neighborhood['description']),70); ?></p>
							</span>					
						</a>
					</div>
					<?php endforeach; ?> 
				<?php endif; ?>
			</div>
		</div>
	</div>
</div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('scripts'); ?>
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script>
<?php echo HTML::script('/js/map/infobox.js'); ?> 
<?php echo HTML::script('/js/plugins/jquery.history.js'); ?>
<?php echo HTML::script('/js/boundaries.js'); ?> 
<?php echo HTML::script('/js/maps.js'); ?> 
<?php echo HTML::script('/js/neighborhoods.js'); ?> 
<?php $__env->stopSection(); ?>