feat: automatically populate past trips list
This commit is contained in:
parent
6d716a242b
commit
fb5b0347fb
2 changed files with 21 additions and 4 deletions
|
@ -14,9 +14,10 @@
|
|||
|
||||
<main id="pastTripsList">
|
||||
<ol>
|
||||
<li><a href="/x8gkdo56o7k3eyp3w2ql">Monkey Run Scotland 2022</a></li>
|
||||
<li><a href="/47xj8go928ql9mq3r20p">Europespedition III: Leds Free or Die Hard</a></li>
|
||||
<li><a href="/2ozdklm6dro0951n04xg">Bentral American Diaries</a></li>
|
||||
@php $DATE_FORMAT = 'M Y' @endphp
|
||||
@foreach ($trips as $trip_id => $trip)
|
||||
<li><a href="/{{ $trip_id }}">{{ $trip['name'] }}</a> <span>({{ $trip['start_date']->format($DATE_FORMAT) }} to {{ $trip['end_date']->format($DATE_FORMAT) }})</span></li>
|
||||
@endforeach
|
||||
</ol>
|
||||
</main>
|
||||
</body>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue