<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <style>
        .page-break {
            page-break-after: always;
        }
    </style>
</head>

<body>
    @foreach ($documents as $type => $typeDocuments)
        <img src="img/amea2.png" style="height:auto; width:150px;">
        <span style="float: right;font-size:20px;margin-top:5px">{{ $type }}</span>
        <div style="margin-top:80px">
            @foreach ($typeDocuments as $doc)
                <img src="{{ Storage::disk('s3')->temporaryUrl($doc->path, now()->addMinutes(30)) }}" alt=""
                    style="width: 45%;height:auto">
            @endforeach

        </div>
        <div class="page-break"></div>
    @endforeach
</body>

</html>
