From 26684b6dc2d3e49397b31505f56d82cc98789463 Mon Sep 17 00:00:00 2001 From: Rumperuu Date: Wed, 5 Oct 2022 19:38:45 +0000 Subject: [PATCH] Limit checkings (temporary fix for performance degredation) --- resources/views/tracker.blade.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/resources/views/tracker.blade.php b/resources/views/tracker.blade.php index 619855d..ff68392 100644 --- a/resources/views/tracker.blade.php +++ b/resources/views/tracker.blade.php @@ -38,8 +38,7 @@
    - @foreach(array_reverse($trip->checkins) as $checkin) -@if($checkin->id != 2607) + @foreach(array_slice(array_reverse($trip->checkins), 0, 15) as $checkin)
  1. {{ $checkin->title ?? "[No title]" }}

    {{ date('j M Y (G:H)', strtotime($checkin->date)) }}
    @@ -49,7 +48,6 @@ @endif
  2. -@endif @endforeach
@@ -73,7 +71,6 @@ var marker = null, popupMarkup = null; @foreach($trip->checkins as $checkin) - @if($checkin->id != 2602) marker = L.marker([{{ $checkin->location->latitude }}, {{ $checkin->location->longitude }}]).addTo(map); popupMarkup = ''; @@ -82,7 +79,6 @@ marker.bindPopup(popupMarkup).openPopup(); checkinMarkers[{{ $checkin->id }}] = marker; - @endif @endforeach var currLocation = L.marker(