@php // Images are static for now $locations[0]['mapImage'] = asset("images/overhead sitemap.svg"); $locations[0]['sliderImage'] = asset('images/floorplan1.png'); $locations[1]['sliderImage'] = asset('images/floorplan2.png'); $locations[2]['sliderImage'] = asset('images/floorplan3.png'); @endphp

Site Map

@foreach($locations as $key => $location)

{{$location['location']->post_title}}

{{get_field('subtitle', $location['location']->ID)}}

{!! get_field('details',$location['location']->ID) !!}
@endforeach