Fix checkin nmbering

This commit is contained in:
Ben Goldsworthy 2022-10-07 19:58:26 +01:00
parent 26684b6dc2
commit 6dea57778e

View file

@ -37,9 +37,9 @@
<main id="routeContainer"> <main id="routeContainer">
<div id="map"></div> <div id="map"></div>
<section id="checkinList"> <section id="checkinList">
<ol reversed> <ol start="{{ count($trip->checkins) }}" reversed>
@foreach(array_slice(array_reverse($trip->checkins), 0, 15) as $checkin) @foreach(array_slice(array_reverse($trip->checkins), 0, 15) as $checkin)
<li> <li n>
<details id="{{ $checkin->id }}" ontoggle="toggleCheckin(this.open, this.id)"> <details id="{{ $checkin->id }}" ontoggle="toggleCheckin(this.open, this.id)">
<summary><h2>{{ $checkin->title ?? "[No title]" }}</h2> <span>{{ date('j M Y (G:H)', strtotime($checkin->date)) }}</span></summary> <summary><h2>{{ $checkin->title ?? "[No title]" }}</h2> <span>{{ date('j M Y (G:H)', strtotime($checkin->date)) }}</span></summary>
{{ $checkin->note ?? "[No note]" }} {{ $checkin->note ?? "[No note]" }}