| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>Respuesta del Usuario</title>
- <style>
- @page {
- margin: 80px 40px;
- }
- body {
- font-family: 'Segoe UI', sans-serif;
- font-size: 13px;
- color: #2c3e50;
- margin: 0;
- }
- main {
- padding: 40px 0;
- }
- h1 {
- font-size: 20px;
- margin-bottom: 5px;
- }
- p {
- margin: 0 0 15px;
- }
- h2 {
- margin-top: 30px;
- font-size: 16px;
- color: #2c3e50;
- border-bottom: 2px solid #3498db;
- padding-bottom: 4px;
- }
- .campo {
- margin-bottom: 8px;
- }
- .campo span {
- display: inline-block;
- min-width: 200px;
- font-weight: bold;
- }
- footer {
- position: fixed;
- bottom: -40px;
- left: 0;
- right: 0;
- height: 30px;
- font-size: 11px;
- color: #999;
- text-align: center;
- }
- h2, .campo {
- page-break-inside: avoid;
- }
- </style>
- </head>
- <body>
- <footer>
- Documento generado automáticamente. Plataforma educativa - {{ date('Y') }}.
- </footer>
- <main>
- <h1>Formulario contestado por el usuario: {{ $usuario }}</h1>
- <p><strong>Fecha de respuesta:</strong> {{ \Carbon\Carbon::parse($fecha)->format('d/m/Y H:i') }}</p>
- @foreach ($respuesta as $titulo => $campos)
- <h2>{{ $titulo }}</h2>
- @foreach ($campos as $clave => $valor)
- <div class="campo">
- <span>{{ $clave }}:</span> {{ $valor }}
- </div>
- @endforeach
- @endforeach
- </main>
- </body>
- </html>
|