Browse Source

Add open in google map button

pull/68/head
Nafies Luthfi 5 years ago
parent
commit
48a9283d29
  1. 2
      resources/lang/en/app.php
  2. 2
      resources/lang/id/app.php
  3. 12
      resources/views/users/death.blade.php

2
resources/lang/en/app.php

@ -39,4 +39,6 @@ return [
'download' => 'Download',
'delete' => 'Delete',
'cancel' => 'Cancel',
'open_in_google_map' => 'Open in Google Map',
];

2
resources/lang/id/app.php

@ -39,4 +39,6 @@ return [
'download' => 'Download',
'delete' => 'Hapus',
'cancel' => 'Batal',
'open_in_google_map' => 'Buka di Google Map',
];

12
resources/views/users/death.blade.php

@ -41,8 +41,16 @@
<div class="col-md-6">
<div class="panel panel-default">
<div class="panel-heading"><h3 class="panel-title">{{ __('user.cemetery_location') }}</h3></div>
<div class="panel-body">
<div id="mapid"></div>
<div class="panel-body"><div id="mapid"></div></div>
<div class="panel-footer">
@php
$locationCoordinate = $mapCenterLatitude.','.$mapCenterLongitude.'/@'.$mapCenterLatitude.','.$mapCenterLongitude.','.$mapZoomLevel.'z';
@endphp
{{ link_to(
'https://www.google.com/maps/place/'.$locationCoordinate,
__('app.open_in_google_map'),
['class' => 'btn btn-default btn-block', 'target' => '_blank']
) }}
</div>
</div>
</div>

Loading…
Cancel
Save