init commit
All checks were successful
build-api-image / build (push) Successful in 51s

This commit is contained in:
Antonio Lopes dos Santos
2026-08-04 16:52:02 -03:00
commit afec302c3e
11594 changed files with 1636728 additions and 0 deletions

View File

@@ -0,0 +1,89 @@
<table>
<tr>
<td style="text-align: center" colspan="{{ $colunas->count() }}">
<strong>{{ $title }}</strong>
</td>
</tr>
<tr>
<td>
<strong>Período:</strong>
</td>
<td>
<strong>Exame:</strong>
</td>
</tr>
<tr>
<td>
De {{ $periodo['start'] }} até {{ $periodo['end'] }}
</td>
<td>
{{ $exame_nome }}
</td>
</tr>
<tr>
<td>
<strong>Unidade de coleta:</strong>
</td>
<td>
<strong>Local de atendimento:</strong>
</td>
</tr>
<tr>
<td>
{{ $coleta_unidade_nome }}
</td>
<td>
{{ $coleta_infraestrutura_nome }}
</td>
</tr>
<tr>
<td>
<strong>Paciente:</strong>
</td>
<td>
<strong>Prontuário:</strong>
</td>
</tr>
<tr>
<td>
{{ $paciente }}
</td>
<td>
{{ $prontuario }}
</td>
</tr>
</table>
<table>
<thead>
<tr>
@foreach ($colunas as $coluna)
<th>
<strong>{{ $coluna['label'] }}</strong>
</th>
@endforeach
</tr>
</thead>
<tbody>
@foreach ($agendamentos as $agendamento)
<tr>
@foreach ($colunas as $coluna)
<td class="{{ $coluna['class'] }} background-white">{{ $agendamento[$coluna['key']] ?? '-' }}</td>
@endforeach
</tr>
@endforeach
</tbody>
</table>

View File

@@ -0,0 +1,138 @@
<table>
<tr>
<td style="text-align: center" colspan="{{ $colunas->count() }}">
<strong>{{ $title }}</strong>
</td>
</tr>
<tr>
<td colspan="2">
<strong>Período</strong>
</td>
<td>
<strong>Unidade</strong>
</td>
<td>
<strong>Profissional</strong>
</td>
<td>
<strong>Supervisor</strong>
</td>
<td>
<strong>Exame</strong>
</td>
<td>
<strong>Status</strong>
</td>
</tr>
<tr>
<td colspan="2">
De {{ $inicio }} até {{ $fim }}
</td>
<td>
{{ $unidade }}
</td>
<td>
{{ $profissional }}
</td>
<td>
{{ $supervisor }}
</td>
<td>
{{ $exame }}
</td>
<td>
{{ $status }}
</td>
</tr>
</table>
<table>
<thead>
<tr>
@foreach ($colunas as $coluna)
<th>
<strong>{{ $coluna['label'] }}</strong>
</th>
@endforeach
</tr>
</thead>
<tbody>
@foreach ($itens as $item)
<tr>
@foreach ($colunas as $coluna)
<td>{{ $item->{$coluna['key']} ?? '-' }}</td>
@endforeach
</tr>
@endforeach
</tbody>
<tfoot>
<tr>
<th colspan="{{ $colunas->count() }}"></th>
</tr>
<tr>
<th colspan="{{ $colunas->count() }}"><strong>Exame(s) bloqueado(s)</strong></th>
</tr>
<tr>
<th>
Quantidade: {{ $totalizadores['quantidade_bloqueado'] }}
</th>
<th>
Valor: {{ $totalizadores['total_bloqueado'] }}
</th>
<th colspan="{{ $colunas->count() - 2}}"></th>
</tr>
<tr>
<th colspan="{{ $colunas->count() }}"></th>
</tr>
<tr>
<th colspan="{{ $colunas->count() }}"><strong>Exame(s) liberado(s)</strong></th>
</tr>
<tr>
<th>
Quantidade: {{ $totalizadores['quantidade_liberado'] }}
</th>
<th>
Valor: {{ $totalizadores['total_liberado'] }}
</th>
<th colspan="{{ $colunas->count() - 2}}"></th>
</tr>
<tr>
<th colspan="{{ $colunas->count() }}"></th>
</tr>
<tr>
<th colspan="{{ $colunas->count() }}"><strong>Total</strong></th>
</tr>
<tr>
<th>
Quantidade: {{ $totalizadores['quantidade_total'] }}
</th>
<th>
Valor: {{ $totalizadores['total'] }}
</th>
<th colspan="{{ $colunas->count() - 2}}"></th>
</tr>
</tfoot>
</table>

