| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165 |
- <!DOCTYPE html>
- <html lang="pt-BR">
- <head>
- <meta charset="UTF-8">
- <title>Guia de Atendimento — {{ $guide['order_number'] }}</title>
- <style>
- @page { margin: 24px 28px; }
- body { font-family: DejaVu Sans, sans-serif; color: #333; font-size: 12px; margin: 0; }
- .header { background-color: #4d1658; color: #ffffff; padding: 16px 20px; }
- .header .brand { font-size: 20px; font-weight: bold; letter-spacing: 1px; }
- .header .title { font-size: 13px; margin-top: 4px; }
- .header .order { float: right; font-size: 13px; font-weight: bold; }
- .section { border: 1px solid #d9d0dd; border-top: none; padding: 14px 20px; }
- .section-title {
- background-color: #f3e5f5; color: #4d1658; font-size: 11px; font-weight: bold;
- text-transform: uppercase; letter-spacing: 0.5px; padding: 6px 20px;
- border: 1px solid #d9d0dd; border-top: none;
- }
- table.fields { width: 100%; border-collapse: collapse; }
- table.fields td { padding: 5px 0; vertical-align: top; width: 50%; }
- .label { color: #8a7f8f; font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
- .value { font-size: 13px; color: #222; }
- .value strong { color: #4d1658; }
- /* Em bloco próprio: no dompdf a tarja inline invade a linha de cima. */
- .badge-dependent {
- display: block; background-color: #f3e5f5; color: #4d1658;
- border: 1px solid #c9a3dc; border-radius: 3px; padding: 3px 8px; margin-top: 6px;
- font-size: 10px; font-weight: bold; text-transform: uppercase; width: 200px;
- }
- .price-box {
- background-color: #f3e5f5; border: 1px solid #c9a3dc; border-radius: 4px;
- padding: 10px 14px; text-align: right;
- }
- .price-box .amount { font-size: 20px; font-weight: bold; color: #4d1658; }
- .footer { margin-top: 18px; color: #8a7f8f; font-size: 10px; text-align: center; line-height: 1.5; }
- .signature { margin-top: 42px; }
- .signature td { width: 45%; padding-top: 6px; border-top: 1px solid #999; text-align: center; font-size: 10px; color: #666; }
- .signature .spacer { width: 10%; border: none; }
- </style>
- </head>
- <body>
- <div class="header">
- <span class="order">Nº {{ $guide['order_number'] }}</span>
- <div class="brand">SerPrati</div>
- <div class="title">Guia de Atendimento</div>
- </div>
- <div class="section-title">Beneficiário</div>
- <div class="section">
- <table class="fields">
- <tr>
- <td>
- <div class="label">Titular</div>
- <div class="value">{{ $guide['holder_name'] ?? '—' }}</div>
- </td>
- <td>
- <div class="label">Crachá</div>
- <div class="value"><strong>{{ $guide['holder_badge'] ?? '—' }}</strong></div>
- </td>
- </tr>
- @if ($guide['dependent_name'])
- <tr>
- <td colspan="2">
- <div class="label">Dependente</div>
- <div class="value">{{ $guide['dependent_name'] }}</div>
- <div class="badge-dependent">Atendimento para dependente</div>
- </td>
- </tr>
- @endif
- </table>
- </div>
- <div class="section-title">Atendimento</div>
- <div class="section">
- <table class="fields">
- <tr>
- <td>
- <div class="label">Médico / Serviço</div>
- <div class="value">{{ $guide['doctor_name'] ?? '—' }}</div>
- </td>
- <td>
- <div class="label">Clínica</div>
- <div class="value">{{ $guide['clinic_name'] ?? '—' }}</div>
- </td>
- </tr>
- <tr>
- <td>
- <div class="label">Data da consulta</div>
- <div class="value"><strong>{{ $guide['date'] ?? '—' }}</strong></div>
- </td>
- <td>
- <div class="label">Horário</div>
- <div class="value"><strong>{{ $guide['time'] ?? '—' }}</strong></div>
- </td>
- </tr>
- @if ($guide['clinic_address'] || $guide['clinic_phone'])
- <tr>
- <td>
- <div class="label">Endereço</div>
- <div class="value">{{ $guide['clinic_address'] ?? '—' }}</div>
- </td>
- <td>
- <div class="label">Telefone</div>
- <div class="value">{{ $guide['clinic_phone'] ?? '—' }}</div>
- </td>
- </tr>
- @endif
- @if ($guide['observations'])
- <tr>
- <td colspan="2">
- <div class="label">Observações</div>
- <div class="value">{{ $guide['observations'] }}</div>
- </td>
- </tr>
- @endif
- </table>
- </div>
- <div class="section-title">Guia</div>
- <div class="section">
- <table class="fields">
- <tr>
- <td>
- <div class="label">Data de liberação</div>
- <div class="value">{{ $guide['issued_at'] ?? '—' }}</div>
- </td>
- <td rowspan="2" style="vertical-align: middle;">
- <div class="price-box">
- <div class="label">Valor da consulta</div>
- <div class="amount">{{ $guide['price'] ?? '—' }}</div>
- </div>
- </td>
- </tr>
- <tr>
- <td>
- <div class="label">Válida até</div>
- <div class="value"><strong>{{ $guide['valid_until'] ?? '—' }}</strong></div>
- </td>
- </tr>
- </table>
- <table class="fields signature">
- <tr>
- <td>Assinatura do beneficiário</td>
- <td class="spacer"></td>
- <td>Carimbo e assinatura da clínica</td>
- </tr>
- </table>
- </div>
- <div class="footer">
- Apresente esta guia no atendimento junto com um documento com foto.<br>
- Guia válida somente até {{ $guide['valid_until'] ?? '—' }} e exclusivamente para o atendimento descrito acima.<br>
- © {{ date('Y') }} SerPrati
- </div>
- </body>
- </html>
|