respuesta.blade.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Respuesta del Usuario</title>
  6. <style>
  7. body {
  8. font-family: 'Segoe UI', sans-serif;
  9. font-size: 13px;
  10. margin: 40px;
  11. color: #2c3e50;
  12. }
  13. h1 {
  14. font-size: 20px;
  15. margin-bottom: 5px;
  16. }
  17. p {
  18. margin: 0 0 15px;
  19. }
  20. h2 {
  21. margin-top: 40px;
  22. font-size: 16px;
  23. color: #2c3e50;
  24. border-bottom: 2px solid #3498db;
  25. padding-bottom: 4px;
  26. }
  27. .campo {
  28. margin-bottom: 8px;
  29. }
  30. .campo span {
  31. display: inline-block;
  32. min-width: 200px;
  33. font-weight: bold;
  34. }
  35. .footer {
  36. margin-top: 60px;
  37. font-size: 11px;
  38. text-align: center;
  39. color: #999;
  40. }
  41. </style>
  42. </head>
  43. <body>
  44. <h1>Formulario contestado por el usuario: {{ $usuario }}</h1>
  45. <p><strong>Fecha de respuesta:</strong> {{ \Carbon\Carbon::parse($fecha)->format('d/m/Y H:i') }}</p>
  46. @foreach ($respuesta as $titulo => $campos)
  47. <h2>{{ $titulo }}</h2>
  48. @foreach ($campos as $clave => $valor)
  49. <div class="campo">
  50. <span>{{ $clave }}:</span> {{ $valor }}
  51. </div>
  52. @endforeach
  53. @endforeach
  54. <div class="footer">
  55. Documento generado automáticamente. Plataforma educativa - {{ date('Y') }}.
  56. </div>
  57. </body>
  58. </html>