@include('partials.head')

@if ($showAllCheckins) Check-ins @else Recent Check-ins @endif

    @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 ?? "Untitled" !!}

    {!! render_date_difference($checkin->date) !!}

    @if($checkin->note) {!! $checkin->note !!} @endif @if($checkin->image_url) @endif
  2. @endforeach
@if (!$showAllCheckins)

Show all checkins

@endif