diff --git a/app/Mail/Digest.php b/app/Mail/Digest.php index bfaf608..ccf0ba3 100644 --- a/app/Mail/Digest.php +++ b/app/Mail/Digest.php @@ -33,7 +33,7 @@ class Digest extends Mailable * * @var string */ - public $checkins; + public $checkinsList; /** * Create a new message instance. @@ -72,8 +72,8 @@ class Digest extends Mailable } ); - $this->checkins = array_filter( - $trip->checkins, + $this->checkinsList = array_filter( + $trip->checkinsList, function($elem) use ($cutoffDateTime) { $elemDateTime = new DateTime($elem->created_at); return $elemDateTime > $cutoffDateTime; diff --git a/resources/views/emails/digest.blade.php b/resources/views/emails/digest.blade.php index 166f215..d220ca5 100644 --- a/resources/views/emails/digest.blade.php +++ b/resources/views/emails/digest.blade.php @@ -37,24 +37,9 @@
View the tracker here.
No new checkins
diff --git a/resources/views/tracker.blade.php b/resources/views/tracker.blade.php index b956e7d..8c9bdd1 100644 --- a/resources/views/tracker.blade.php +++ b/resources/views/tracker.blade.php @@ -38,8 +38,7 @@ @php $checkinsList = array_slice(array_reverse($trip->checkins), 0, 10) @endphp @endif - @include('partials.checkin-list') - + @include('partials.checkins-list') @if (!$showAllCheckins)