A free open source IT asset/license management system
Added links to apple/google maps
snipe34cd4b624404
diff --git a/resources/lang/en-US/admin/locations/message.php b/resources/lang/en-US/admin/locations/message.phpindex 5ba6e5109c..488ec9c670 100644--- a/resources/lang/en-US/admin/locations/message.php+++ b/resources/lang/en-US/admin/locations/message.php@@ -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. ','assigned_assets' => 'Assigned Assets','current_location' => 'Current Location',+ 'open_map' => 'Open in :map_provider_icon Maps','create' => array(diff --git a/resources/views/locations/view.blade.php b/resources/views/locations/view.blade.phpindex 7c9d203b07..7b528332ff 100644--- a/resources/views/locations/view.blade.php+++ b/resources/views/locations/view.blade.php@@ -418,6 +418,21 @@@if ($location->ldap_ou)<li>{{ trans('admin/locations/table.ldap_ou') }}: {{ $location->ldap_ou }}</li>@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></div>