I have a leads tracking app with a show page that lists all the relevant data associated with the potential lead. I am retrieving the lead's address in the blade view like this:
<div class="data">
<div>{!! $interest->formatAddress() !!}</div>
</div>
Which would render the address in view like: 800 Occidental Ave S Seattle, WA 98134
I want to convert that visible address to a clickable link that would open up a Google Maps page showing that location on the map.
Now I am familiar with resources such as How to convert an address into a Google Maps Link (NOT MAP) or https://developers.google.com/maps/documentation/urls/guide
But I am not understanding how to take what they are presenting and apply it to my blade address code
{!! $interest->formatAddress() !!}
Google docs talk about https://www.google.com/maps/search/?api=1¶meters
but I don't understand how to apply my retrieved address information {!! $interest->formatAddress() !!}
and integrate it into the parameters part of that URL.
How do I create a clickable address link when my address information is being generated from a database using {!! $interest->formatAddress() !!}
.