24 lines
865 B
PHP
24 lines
865 B
PHP
<!DOCTYPE html>
|
|
<html itemscope itemtype="https://schema.org/WebSite" lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
|
@include('partials.head')
|
|
|
|
<body>
|
|
<header class="page-header">
|
|
<h1 class="page-title">Past Trips</h1>
|
|
<nav class="other-links">
|
|
<ul>
|
|
<li><p><a href="/">Current trip</a></p></li>
|
|
</ul>
|
|
</nav>
|
|
</header>
|
|
|
|
<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>
|
|
</main>
|
|
</body>
|
|
</html>
|