@extends('base')

@section('content')
    <h1>Archivo</h1>
    <ul>
        @foreach($posts as $post) 
            <li>
                <a href="{{ route('blog.show', ['post' => $post->id]) }}">{{$post->title}}</a> <span>({{$post->created_at->format('Y-m-d')}})</span>
            </li>
        @endforeach
    </ul>
@endsection
