diff --git a/resources/views/tracker.blade.php b/resources/views/tracker.blade.php index c4cd8d1..64f5aa2 100644 --- a/resources/views/tracker.blade.php +++ b/resources/views/tracker.blade.php @@ -115,7 +115,9 @@ popupMarkup = ``; popupMarkup += `{!! $popupContent !!}`; - popupMarkup += ''; + @if($checkin->image_url) + popupMarkup += ''; + @endif marker.bindPopup(popupMarkup).openPopup(); checkinMarkers[{{ $checkin->id }}] = marker;