View File

@@ -0,0 +1,124 @@
<table>
<tr>
<td style="text-align: center" colspan="{{ $colunas->count() }}">
<strong>{{ $title }}</strong>
</td>
</tr>
<tr>
<td colspan="2">
<strong>Período:</strong>
</td>
</tr>
<tr>
<td colspan="2">
De {{ $periodo['start'] }} até {{ $periodo['end'] }}
</td>
</tr>
<tr>
<td>
<strong>Laboratório:</strong>
</td>
<td>
<strong>Local de atendimento:</strong>
</td>
</tr>
<tr>
<td>
{{ $laboratorio_nome }}
</td>
<td>
{{ $laboratorio_infraestrutura_nome }}
</td>
</tr>
<tr>
<td>
<strong>Unidade Solicitante:</strong>
</td>
<td>
<strong>Local de atendimento:</strong>
</td>
</tr>
<tr>
<td>
{{ $unidade_nome }}
</td>
<td>
{{ $infraestrutura_nome }}
</td>
</tr>
<tr>
<td>
<strong>Grupo:</strong>
</td>
<td>
<strong>Exame:</strong>
</td>
</tr>
<tr>
<td>
{{ $grupo_nome }}
</td>
<td>
{{ $exame_nome }}
</td>
</tr>
</table>
<table>
<thead>
<tr>
@foreach ($colunas as $coluna)
<th>
<strong>{{ $coluna['label'] }}</strong>
</th>
@endforeach
</tr>
</thead>
<tbody>
<tr>
<td>
<table>
<tr>
@foreach ($colunas as $coluna)
<th>{{ $coluna['label'] }}</th>
@endforeach
</tr>
@foreach ($exames as $exame)
<tr>
@foreach ($colunas as $coluna)
<td>
{{ $exame[$coluna['key']] ?? '-' }}
@if ($coluna['key'] == 'paciente_nome')
@if (!empty($exame['paciente_nome_social']))
({{ $exame['paciente_nome_social'] }})
@endif
@endif
</td>
@endforeach
</tr>
@endforeach
</table>
</td>
</tr>
</tbody>
</table>

View File

@@ -0,0 +1,121 @@
<table>
<tr>
<td style="text-align: center" colspan="{{ $colunas->count() }}">
<strong>{{ $title }}</strong>
</td>
</tr>
<tr>
<td>
<strong>Período:</strong>
</td>
<td>
<strong>Exame:</strong>
</td>
</tr>
<tr>
<td>
De {{ $periodo['start'] }} até {{ $periodo['end'] }}
</td>
<td>
{{ $exame_nome }}
</td>
</tr>
<tr>
<td>
<strong>Unidade de coleta:</strong>
</td>
<td>
<strong>Local de atendimento:</strong>
</td>
</tr>
<tr>
<td>
{{ $coleta_unidade_nome }}
</td>
<td>
{{ $coleta_infraestrutura_nome }}
</td>
</tr>
<tr>
<td>
<strong>Laboratório:</strong>
</td>
<td>
<strong>Local de atendimento:</strong>
</td>
</tr>
<tr>
<td>
{{ $laboratorio_nome_fantasia }}
</td>
<td>
{{ $laboratorio_infraestrutura_nome }}
</td>
</tr>
</table>
<table>
<thead>
<tr>
@foreach ($colunas as $coluna)
<th>
<strong>{{ $coluna['label'] }}</strong>
</th>
@endforeach
</tr>
</thead>
<tbody>
@php
$quantidade = 0;
$quantidadeReagentes = 0;
@endphp
@foreach ($agendamentos as $agendamento)
@php
$quantidade = $quantidade + $agendamento['quantidade'];
$quantidadeReagentes = $quantidadeReagentes + $agendamento['quantidade_reagente'];
@endphp
<tr>
@foreach ($colunas as $coluna)
<td class="{{ $coluna['class'] }} background-white">{{ $agendamento[$coluna['key']] ?? '-' }}</td>
@endforeach
</tr>
@if ($loop->last)
<tr>
<th colspan="{{ $colunas->count() - 2 }}">
<strong>
Total
</strong>
</th>
<th>
<strong>
{{ $quantidade }}
</strong>
</th>
<th>
<strong>
{{ $quantidadeReagentes }}
</strong>
</th>
</tr>
@endif
@endforeach
</tbody>
</table>

