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,362 @@
@extends('impressoes.layout1.content')
@section('conteudo')
<fieldset>
<legend>Dados do Paciente</legend>
<div class="row">
<div class="col-4">
<strong>Nome:</strong>
</div>
<div class="col-4">
<strong>Data nascimento:</strong>
</div>
<div class="col-4">
<strong>Número prontuário:</strong>
</div>
</div>
<div class="row">
<div class="col-4">
{{ $params->paciente_nome }}
@if (!empty($params->nome_social))
<strong>({{ $params->nome_social }})</strong>
@endif
</div>
<div class="col-4">
{{$params->data_nascimento}}
</div>
<div class="col-4">
{{$params->prontuario}}
</div>
</div>
<div class="row">
<div class="col-4">
<strong>Sexo:</strong>
</div>
<div class="col-4">
<strong>Nome da mãe:</strong>
</div>
<div class="col-4">
<strong>Unidade referência:</strong>
</div>
</div>
<div class="row">
<div class="col-4">
{{$params->sexo}}
</div>
<div class="col-4">
{{$params->nome_mae}}
</div>
<div class="col-4">
{{$params->unidade_referencia}}
</div>
</div>
</fieldset>
<table class="table">
<thead>
<tr>
<th colspan="6" style="text-align: center">EXAMES AGENDADOS</th>
</tr>
<tr>
<th>Data</th>
<th>Horário</th>
<th>Exames</th>
<th>Unidade executante</th>
<th>Profissional</th>
</tr>
</thead>
@php
use App\Enums\ExameImagem\Fechamento\Status as StatusEnum;
@endphp
@foreach ($historico->filter(function($value){
return count($value['exames_incluidos']->whereIn('status_id',
[StatusEnum::AGENDADO, StatusEnum::REAGENDADO])) > 0 ||
count($value['exames_incluidos']->whereNull('status_id')) > 0;
}) as $agendados)
<tbody>
@foreach($agendados['exames_incluidos'] as $exame)
<tr>
<td class="text-left">{{$agendados['data']}}</td>
<td class="text-left">{{$agendados['hora_exame']}}</td>
<td class="text-left">
{{$exame['nome']}}
</td>
<td class="text-left">{{$agendados['nome_fantasia']}}</td>
<td class="text-left">{{$agendados['profissional_nome']}}</td>
</tr>
@endforeach
</tbody>
@endforeach
</table>
<br />
@php
$realizadosFiltrados = $historico->filter(function($value) {
return $value['exames_incluidos']->whereIn('status_id', [StatusEnum::REALIZADO, StatusEnum::RESULTADO])->count() > 0;
});
@endphp
@if($realizadosFiltrados->count() > 0)
<table class="table">
<thead>
<tr>
<th colspan="6" style="text-align: center">EXAMES REALIZADOS</th>
</tr>
<tr>
<th>Data</th>
<th>Horário</th>
<th>Exames</th>
<th>Unidade executante</th>
<th>Profissional</th>
<th>Status</th>
</tr>
</thead>
@foreach ($realizadosFiltrados as $realizados)
<tbody>
@foreach($realizados['exames_incluidos']->whereIn('status_id', [StatusEnum::REALIZADO, StatusEnum::RESULTADO]) as $exame)
<tr>
<td class="text-left">{{$realizados['data']}}</td>
<td class="text-left">{{$realizados['hora_exame']}}</td>
<td class="text-left">{{$exame['nome']}}</td>
<td class="text-left">{{$realizados['nome_fantasia']}}</td>
<td class="text-left">{{$realizados['profissional_nome']}}</td>
<td class="text-left">
@if($exame['status_id'] == StatusEnum::REALIZADO)
Realizado
@elseif($exame['status_id'] == StatusEnum::RESULTADO)
Resultado Lançado
@endif
</td>
</tr>
@endforeach
</tbody>
@endforeach
</table>
@endif
<br />
@php
$faltasFiltradas = $historico->filter(function($value) {
return $value['exames_incluidos']->whereIn('status_id', [StatusEnum::FALTOU, StatusEnum::FALTA_MEDICA])->count() > 0;
});
@endphp
@if($faltasFiltradas->count() > 0)
<table class="table">
<thead>
<tr>
<th colspan="6" style="text-align: center">FALTAS</th>
</tr>
<tr>
<th>Data</th>
<th>Horário</th>
<th>Exames</th>
<th>Unidade executante</th>
<th>Profissional</th>
<th>Status</th>
</tr>
</thead>
@foreach ($faltasFiltradas as $faltas)
<tbody>
@foreach($faltas['exames_incluidos']->whereIn('status_id', [StatusEnum::FALTOU, StatusEnum::FALTA_MEDICA]) as $exame)
<tr>
<td class="text-left">{{$faltas['data']}}</td>
<td class="text-left">{{$faltas['hora_exame']}}</td>
<td class="text-left">{{$exame['nome']}}</td>
<td class="text-left">{{$faltas['nome_fantasia']}}</td>
<td class="text-left">{{$faltas['profissional_nome']}}</td>
<td class="text-left">
@if($exame['status_id'] == StatusEnum::FALTOU)
Faltou
@elseif($exame['status_id'] == StatusEnum::FALTA_MEDICA)
Falta Médica
@endif
</td>
</tr>
@endforeach
</tbody>
@endforeach
</table>
@endif
<br />
@php
$canceladosFiltrados = $historico->filter(function($value) {
return $value['exames_incluidos']->where('status_id', StatusEnum::CANCELADO)->count() > 0;
});
@endphp
@if($canceladosFiltrados->count() > 0)
<table class="table">
<thead>
<tr>
<th colspan="6" style="text-align: center">EXAMES CANCELADOS</th>
</tr>
<tr>
<th>Data</th>
<th>Horário</th>
<th>Exames</th>
<th>Unidade executante</th>
<th>Profissional</th>
<th>Status</th>
</tr>
</thead>
@foreach ($canceladosFiltrados as $cancelados)
<tbody>
@foreach($cancelados['exames_incluidos']->where('status_id', StatusEnum::CANCELADO) as $exame)
<tr>
<td class="text-left">{{$cancelados['data']}}</td>
<td class="text-left">{{$cancelados['hora_exame']}}</td>
<td class="text-left">{{$exame['nome']}}</td>
<td class="text-left">{{$cancelados['nome_fantasia']}}</td>
<td class="text-left">{{$cancelados['profissional_nome']}}</td>
<td class="text-left">
Cancelado
</td>
</tr>
@endforeach
</tbody>
@endforeach
</table>
@endif
<style>
body {
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
}
strong {
font-size: 14px;
}
fieldset {
display: block;
margin-inline-start: 2px;
margin-inline-end: 2px;
padding-block-start: 0.35em;
padding-inline-start: 0.75em;
padding-inline-end: 0.75em;
padding-block-end: 0.625em;
min-inline-size: min-content;
border-width: 2px;
border-style: groove;
border-color: rgb(192, 192, 192);
border-image: initial;
}
legend {
font-family: Arial, Helvetica, sans-serif;
font-size: 16px;
font-weight: 100 !important;
}
.mt-10 {
margin-top: 10px;
}
.text-titulo {
font-family: Arial, Helvetica, sans-serif;
font-size: 15px;
font-weight: 600;
text-align: center !important;
}
.text-left {
text-align: left !important;
}
.checkbox {
width: 1em;
height: 1em;
margin-top: 0.25em;
vertical-align: top;
border: 2px solid rgba(0, 0, 0, .25);
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
-webkit-print-color-adjust: exact;
color-adjust: exact;
}
h3 {
padding: 0;
margin: 0;
}
p {
padding: 0;
margin: 0;
font-size: 13px;
letter-spacing: 1px
}
.dados {
background-color: #f1f1f1;
}
table {
text-align: center;
border: 1px solid #000000;
}
table tr {
text-align: center;
background-color: #ffffff;
border: 1px solid #000000;
}
table td {
text-align: center;
background-color: #ffffff;
border: 1px solid #000000;
}
table th {
text-align: center !important;
}
footer {
color: #222222;
display: block;
font-family: Helvetica;
font-size: 12px;
padding-top: 5mm;
width: 450px;
line-height: 32px;
}
.footer {
border-top: 2px solid #000000;
width: 450px;
}
.footer-left {
text-align: left;
}
.footer-right {
line-height: 10px;
text-align: right;
}
</style>
@endsection

