Added links to apple/google maps

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-08-19 14:15:36 +01:00
parent d89c8682be
commit 34cd4b6244
2 changed files with 16 additions and 0 deletions

View file

@ -8,6 +8,7 @@ return array(
'assoc_child_loc' => 'This location is currently the parent of at least one child location and cannot be deleted. Please update your locations to no longer reference this location and try again. ', 'assoc_child_loc' => 'This location is currently the parent of at least one child location and cannot be deleted. Please update your locations to no longer reference this location and try again. ',
'assigned_assets' => 'Assigned Assets', 'assigned_assets' => 'Assigned Assets',
'current_location' => 'Current Location', 'current_location' => 'Current Location',
'open_map' => 'Open in :map_provider_icon Maps',
'create' => array( 'create' => array(

View file

@ -418,6 +418,21 @@
@if ($location->ldap_ou) @if ($location->ldap_ou)
<li>{{ trans('admin/locations/table.ldap_ou') }}: {{ $location->ldap_ou }}</li> <li>{{ trans('admin/locations/table.ldap_ou') }}: {{ $location->ldap_ou }}</li>
@endif @endif
@if ((($location->address!='') && ($location->city!='')) || ($location->state!='') || ($location->country!=''))
<li>
<a href="https://maps.google.com/?q={{ urlencode($location->address.','. $location->city.','.$location->state.','.$location->country.','.$location->zip) }}" target="_blank">
{!! trans('admin/locations/message.open_map', ['map_provider_icon' => '<i class="fa-brands fa-google" aria-hidden="true"></i>']) !!}
<x-icon type="external-link"/>
</a>
</li>
<li>
<a href="https://maps.apple.com/?q={{ urlencode($location->address.','. $location->city.','.$location->state.','.$location->country.','.$location->zip) }}" target="_blank">
{!! trans('admin/locations/message.open_map', ['map_provider_icon' => '<i class="fa-brands fa-apple" aria-hidden="true" style="font-size: 18px"></i>']) !!}
<x-icon type="external-link"/></a>
</li>
@endif
</ul> </ul>
</div> </div>