View File

@@ -0,0 +1,273 @@
<table>
<tr>
<td style="text-align: center" colspan="{{ $colunas->count() }}">
<strong>{{ $title }}</strong>
</td>
</tr>
<tr>
<td>
<strong>Período:</strong>
</td>
<td>
<strong>Exame:</strong>
</td>
</tr>
<tr>
<td>
De {{ $periodo['start'] }} até{{ $periodo['end'] }}
</td>
<td>
{{ $exame_grupo }}
</td>
</tr>
<tr>
<td>
<strong>Status:</strong>
</td>
<td>
<strong>Prontuário:</strong>
</td>
</tr>
<tr>
<td>
@if ($status->count() == 7)
TODOS
@else
@foreach ($status as $statusNome)
@if ($loop->last)
{{ $statusNome['nome'] }}.
@else
{{ $statusNome['nome'] }},
@endif
@endforeach
@endif
</td>
<td>
{{ $prontuario }}
</td>
</tr>
<tr>
<td>
<strong>Unidade Solicitante:</strong>
</td>
<td>
<strong>Local de atendimento:</strong>
</td>
</tr>
<tr>
<td>
{{ $unidade_nome }}
</td>
<td>
{{ $infraestrutura_nome }}
</td>
</tr>
<tr>
<td>
<strong>Unidade de coleta:</strong>
</td>
<td>
<strong>Local de atendimento:</strong>
</td>
</tr>
<tr>
<td>
{{ $coleta_unidade_nome }}
</td>
<td>
{{ $coleta_infraestrutura_nome }}
</td>
</tr>
<tr>
<td>
<strong>Laboratório:</strong>
</td>
<td>
<strong>Local de atendimento:</strong>
</td>
</tr>
<tr>
<td>
{{ $laboratorio_nome }}
</td>
<td>
{{ $laboratorio_infraestrutura_nome }}
</td>
</tr>
</table>
<table>
<thead>
<tr>
@foreach ($colunas as $coluna)
<th>
<strong>{{ $coluna['label'] }}</strong>
</th>
@endforeach
</tr>
</thead>
<tbody>
<tr>
<td>
@foreach ($unidade_coleta as $coleta)
@foreach ($coleta['agendamentos'] as $agendamento)
<table>
<thead>
@if ($loop->first)
<tr>
<th colspan="{{ $colunas->count() }}">
<strong>
Unidade de coleta: {{ $coleta['coleta_nome_fantasia'] }}
- Local de atendimento: {{ $coleta['coleta_infraestrutura_nome'] }}
</strong>
</th>
</tr>
@endif
<tr>
<th colspan="{{ $colunas->count() }}">
<strong>
Paciente: {{ $agendamento['paciente_nome'] }}
@if (!empty($agendamento['paciente_nome_social']))
({{ $agendamento['paciente_nome_social'] }})
@endif
- Prontuário: {{ $agendamento['paciente_prontuario'] }}
- Agendamento: {{ $agendamento['agendamento_numero'] }}
</strong>
</th>
</tr>
<tr>
@foreach ($colunas as $coluna)
<th class="{{ $coluna['class'] }}"><strong>{{ $coluna['label'] }}</strong></th>
@endforeach
</tr>
</thead>
<tbody>
@foreach ($agendamento['exames'] as $item)
<tr>
@foreach ($colunas as $coluna)
<td class="{{ $coluna['class'] }} background-white">{{ $item[$coluna['key']] ?? '-' }}</td>
@endforeach
</tr>
@endforeach
<tr>
<th colspan="{{ $colunas->count() }}" style="text-align: right">
<strong>Total de exames: {{ $agendamento['exames']->count() }}</strong>
</th>
</tr>
@if ($loop->last)
<tr>
<th colspan="{{ $colunas->count() }}">
<strong>
Total de exames da unidade de coleta: {{ $coleta['coleta_nome_fantasia'] }}
- Local de atendimento: {{ $coleta['coleta_infraestrutura_nome'] }}: {{$coleta['total_exames']}}
</strong>
</th>
</tr>
@endif
</tbody>
</table>
@endforeach
@endforeach
</td>
</tr>
<tr>
<td>
<table>
<tr>
<th colspan="{{ $status->count() }}">
<strong>Status dos exames</strong>
</th>
</tr>
@if (in_array(\App\Enums\ExameLaboratorial\StatusAgendamento::AGENDADO, $total_status))
<tr>
<td class="col-2 text-center">
<strong>Agendado: {{ $agendado }}</strong>
</td>
</tr>
@endif
@if (in_array(\App\Enums\ExameLaboratorial\StatusAgendamento::NAO_REALIZADO, $total_status))
<tr>
<td class="col-2 text-center">
<strong>Não coletado: {{ $nao_coletado }}</strong>
</td>
</tr>
@endif
@if (in_array(\App\Enums\ExameLaboratorial\StatusAgendamento::REALIZADO, $total_status))
<tr>
<td class="col-2 text-center">
<strong>Coleta realizada: {{ $coleta_realizada }}</strong>
</td>
</tr>
@endif
@if (in_array(\App\Enums\ExameLaboratorial\StatusAgendamento::PENDENTE_ASSINATURA, $total_status))
<tr>
<td class="col-2 text-center">
<strong>Pendente de assinatura: {{ $pendente_assinatura }}</strong>
</td>
</tr>
@endif
@if (in_array(\App\Enums\ExameLaboratorial\StatusAgendamento::ASSINADO, $total_status))
<tr>
<td class="col-2 text-center">
<strong>Pendente de impressão: {{ $pendente_impressao }}</strong>
</td>
</tr>
@endif
@if (in_array(\App\Enums\ExameLaboratorial\StatusAgendamento::PENDENTE_ENTREGA, $total_status))
<tr>
<td class="col-2 text-center">
<strong>Pendente de entrega: {{ $pendente_entrega }}</strong>
</td>
</tr>
@endif
@if (in_array(\App\Enums\ExameLaboratorial\StatusAgendamento::ENTREGUE, $total_status))
<tr>
<td class="col-2 text-center">
<strong>Entregue: {{ $entregue }}</strong>
</td>
</tr>
@endif
</table>
</td>
</tr>
</tbody>
</table>