View File

@@ -0,0 +1,243 @@
@extends('impressoes.layout1.content')
@section('conteudo')
<fieldset style="margin:5px 0">
<legend>Dados do Paciente</legend>
<div class="text-left">
<strong>Paciente:</strong>
<p>
{{ $lancamento->paciente_nome }}
@if ($lancamento->paciente_nome_social)
({{ $lancamento->paciente_nome_social }})
@endif
</p>
</div>
<div style="border-bottom:1px dotted #c7c7c7; margin: 5px 0"></div>
<div class="row">
<div class="cell col-4">
<strong>Prontuário:</strong>
<p>{{$lancamento->prontuario}}</p>
</div>
<div class="cell col-4">
<strong>Data nascimento:</strong>
<p>{{$lancamento->data_nascimento}}</p>
</div>
<div class="cell col-4">
<strong>Idade:</strong>
<p>{{$lancamento->paciente_idade}}</p>
</div>
</div>
@if (!is_null($lancamento->nome_responsavel))
<div style="border-bottom:1px dotted #c7c7c7; margin: 5px 0"></div>
<div class="text-left">
<div class="text-left col-6 border-bottom">
<strong>Responsável:</strong><br />
<p>{{$lancamento->nome_responsavel}}</p>
</div>
</div>
@endif
</fieldset>
<fieldset class="mt-10">
<legend>Dados do agendamento</legend>
<div class="text-titulo">
@if (($lancamento->urgente))
<div class="text-left">
<strong>PEDIDO COM URGÊNCIA</strong>
</div>
<div style="border-bottom:1px dotted #c7c7c7; margin: 5px 0"></div>
@endif
<div class="text-left">
<table>
<tr>
<td style="width:33%;">
<strong>Data do agendamento:</strong><br />
{{$lancamento->data_pedido}}
</td>
<td style="width:2%;background-color:#ffffff;">&nbsp</td>
<td style="width:33%;">
<strong>Data da realização:</strong><br />
{{$lancamento->data}}
</td>
</tr>
</table>
</div>
<div style="border-bottom:1px dotted #c7c7c7; margin: 5px 0"></div>
<div class="text-left">
<table>
<tr>
<td style="width:33%;">
<strong>Unidade solicitante:</strong><br />
{{$lancamento->unidade_solicitante_nome}}
</td>
<td style="width:2%;background-color:#ffffff;">&nbsp</td>
<td style="width:33%;">
<strong>Profissional solicitante:</strong><br />
{{$lancamento->medico_solicitante}}
</td>
</tr>
</table>
</div>
<div style="border-bottom:1px dotted #c7c7c7; margin: 5px 0"></div>
<div class="text-left">
<table>
<tr>
<td style="width:33%;">
<strong>Unidade executante:</strong><br />
{{$lancamento->nome_fantasia}}
</td>
<td style="width:2%;background-color:#ffffff;">&nbsp</td>
<td style="width:33%;">
<strong>Profissional executante:</strong><br />
{{$lancamento->profissional_nome}}
</td>
</tr>
</table>
</div>
</div>
</fieldset>
<div class="mt-10" style="margin-top:20px; min-height:500px;">
<table>
<tr>
<th style="font-size:18px; border-bottom:1px solid #000000;">
{{$lancamento->exame_nome}}
</th>
</tr>
<tr>
<td style="padding:10px 20px;line-height:20x; font-size:14px; text-align:justify;">
<p>Laudo médico:</p>
{!! $lancamento->resultado !!}
</td>
</tr>
</table>
</div>
<div style="margin-top:50px"></div>
<div class="mt-10">
<table>
<tr>
<td style="width:22%;">&nbsp</td>
<td style="width:56%; padding:5px; text-align:center; border-bottom: 0.2px solid #000;">
&nbsp
</td>
<td style="width:22%;">&nbsp</td>
</tr>
<tr>
<td colspan="3" style="font-size:15px; padding-top:5px; text-align:center">
<p style="font-size:12px; font-weight:100, padding-bottom:5px;">Assinatura e carimbo</p>
<p style="font-size:15px;">{{$lancamento->profissional_nome}}</p>
@if (($lancamento->registro_nome))
<p style="font-size:12px;">{{$lancamento->registro_nome}}</p>
@endif
<p style="font-size:12px;">
@if (($lancamento->registro_sigla))
{{$lancamento->registro_sigla}} :
@endif
@if (($lancamento->registro_numero))
{{$lancamento->registro_numero}}
@endif
</p>
</td>
</tr>
</table>
</div>
<style>
body {
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
}
strong{
font-size: 14px;
}
fieldset{
display: block;
margin-inline-start: 2px;
margin-inline-end: 2px;
padding-block-start: 0.35em;
padding-inline-start: 0.75em;
padding-inline-end: 0.75em;
padding-block-end: 0.625em;
min-inline-size: min-content;
border-width: 2px;
border-style: groove;
border-color: rgb(192, 192, 192);
border-image: initial;
}
legend {
font-family: Arial, Helvetica, sans-serif;
font-size: 16px;
font-weight: 100!important;
}
.mt-10 {
margin-top: 10px;
}
.text-titulo {
font-family: Arial, Helvetica, sans-serif;
font-size:15px;
}
.text-center {
text-align: center!important;
}
h3 {
padding: 0;
margin: 0;
}
p {
padding: 0;
margin: 0;
font-size:13px;
letter-spacing: 1px
}
.dados {
background-color: #f1f1f1;
}
table th {
text-align: center;
background-color: #ffffff;
}
footer {
color: #222222;
display: block;
font-family: Helvetica;
font-size: 12px;
padding-top: 5mm;
width: 450px;
line-height: 32px;
}
.footer {
border-top: 2px solid #000000;
width: 450px;
}
.footer-left {
text-align: left;
}
.footer-right {
line-height: 10px;
text-align: right;
}
</style>
@endsection

