@foreach($alpha_locations as $location) @if(!($location->service_centre) || !($location->post->published)) @php continue; @endphp @endif @php $full_address = [$location->address, $location->suburb, $location->state, $location->postcode]; $clean_address = collect($full_address)->map(function ($name) { return $name; }) ->reject(function ($name) { return empty($name); }); @endphp
{{ $location->post->title }}

{{ implode(', ', $clean_address->all()) }}

@if($location->post->featured_image) {{ config('env.APP_NAME') }} {{ $location->post->title }} @else {{ config('env.APP_NAME') }} {{ $location->post->title }} @endif

{{ $location->post->title }}

@endforeach