View File

@@ -0,0 +1,89 @@
<table>
<tr>
<td style="text-align: center" colspan="{{ $colunas->count() }}">
<strong>{{ $title }}</strong>
</td>
</tr>
<tr>
<td>
<strong>Período:</strong>
</td>
<td>
<strong>Exame:</strong>
</td>
</tr>
<tr>
<td>
De {{ $periodo['start'] }} até {{ $periodo['end'] }}
</td>
<td>
{{ $exame_nome }}
</td>
</tr>
<tr>
<td>
<strong>Unidade solicitante:</strong>
</td>
<td>
<strong>Local de atendimento:</strong>
</td>
</tr>
<tr>
<td>
{{ $coleta_unidade_nome }}
</td>
<td>
{{ $coleta_infraestrutura_nome }}
</td>
</tr>
<tr>
<td>
<strong>Laboratório:</strong>
</td>
<td>
<strong>Local de atendimento:</strong>
</td>
</tr>
<tr>
<td>
{{ $laboratorio_nome_fantasia }}
</td>
<td>
{{ $laboratorio_infraestrutura_nome }}
</td>
</tr>
</table>
<table>
<thead>
<tr>
@foreach ($colunas as $coluna)
<th>
<strong>{{ $coluna['label'] }}</strong>
</th>
@endforeach
</tr>
</thead>
<tbody>
@foreach ($agendamentos as $agendamento)
<tr>
@foreach ($colunas as $coluna)
<td class="{{ $coluna['class'] }} background-white">{{ $agendamento[$coluna['key']] ?? '-' }}</td>
@endforeach
</tr>
@endforeach
</tbody>
</table>