View File

@@ -0,0 +1,195 @@
@extends('impressoes.layout1.content')
@section('conteudo')
<fieldset>
<legend>Filtros</legend>
<div class="row">
<div class="col-6">
<strong>Período de:</strong>
</div>
<div class="col-6">
<strong>Até: </strong>
</div>
</div>
<div class="row">
<div class="cell col-6">
{{$params['periodo']['start'] }}
</div>
<div class="cell col-6">
{{$params['periodo']['end'] }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Unidade executante:</strong>
</div>
<div class="col-6">
<strong>Profissional executante:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{$params['unidade']}}
</div>
<div class="col-6">
{{$params['profissional']}}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Profissional solicitante:</strong>
</div>
<div class="col-6">
<strong>Grupo de exames:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{$params['medico']}}
</div>
<div class="col-6">
{{$params['grupo']}}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Exames:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{$params['exame']}}
</div>
</div>
</fieldset>
<table class="table">
<thead>
<tr>
<th>Cof</th>
@foreach($params['columns'] as $coluna)
<th>{{ $coluna['label'] }}</th>
@endforeach
</tr>
</thead>
<tbody>
@foreach ($listagem as $plantao)
<tr>
<td><input type="checkbox" class="checkbox"></td>
@foreach($params['columns'] as $coluna)
@if ($coluna['key'] === 'paciente')
<td>
{{$plantao['paciente']}}
@if ($plantao['nome_social'] != null)
<b>
({{ $plantao['nome_social']}})
</b>
@endif
</td>
@else
<td>{{ $plantao[$coluna['key']] }}</td>
@endif
@endforeach
</tr>
@endforeach
</tbody>
</table>
<style>
body {
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
}
strong{
font-size: 14px;
}
fieldset{
display: block;
margin-inline-start: 2px;
margin-inline-end: 2px;
padding-block-start: 0.35em;
padding-inline-start: 0.75em;
padding-inline-end: 0.75em;
padding-block-end: 0.625em;
min-inline-size: min-content;
border-width: 2px;
border-style: groove;
border-color: rgb(192, 192, 192);
border-image: initial;
}
legend {
font-family: Arial, Helvetica, sans-serif;
font-size: 16px;
font-weight: 100!important;
}
.mt-10 {
margin-top: 10px;
}
.text-titulo {
font-family: Arial, Helvetica, sans-serif;
font-size:15px;
}
.text-center {
text-align: center!important;
}
.checkbox {
width: 1em;
height: 1em;
margin-top: 0.25em;
vertical-align: top;
border: 2px solid rgba(0,0,0,.25);
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
-webkit-print-color-adjust: exact;
color-adjust: exact;
}
h3 {
padding: 0;
margin: 0;
}
p {
padding: 0;
margin: 0;
font-size:13px;
letter-spacing: 1px
}
.dados {
background-color: #f1f1f1;
}
table th {
text-align: center;
background-color: #ffffff;
}
footer {
color: #222222;
display: block;
font-family: Helvetica;
font-size: 12px;
padding-top: 5mm;
width: 450px;
line-height: 32px;
}
.footer {
border-top: 2px solid #000000;
width: 450px;
}
.footer-left {
text-align: left;
}
.footer-right {
line-height: 10px;
text-align: right;
}
</style>
@endsection

