@if($showAllCheckins) @php $checkinsList = array_reverse($trip->checkins) @endphp @else @php $checkinsList = array_slice(array_reverse($trip->checkins), 0, 10) @endphp @endif @foreach($checkinsList as $checkin)
  1. {{ $checkin->title ?? "[No title]" }}

    {{ date('j M Y (G:H)', strtotime($checkin->date)) }}

    {{ $checkin->note ?? "[No note]" }} @if($checkin->image_url) @endif
  2. @endforeach
@if (!$showAllCheckins)

Show all checkins

@endif