View File

@@ -0,0 +1,129 @@
<table>
<tr>
<td style="text-align: center" colspan="{{ $colunas->count() }}">
<strong>{{ $title }}</strong>
</td>
</tr>
<tr>
<td colspan="2">
<strong>Período:</strong>
</td>
</tr>
<tr>
<td colspan="2">
De {{ $periodo['start'] }} até {{ $periodo['end'] }}
</td>
</tr>
<tr>
<td>
<strong>Unidade Solicitante:</strong>
</td>
<td>
<strong>Local de atendimento:</strong>
</td>
</tr>
<tr>
<td>
{{ $unidade_nome }}
</td>
<td>
{{ $infraestrutura_nome }}
</td>
</tr>
<tr>
<td>
<strong>Unidade de coleta:</strong>
</td>
<td>
<strong>Local de atendimento:</strong>
</td>
</tr>
<tr>
<td>
{{ $coleta_unidade_nome }}
</td>
<td>
{{ $coleta_infraestrutura_nome }}
</td>
</tr>
<tr>
<td>
<strong>Laboratório:</strong>
</td>
<td>
<strong>Local de atendimento:</strong>
</td>
</tr>
<tr>
<td>
{{ $laboratorio_nome }}
</td>
<td>
{{ $laboratorio_infraestrutura_nome }}
</td>
</tr>
</table>
<table>
<thead>
<tr>
@foreach ($colunas as $coluna)
<th>
<strong>{{ $coluna['label'] }}</strong>
</th>
@endforeach
</tr>
</thead>
<tbody>
<tr>
<td>
<table>
<thead>
<tr>
@foreach ($colunas as $coluna)
<th class="{{ $coluna['class'] }}"><strong>{{ $coluna['label'] }}</strong></th>
@endforeach
</tr>
</thead>
<tbody>
@foreach ($exames as $exame)
<tr>
@foreach ($colunas as $coluna)
<td class="{{ $coluna['class'] }} background-white">{{ $exame[$coluna['key']] ?? '-' }}</td>
@endforeach
</tr>
@endforeach
<tr>
<th colspan="{{ $colunas->count() - 2 }}"></th>
<th>
<strong>Total</strong>
</th>
<th>
<strong>{{ $total }}</strong>
</th>
</tr>
<tr><td colspan="{{ $colunas->count() }}"></td></tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>

View File