View File

@@ -0,0 +1,198 @@
@extends('impressoes.layout1.content')
@section('conteudo')
<fieldset>
<legend>Filtros</legend>
<div class="row">
<div class="col-6">
<strong>Período de:</strong>
</div>
<div class="col-6">
<strong>Até: </strong>
</div>
</div>
<div class="row">
<div class="cell col-6">
{{$params['periodo']['start'] }}
</div>
<div class="cell col-6">
{{$params['periodo']['end'] }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Unidade executante:</strong>
</div>
<div class="col-6">
<strong>Grupo de exames:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{$params['executantes']}}
</div>
<div class="col-6">
{{$params['grupos']}}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Profissional executante:</strong>
</div>
<div class="col-6">
<strong>Status:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{$params['profissional']}}
</div>
<div class="col-6">
{{$params['status']}}
</div>
</div>
</fieldset>
<table class="table">
<div style="text-align:right;padding-bottom:10px;">
AT = Atendimentos | V = Vagas
</div>
<thead>
<tr>
<th>Data</th>
<th>Profissional</th>
<th>Grupo de exame</th>
<th>Dia da semana</th>
<th class="text-center">Início</th>
<th class="text-center">Fim</th>
<th class="text-center">Status</th>
<th class="text-center">AT / V</th>
</tr>
</thead>
<tbody>
@foreach ($listagem as $profissional)
<tr>
<td class="text-left">{{$profissional['data']}}</td>
<td class="text-left">{{$profissional['profissional_nome']}}</td>
<td class="text-left">{{$profissional['grupo']}}</td>
<td class="text-left">{{$profissional['nome_semana']}}</td>
<td class="text-center">{{$profissional['hora_inicial']}}</td>
<td class="text-center">{{$profissional['hora_fim']}}</td>
<td class="text-center">{{$profissional['status_nome']}}</td>
<td class="text-center">
{{$profissional['soma']}} / {{$profissional['vagas']}}
</td>
</tr>
@endforeach
<tr>
<td colspan="8">
<strong style="float:left;width:50%;margin:0px">
Total de atendimento: {{$params['totalAtendimento']}}
</strong>
<strong style="float:right;margin:0px" >
Total de vagas: {{$params['vagaTotal']}}
</strong>
</td>
</tr>
</tbody>
</table>
<style>
body {
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
}
strong{
font-size: 14px;
}
fieldset{
display: block;
margin-inline-start: 2px;
margin-inline-end: 2px;
padding-block-start: 0.35em;
padding-inline-start: 0.75em;
padding-inline-end: 0.75em;
padding-block-end: 0.625em;
min-inline-size: min-content;
border-width: 2px;
border-style: groove;
border-color: rgb(192, 192, 192);
border-image: initial;
}
legend {
font-family: Arial, Helvetica, sans-serif;
font-size: 16px;
font-weight: 100!important;
}
.mt-10 {
margin-top: 10px;
}
.text-titulo {
font-family: Arial, Helvetica, sans-serif;
font-size:15px;
}
.text-center {
text-align: center!important;
}
.checkbox {
width: 1em;
height: 1em;
margin-top: 0.25em;
vertical-align: top;
border: 2px solid rgba(0,0,0,.25);
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
-webkit-print-color-adjust: exact;
color-adjust: exact;
}
h3 {
padding: 0;
margin: 0;
}
p {
padding: 0;
margin: 0;
font-size:13px;
letter-spacing: 1px
}
.dados {
background-color: #f1f1f1;
}
table th {
text-align: center;
background-color: #ffffff;
}
footer {
color: #222222;
display: block;
font-family: Helvetica;
font-size: 12px;
padding-top: 5mm;
width: 450px;
line-height: 32px;
}
.footer {
border-top: 2px solid #000000;
width: 450px;
}
.footer-left {
text-align: left;
}
.footer-right {
line-height: 10px;
text-align: right;
}
</style>
@endsection

