@extends('template.app')

@section('content')
<div class="container">
    <h4>Your Exported DayBook Reports</h4>
    <ul>
        @foreach ($files as $file)
            <li>
                {{ $file->file_name }} -
                <a href="{{ route('daybook.export.download', $file->id) }}">Download</a>
                <small>({{ \Carbon\Carbon::parse($file->created_at)->diffForHumans() }})</small>
            </li>
        @endforeach
    </ul>
</div>
@endsection