@@ -0,0 +1,242 @@
<table>
<tr>
<td style="text-align: center" colspan="{{ $colunas->count() }}">
<strong>{{ $title }}</strong>
</td>
</tr>
<tr>
<td>
<strong>Período:</strong>
</td>
<td>
<strong>Exame:</strong>
</td>
</tr>
<tr>
<td>
De {{ $periodo['start'] }} até {{ $periodo['end'] }}
</td>
<td>
{{ $exame_grupo }}
</td>
</tr>
<tr>
<td>
<strong>Status:</strong>
</td>
<td>
<strong>Prontuário:</strong>
</td>
</tr>
<tr>
<td>
@if ($status->count() == 4)
TODOS
@else
@foreach ($status as $statusNome)
@if ($loop->last)
{{ $statusNome['nome'] }}.
@else
{{ $statusNome['nome'] }},
@endif
@endforeach
@endif
</td>
<td>
{{ $prontuario }}
</td>
</tr>
<tr>
<td>
<strong>Unidade Solicitante:</strong>
</td>
<td>
<strong>Local de atendimento:</strong>
</td>
</tr>
<tr>
<td>
{{ $unidade_nome }}
</td>
<td>
{{ $infraestrutura_nome }}
</td>
</tr>
<tr>
<td>
<strong>Unidade de coleta:</strong>
</td>
<td>
<strong>Local de atendimento:</strong>
</td>
</tr>
<tr>
<td>
{{ $coleta_unidade_nome }}
</td>
<td>
{{ $coleta_infraestrutura_nome }}
</td>
</tr>
<tr>
<td>
<strong>Laboratório:</strong>
</td>
<td>
<strong>Local de atendimento:</strong>
</td>
</tr>
<tr>
<td>
{{ $laboratorio_nome }}
</td>
<td>
{{ $laboratorio_infraestrutura_nome }}
</td>
</tr>
<tr>
<td>
<strong>Paciente:</strong>
</td>
<td>
<strong>Prontuário:</strong>
</td>
</tr>
<tr>
<td>
{{ $paciente_nome }}
</td>
<td>
{{ $prontuario }}
</td>
</tr>
</table>
<table>
<thead>
<tr>
@foreach ($colunas as $coluna)
<th>
<strong>{{ is_array($coluna) ? ($coluna['label'] ?? $coluna) : $coluna }}</strong>
</th>
@endforeach
</tr>
</thead>
<tbody>
<tr>
<td>
@foreach ($agendamentos as $agendamento)
<table>
<thead>
<tr>
<th colspan="{{ $colunas->count() }}">
<strong>
Paciente: {{ $agendamento['paciente_nome'] }}
@if (!empty($agendamento['paciente_nome_social']))
({{ $agendamento['paciente_nome_social'] }})
@endif
- Prontuário: {{ $agendamento['paciente_prontuario'] }}
- Data de nascimento: {{ $agendamento['paciente_nascimento'] }}
- CNS: {{$agendamento['paciente_cns']}}
- CPF: {{$agendamento['paciente_cpf']}}
</strong>
</th>
</tr>
<tr>
@foreach ($colunas as $coluna)
<th><strong>{{ is_array($coluna) ? ($coluna['label'] ?? $coluna) : $coluna }}</strong></th>
@endforeach
</tr>
</thead>
<tbody>
@foreach ($agendamento['exames'] as $item)
<tr>
@foreach ($colunas as $coluna)
@php
$key = is_array($coluna) ? ($coluna['key'] ?? $coluna) : $coluna;
@endphp
<td class="background-white">{{ $item[$key] ?? '-' }}</td>
@endforeach
</tr>
@endforeach
<tr>
<th class="table-td"></th>
<th colspan="{{ $colunas->count() - 3 }}">
<strong>Total de exames: {{ $agendamento['total']['quantidade'] }}</strong>
</th>
<th>
<strong>Total médio: {{ $agendamento['total']['valor_medio'] }}</strong>
</th>
<th>
<strong>Total: {{ $agendamento['total']['valor_total'] }}</strong>
</th>
</tr>
<tr><td colspan="{{ $colunas->count() }}"></td></tr>
</tbody>
</table>
@endforeach
</td>
</tr>
<tr>
<td>
<table>
<tr>
<th colspan="{{ $status->count() }}">
<strong>Total</strong>
</th>
</tr>
<tr>
<td>
Exames: {{ $total['quantidade'] }}
</td>
</tr>
<tr>
<td>
Valor médio: {{ $total['valor_medio'] }}
</td>
</tr>
<tr>
<td>
Valor total: {{ $total['valor_total'] }}
</td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>

View File

@@ -0,0 +1,126 @@
<table>
<tr>
<td style="text-align: center" colspan="{{ $colunas->count() }}">
<strong>{{ $title }}</strong>
</td>
</tr>
<tr>
<td>
<strong>Período:</strong>
</td>
<td>
<strong>Exame:</strong>
</td>
</tr>
<tr>
<td>
De {{ $periodo['start'] }} até {{ $periodo['end'] }}
</td>
<td>
{{ $exame_grupo }}
</td>
</tr>
<tr>
<td>
<strong>Status:</strong>
</td>
<td>
<strong>Paciente:</strong>
</td>
</tr>
<tr>
<td>
@if ($status->count() == 4)
TODOS
@else
@foreach ($status as $statusNome)
@if ($loop->last)
{{ $statusNome['nome'] }}.
@else
{{ $statusNome['nome'] }},
@endif
@endforeach
@endif
</td>
<td>
{{ $paciente_nome }}
</td>
</tr>
<tr>
<td>
<strong>Unidade Solicitante:</strong>
</td>
<td>
<strong>Local de atendimento:</strong>
</td>
</tr>
<tr>
<td>
{{ $unidade_nome }}
</td>
<td>
{{ $infraestrutura_nome }}
</td>
</tr>
</table>
<table>
<tbody>
<tr>
<td>
<table>
<thead>
<tr>
@foreach ($colunas as $coluna)
<th><strong>{{ $coluna['label'] }}</strong></th>
@endforeach
</tr>
</thead>
<tbody>
@foreach ($agendamentos as $item)
<tr>
@foreach ($colunas as $coluna)
<td class="{{ $coluna['class'] }} background-white">
{{ $item[$coluna['key']] ?? '-' }}
@if ($coluna['key'] == 'paciente_nome')
@if (!empty($item['paciente_nome_social']))
({{ $item['paciente_nome_social'] }})
@endif
@endif
</td>
@endforeach
</tr>
@endforeach
<tr>
<td colspan="{{ $colunas->count() - 2 }}"></td>
<td><strong>Total</strong></td>
<td><strong>{{ $total }}</strong></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>