View File

@@ -0,0 +1,231 @@
@extends('impressoes.layout1.content')
@section('conteudo')
<fieldset>
<legend>Filtros</legend>
<div class="row">
<div class="col-6">
<strong>Período de:</strong>
</div>
<div class="col-6">
<strong>Até: </strong>
</div>
</div>
<div class="row">
<div class="cell col-6">
{{$params['periodo']['start'] }}
</div>
<div class="cell col-6">
{{$params['periodo']['end'] }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Unidade solicitante:</strong>
</div>
<div class="col-6">
<strong>Unidade executante:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{$params['solicitantes']}}
</div>
<div class="col-6">
{{$params['executantes']}}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Profissional executante:</strong>
</div>
<div class="col-6">
<strong>Grupo de exames:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{$params['profissional']}}
</div>
<div class="col-6">
{{$params['grupo'] ?? 'Todos' }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Exames:</strong>
</div>
<div class="col-6">
<strong>Status:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{$params['exame']}}
</div>
<div class="col-6">
{{$params['status']}}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Número prontuário:</strong>
</div>
<div class="col-6">
<strong>Código do exame:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{$params['prontuario'] ?? 'Todos' }}
</div>
<div class="col-6">
{{$params['procedimento'] ?? 'Todos' }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Paciente:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{$params['paciente']['cidadao']['nome'] ?? 'Todos' }}
</div>
</div>
</fieldset>
<table class="table">
<thead>
<tr>
@foreach($params['columns'] as $coluna)
<th>{{ $coluna['label'] }}</th>
@endforeach
</tr>
</thead>
<tbody>
@foreach ($listagem as $plantao)
<tr>
@foreach($params['columns'] as $coluna)
<td>{{ $plantao[$coluna['key']] }}</td>
@endforeach
</tr>
@endforeach
<tr>
<td colspan="{{ count($params['columns']) }}">
<strong>Total de paciente:</strong> {{$params['totalizandoPaciente']}}
</td>
</tr>
<tr>
<td colspan="{{ count($params['columns']) }}" class="background-white">
<strong>Total de exame:</strong> {{$params['totalizandoExames']}}
</td>
</tr>
<tr>
<td colspan="{{ count($params['columns']) }}">
<strong>Valor total:</strong> {{$params['valorExames']}}
</td>
</tr>
</tbody>
</table>
<style>
body {
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
}
strong{
font-size: 14px;
}
fieldset{
display: block;
margin-inline-start: 2px;
margin-inline-end: 2px;
padding-block-start: 0.35em;
padding-inline-start: 0.75em;
padding-inline-end: 0.75em;
padding-block-end: 0.625em;
min-inline-size: min-content;
border-width: 2px;
border-style: groove;
border-color: rgb(192, 192, 192);
border-image: initial;
}
legend {
font-family: Arial, Helvetica, sans-serif;
font-size: 16px;
font-weight: 100!important;
}
.mt-10 {
margin-top: 10px;
}
.text-titulo {
font-family: Arial, Helvetica, sans-serif;
font-size:15px;
}
.text-center {
text-align: center!important;
}
.checkbox {
width: 1em;
height: 1em;
margin-top: 0.25em;
vertical-align: top;
border: 2px solid rgba(0,0,0,.25);
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
-webkit-print-color-adjust: exact;
color-adjust: exact;
}
h3 {
padding: 0;
margin: 0;
}
p {
padding: 0;
margin: 0;
font-size:13px;
letter-spacing: 1px
}
.dados {
background-color: #f1f1f1;
}
table th {
text-align: center;
background-color: #ffffff;
}
footer {
color: #222222;
display: block;
font-family: Helvetica;
font-size: 12px;
padding-top: 5mm;
width: 450px;
line-height: 32px;
}
.footer {
border-top: 2px solid #000000;
width: 450px;
}
.footer-left {
text-align: left;
}
.footer-right {
line-height: 10px;
text-align: right;
}
.background-white {
background-color: #fff!important;
}
</style>
@endsection

