Where-in-the-World-is-Ben/resources/views/past-trips.blade.php

25 lines
865 B
PHP
Raw Normal View History

2022-09-21 19:40:14 +00:00
<!DOCTYPE html>
2022-10-29 23:49:19 +00:00
<html itemscope itemtype="https://schema.org/WebSite" lang="{{ str_replace('_', '-', app()->getLocale()) }}">
2022-10-30 00:15:06 +00:00
@include('partials.head')
2022-09-21 19:40:14 +00:00
<body>
2022-10-19 22:48:11 +00:00
<header class="page-header">
2022-09-24 19:36:06 +00:00
<h1 class="page-title">Past Trips</h1>
<nav class="other-links">
<ul>
<li><p><a href="/">Current trip</a></p></li>
</ul>
</nav>
2022-09-21 19:40:14 +00:00
</header>
2022-10-19 22:48:11 +00:00
<main id="pastTripsList">
<ol>
@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>
2022-09-21 19:40:14 +00:00
</main>
</body>
</html>