appointment_guide.blade.php 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. <!DOCTYPE html>
  2. <html lang="pt-BR">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Guia de Atendimento — {{ $guide['order_number'] }}</title>
  6. <style>
  7. @page { margin: 24px 28px; }
  8. body { font-family: DejaVu Sans, sans-serif; color: #333; font-size: 12px; margin: 0; }
  9. .header { background-color: #4d1658; color: #ffffff; padding: 16px 20px; }
  10. .header .brand { font-size: 20px; font-weight: bold; letter-spacing: 1px; }
  11. .header .title { font-size: 13px; margin-top: 4px; }
  12. .header .order { float: right; font-size: 13px; font-weight: bold; }
  13. .section { border: 1px solid #d9d0dd; border-top: none; padding: 14px 20px; }
  14. .section-title {
  15. background-color: #f3e5f5; color: #4d1658; font-size: 11px; font-weight: bold;
  16. text-transform: uppercase; letter-spacing: 0.5px; padding: 6px 20px;
  17. border: 1px solid #d9d0dd; border-top: none;
  18. }
  19. table.fields { width: 100%; border-collapse: collapse; }
  20. table.fields td { padding: 5px 0; vertical-align: top; width: 50%; }
  21. .label { color: #8a7f8f; font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
  22. .value { font-size: 13px; color: #222; }
  23. .value strong { color: #4d1658; }
  24. /* Em bloco próprio: no dompdf a tarja inline invade a linha de cima. */
  25. .badge-dependent {
  26. display: block; background-color: #f3e5f5; color: #4d1658;
  27. border: 1px solid #c9a3dc; border-radius: 3px; padding: 3px 8px; margin-top: 6px;
  28. font-size: 10px; font-weight: bold; text-transform: uppercase; width: 200px;
  29. }
  30. .price-box {
  31. background-color: #f3e5f5; border: 1px solid #c9a3dc; border-radius: 4px;
  32. padding: 10px 14px; text-align: right;
  33. }
  34. .price-box .amount { font-size: 20px; font-weight: bold; color: #4d1658; }
  35. .footer { margin-top: 18px; color: #8a7f8f; font-size: 10px; text-align: center; line-height: 1.5; }
  36. .signature { margin-top: 42px; }
  37. .signature td { width: 45%; padding-top: 6px; border-top: 1px solid #999; text-align: center; font-size: 10px; color: #666; }
  38. .signature .spacer { width: 10%; border: none; }
  39. </style>
  40. </head>
  41. <body>
  42. <div class="header">
  43. <span class="order">Nº {{ $guide['order_number'] }}</span>
  44. <div class="brand">SerPrati</div>
  45. <div class="title">Guia de Atendimento</div>
  46. </div>
  47. <div class="section-title">Beneficiário</div>
  48. <div class="section">
  49. <table class="fields">
  50. <tr>
  51. <td>
  52. <div class="label">Titular</div>
  53. <div class="value">{{ $guide['holder_name'] ?? '—' }}</div>
  54. </td>
  55. <td>
  56. <div class="label">Crachá</div>
  57. <div class="value"><strong>{{ $guide['holder_badge'] ?? '—' }}</strong></div>
  58. </td>
  59. </tr>
  60. @if ($guide['dependent_name'])
  61. <tr>
  62. <td colspan="2">
  63. <div class="label">Dependente</div>
  64. <div class="value">{{ $guide['dependent_name'] }}</div>
  65. <div class="badge-dependent">Atendimento para dependente</div>
  66. </td>
  67. </tr>
  68. @endif
  69. </table>
  70. </div>
  71. <div class="section-title">Atendimento</div>
  72. <div class="section">
  73. <table class="fields">
  74. <tr>
  75. <td>
  76. <div class="label">Médico / Serviço</div>
  77. <div class="value">{{ $guide['doctor_name'] ?? '—' }}</div>
  78. </td>
  79. <td>
  80. <div class="label">Clínica</div>
  81. <div class="value">{{ $guide['clinic_name'] ?? '—' }}</div>
  82. </td>
  83. </tr>
  84. <tr>
  85. <td>
  86. <div class="label">Data da consulta</div>
  87. <div class="value"><strong>{{ $guide['date'] ?? '—' }}</strong></div>
  88. </td>
  89. <td>
  90. <div class="label">Horário</div>
  91. <div class="value"><strong>{{ $guide['time'] ?? '—' }}</strong></div>
  92. </td>
  93. </tr>
  94. @if ($guide['clinic_address'] || $guide['clinic_phone'])
  95. <tr>
  96. <td>
  97. <div class="label">Endereço</div>
  98. <div class="value">{{ $guide['clinic_address'] ?? '—' }}</div>
  99. </td>
  100. <td>
  101. <div class="label">Telefone</div>
  102. <div class="value">{{ $guide['clinic_phone'] ?? '—' }}</div>
  103. </td>
  104. </tr>
  105. @endif
  106. @if ($guide['observations'])
  107. <tr>
  108. <td colspan="2">
  109. <div class="label">Observações</div>
  110. <div class="value">{{ $guide['observations'] }}</div>
  111. </td>
  112. </tr>
  113. @endif
  114. </table>
  115. </div>
  116. <div class="section-title">Guia</div>
  117. <div class="section">
  118. <table class="fields">
  119. <tr>
  120. <td>
  121. <div class="label">Data de liberação</div>
  122. <div class="value">{{ $guide['issued_at'] ?? '—' }}</div>
  123. </td>
  124. <td rowspan="2" style="vertical-align: middle;">
  125. <div class="price-box">
  126. <div class="label">Valor da consulta</div>
  127. <div class="amount">{{ $guide['price'] ?? '—' }}</div>
  128. </div>
  129. </td>
  130. </tr>
  131. <tr>
  132. <td>
  133. <div class="label">Válida até</div>
  134. <div class="value"><strong>{{ $guide['valid_until'] ?? '—' }}</strong></div>
  135. </td>
  136. </tr>
  137. </table>
  138. <table class="fields signature">
  139. <tr>
  140. <td>Assinatura do beneficiário</td>
  141. <td class="spacer"></td>
  142. <td>Carimbo e assinatura da clínica</td>
  143. </tr>
  144. </table>
  145. </div>
  146. <div class="footer">
  147. Apresente esta guia no atendimento junto com um documento com foto.<br>
  148. Guia válida somente até {{ $guide['valid_until'] ?? '—' }} e exclusivamente para o atendimento descrito acima.<br>
  149. © {{ date('Y') }} SerPrati
  150. </div>
  151. </body>
  152. </html>