View File

@@ -0,0 +1,191 @@
@extends('impressoes.layout1.content')
@section('conteudo')
<fieldset>
<legend>Filtros</legend>
<div class="row">
<div class="col-6">
<strong>Período de:</strong>
</div>
<div class="col-6">
<strong>Até: </strong>
</div>
</div>
<div class="row">
<div class="cell col-6">
{{$params['periodo']['start'] }}
</div>
<div class="cell col-6">
{{$params['periodo']['end'] }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Unidade solicitante:</strong>
</div>
<div class="col-6">
<strong>Unidade executante:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{$params['solicitantes']}}
</div>
<div class="col-6">
{{$params['executantes']}}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Exames:</strong>
</div>
<div class="col-6">
<strong>Código procedimento:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{$params['exame']}}
</div>
<div class="col-6">
{{$params['procedimento'] ?? 'Todos' }}
</div>
</div>
</fieldset>
<table class="table">
<thead>
<tr>
@foreach($params['columns'] as $coluna)
<th>{{ $coluna['label'] }}</th>
@endforeach
</tr>
</thead>
<tbody>
@foreach ($listagem as $financeiro)
<tr>
<td class="text-left">{{$financeiro['nome_procedimento']}}</td>
<td class="text-left">{{$financeiro['procedimento']}}</td>
<td class="text-left">{{$financeiro['exame_nome']}}</td>
<td class="text-left">{{$financeiro['quantidade']}}</td>
<td class="text-left">
@php
echo 'R$ '.number_format($financeiro['valor_unitario'], 2, ',', '.')
@endphp
</td>
<td class="text-left">
@php
$total = $financeiro['quantidade'] * $financeiro['valor_unitario'];
echo 'R$ '.number_format($total, 2, ',', '.')
@endphp
</td>
<td class="text-left">{{$financeiro['status_nome']}}</td>
</tr>
@endforeach
<tr>
<td style="text-align:right" colspan="{{ count($params['columns']) }}">
<strong>
Valor geral: R$: {{$params['totalGeral']}}
</strong>
</td>
</tr>
</tbody>
</table>
<style>
body {
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
}
strong{
font-size: 14px;
}
fieldset{
display: block;
margin-inline-start: 2px;
margin-inline-end: 2px;
padding-block-start: 0.35em;
padding-inline-start: 0.75em;
padding-inline-end: 0.75em;
padding-block-end: 0.625em;
min-inline-size: min-content;
border-width: 2px;
border-style: groove;
border-color: rgb(192, 192, 192);
border-image: initial;
}
legend {
font-family: Arial, Helvetica, sans-serif;
font-size: 16px;
font-weight: 100!important;
}
.mt-10 {
margin-top: 10px;
}
.text-titulo {
font-family: Arial, Helvetica, sans-serif;
font-size:15px;
}
.text-center {
text-align: center!important;
}
.checkbox {
width: 1em;
height: 1em;
margin-top: 0.25em;
vertical-align: top;
border: 2px solid rgba(0,0,0,.25);
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
-webkit-print-color-adjust: exact;
color-adjust: exact;
}
h3 {
padding: 0;
margin: 0;
}
p {
padding: 0;
margin: 0;
font-size:13px;
letter-spacing: 1px
}
.dados {
background-color: #f1f1f1;
}
table th {
text-align: center;
background-color: #ffffff;
}
footer {
color: #222222;
display: block;
font-family: Helvetica;
font-size: 12px;
padding-top: 5mm;
width: 450px;
line-height: 32px;
}
.footer {
border-top: 2px solid #000000;
width: 450px;
}
.footer-left {
text-align: left;
}
.footer-right {
line-height: 10px;
text-align: right;
}
</style>
@endsection