View File

@@ -0,0 +1,78 @@
<table>
<tr>
<td style="text-align: center" colspan="{{ $colunas->count() }}">
<strong>{{ $title }}</strong>
</td>
</tr>
<tr>
<td>
<strong>Período:</strong>
</td>
<td>
<strong>Unidade:</strong>
</td>
</tr>
<tr>
<td>
De {{ $inicio }} até {{ $fim }}
</td>
<td>
{{ $unidade }}
</td>
</tr>
<tr>
<td>
<strong>Local de atendimento:</strong>
</td>
<td>
<strong>Médico:</strong>
</td>
</tr>
<tr>
<td>
{{ $local }}
</td>
<td>
{{ $medico }}
</td>
</tr>
</table>
<table>
<thead>
<tr>
@foreach ($colunas as $coluna)
<th>
<strong>{{ $coluna['label'] }}</strong>
</th>
@endforeach
</tr>
</thead>
<tbody>
@foreach ($itens as $item)
<tr>
@foreach ($colunas as $coluna)
<td>{{ $item->{$coluna['key']} ?? '-' }}</td>
@endforeach
</tr>
@endforeach
</tbody>
<tfoot>
<tr>
<th colspan="{{ $colunas->count() }}" style="text-align: right">
<strong>Total: {{ $totalizadores['total'] }}</strong>
</th>
</tr>
</tfoot>
</table>

View File

@@ -0,0 +1,115 @@
<table>
<tr>
<td style="text-align: center" colspan="{{ $colunas->count() }}">
<strong>{{ $title }}</strong>
</td>
</tr>
<tr>
<td><strong>Período:</strong></td>
<td><strong>Exame:</strong></td>
</tr>
<tr>
<td>De {{ $periodo['start'] }} até {{ $periodo['end'] }}</td>
<td>{{ $exame_nome }}</td>
</tr>
<tr>
<td><strong>Unidade de coleta:</strong></td>
<td><strong>Local de atendimento:</strong></td>
</tr>
<tr>
<td>{{ $coleta_unidade_nome }}</td>
<td>{{ $coleta_infraestrutura_nome }}</td>
</tr>
<tr>
<td><strong>Laboratório:</strong></td>
<td><strong>Local de atendimento:</strong></td>
</tr>
<tr>
<td>{{ $laboratorio_nome_fantasia }}</td>
<td>{{ $laboratorio_infraestrutura_nome }}</td>
</tr>
</table>
<table>
<thead>
<tr>
@foreach ($colunas as $coluna)
<th>
<strong>{{ $coluna['label'] }}</strong>
</th>
@endforeach
</tr>
</thead>
<tbody>
<tr>
<td>
@foreach ($unidade_coleta as $coleta)
<table>
@foreach ($coleta['exames'] as $agendamento)
<thead>
@if ($loop->first)
<tr>
<th colspan="{{ $colunas->count()}}">
<strong>
Unidade de coleta: {{ $coleta['coleta_nome_fantasia'] }}
- Local de atendimento: {{ $coleta['coleta_infraestrutura_nome'] }}
</strong>
</th>
</tr>
<tr>
<th colspan="{{ $colunas->count()}}">
<strong>
Laboratório: {{ $coleta['laboratorio_nome_fantasia'] }}
- Local de atendimento: {{ $coleta['laboratorio_infraestrutura_nome'] }}
</strong>
</th>
</tr>
@endif
@if ($loop->first)
<tr>
@foreach ($colunas as $coluna)
<th class="{{ $coluna['class'] }}">
<strong>
{{ $coluna['label'] }}
</strong>
</th>
@endforeach
</tr>
@endif
</thead>
<tbody>
<tr>
@foreach ($colunas as $coluna)
<td class="{{ $coluna['class'] }} background-white">
{{ $agendamento[$coluna['key']] ?? '-' }}
</td>
@endforeach
</tr>
@if ($loop->last)
<tr>
<th colspan="{{ $colunas->count() }}" style="text-align: right">
<strong>
Total de exames: {{$coleta['total_exames']}}
</strong>
</th>
</tr>
@endif
</tbody>
@endforeach
</table>
@endforeach
</td>
</tr>
</tbody>
</table>