View File

@@ -0,0 +1,229 @@
@extends('impressoes.layout1.content')
@section('conteudo')
<fieldset>
<legend>Filtros</legend>
<div class="row">
<div class="col-4">
<strong>Período:</strong>
</div>
<div class="col-4">
<strong>Unidade Solicitante:</strong>
</div>
<div class="col-4">
<strong>Local de atendimento:</strong>
</div>
</div>
<div class="row">
<div class="col-4">
De {{ $busca['inicio'] }} até {{ $busca['fim'] }}
</div>
<div class="col-4">
{{ $busca['unidadeSolicitante'] }}
</div>
<div class="col-4">
{{ $busca['infraestrutura_solicitante'] }}
</div>
</div>
<div class="row">
<div class="col-4">
<strong>Unidade Executante:</strong>
</div>
<div class="col-4">
<strong>Local de atendimento:</strong>
</div>
<div class="col-4">
<strong>Status:</strong>
</div>
</div>
<div class="row">
<div class="col-4">
{{ $busca['unidadeExecutante'] }}
</div>
<div class="col-4">
{{ $busca['infraestrutura_executante'] }}
</div>
<div class="col-4">
{{ $busca['status'] }}
</div>
</div>
<div class="row">
<div class="col-4">
<strong>Procedimentos:</strong>
</div>
<div class="col-4">
<strong>Exames:</strong>
</div>
<div class="col-4">
<strong>Ocupação:</strong>
</div>
</div>
<div class="row">
<div class="col-4">
{{ $busca['procedimento_nome'] }}
</div>
<div class="col-4">
{{ $busca['exame'] }}
</div>
<div class="col-4">
{{ $busca['ocupacao'] }}
</div>
</div>
<div class="row">
<div class="col-4">
<strong>Profissional:</strong>
</div>
<div class="col-4">
<strong>Prestador:</strong>
</div>
<div class="col-4"></div>
</div>
<div class="row">
<div class="col-4">
{{ $busca['profissional'] }}
</div>
<div class="col-4">
{{ $busca['prestador'] }}
</div>
<div class="col-4"></div>
</div>
</fieldset>
<table class="table table-relatorio">
<thead>
<tr>
@foreach ($busca['colunas'] as $coluna)
<th class="{{ $coluna['class'] }}">{{ $coluna['label'] }}</th>
@endforeach
</tr>
</thead>
<tbody>
@foreach ($itens as $item)
<tr>
@foreach($busca['colunas'] as $coluna)
<td class="{{ $coluna['class'] }}">{{ $item[$coluna['key']] ?? '-' }}</td>
@endforeach
</tr>
@endforeach
<tr>
<td style="text-align:right" colspan="{{ count($busca['colunas']) }}">
<strong>
@foreach($busca['totalExames'] as $total)
Total geral de exames: {{$total}}
@endforeach
</strong>
</td>
</tr>
</tbody>
</table>
<style>
body {
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
}
strong{
font-size: 14px;
}
fieldset{
display: block;
margin-inline-start: 2px;
margin-inline-end: 2px;
padding-block-start: 0.35em;
padding-inline-start: 0.75em;
padding-inline-end: 0.75em;
padding-block-end: 0.625em;
min-inline-size: min-content;
border-width: 2px;
border-style: groove;
border-color: rgb(192, 192, 192);
border-image: initial;
}
legend {
font-family: Arial, Helvetica, sans-serif;
font-size: 16px;
font-weight: 100!important;
}
.mt-10 {
margin-top: 10px;
}
.text-titulo {
font-family: Arial, Helvetica, sans-serif;
font-size:15px;
}
.text-center {
text-align: center!important;
}
.checkbox {
width: 1em;
height: 1em;
margin-top: 0.25em;
vertical-align: top;
border: 2px solid rgba(0,0,0,.25);
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
-webkit-print-color-adjust: exact;
color-adjust: exact;
}
h3 {
padding: 0;
margin: 0;
}
p {
padding: 0;
margin: 0;
font-size:13px;
letter-spacing: 1px
}
.dados {
background-color: #f1f1f1;
}
table th {
text-align: center;
background-color: #ffffff;
}
footer {
color: #222222;
display: block;
font-family: Helvetica;
font-size: 12px;
padding-top: 5mm;
width: 450px;
line-height: 32px;
}
.footer {
border-top: 2px solid #000000;
width: 450px;
}
.footer-left {
text-align: left;
}
.footer-right {
line-height: 10px;
text-align: right;
}
.table-relatorio > thead > tr > th,
.table-relatorio > tfoot > tr > th { text-align: center; }
.col-min { width: 1%; }
.text-center { text-align: center; }
</style>
@endsection