View File

@@ -0,0 +1,142 @@
<table>
<tr>
<td style="text-align: center" colspan="{{ $colunas->count() }}">
<strong>{{ $title }}</strong>
</td>
</tr>
<tr>
<td><strong>Período:</strong></td>
<td><strong>Exame:</strong></td>
</tr>
<tr>
<td>De {{ $periodo['start'] }} até {{ $periodo['end'] }}</td>
<td>{{ $exame_nome }}</td>
</tr>
<tr>
<td><strong>Unidade de coleta:</strong></td>
<td><strong>Local de atendimento:</strong></td>
</tr>
<tr>
<td>{{ $coleta_unidade_nome }}</td>
<td>{{ $coleta_infraestrutura_nome }}</td>
</tr>
<tr>
<td><strong>Laboratório:</strong></td>
<td><strong>Local de atendimento:</strong></td>
</tr>
<tr>
<td>{{ $laboratorio_nome_fantasia }}</td>
<td>{{ $laboratorio_infraestrutura_nome }}</td>
</tr>
<tr>
<td><strong>Ocupação:</strong></td>
<td><strong>Profissional:</strong></td>
</tr>
<tr>
<td>{{ $ocupacao }}</td>
<td>{{ $profissional }}</td>
</tr>
<tr>
<td><strong>Procedimento:</strong></td>
<td><strong>Status:</strong></td>
</tr>
<tr>
<td>{{ $procedimento }}</td>
<td>{{ $status }}</td>
</tr>
<tr>
<td><strong>Idade de:</strong></td>
<td><strong>Idade até:</strong></td>
</tr>
<tr>
<td>{{ $idade_de }}</td>
<td>{{ $idade_ate }}</td>
</tr>
</table>
<table>
<thead>
<tr>
@foreach ($colunas as $coluna)
<th>
<strong>{{ $coluna['label'] }}</strong>
</th>
@endforeach
</tr>
</thead>
<tbody>
<tr>
<td>
@foreach ($unidade_coleta as $coleta)
<table>
@foreach ($coleta['exames'] as $agendamento)
<thead>
@if ($loop->first)
<tr>
<th colspan="{{ $colunas->count()}}">
<strong>
Unidade de coleta: {{ $coleta['coleta_nome_fantasia'] }}
- Local de atendimento: {{ $coleta['coleta_infraestrutura_nome'] }}
</strong>
</th>
</tr>
<tr>
<th colspan="{{ $colunas->count()}}">
<strong>
Laboratório: {{ $coleta['laboratorio_nome_fantasia'] }}
- Local de atendimento: {{ $coleta['laboratorio_infraestrutura_nome'] }}
</strong>
</th>
</tr>
@endif
@if ($loop->first)
<tr>
@foreach ($colunas as $coluna)
<th class="{{ $coluna['class'] }}">
<strong>
{{ $coluna['label'] }}
</strong>
</th>
@endforeach
</tr>
@endif
</thead>
<tbody>
<tr>
@foreach ($colunas as $coluna)
<td class="{{ $coluna['class'] }} background-white">
{{ $agendamento[$coluna['key']] ?? '-' }}
</td>
@endforeach
</tr>
@if ($loop->last)
<tr>
<th colspan="{{ $colunas->count() }}" style="text-align: right">
<strong>
Total de exames: {{$coleta['total']}}
</strong>
</th>
</tr>
@endif
</tbody>
@endforeach
</table>
@endforeach
</td>
</tr>
</tbody>
</table>