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,171 @@
@extends('impressoes.layout1.content')
<style>
* {
font-size: 14px;
}
</style>
@section('conteudo')
<fieldset>
<legend>Filtros</legend>
<div class="row">
<div class="col-6">
<strong>Período:</strong>
</div>
<div class="col-6">
<strong>Unidade:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
De {{ $periodo['inicio'] }} até {{ $periodo['fim'] }}
</div>
<div class="col-6">
{{ $unidade }}
</div>
</div>
<div class="row">
<div class="col-4">
<strong>Local de atendimento:</strong>
</div>
<div class="col-4">
<strong>Especialidade:</strong>
</div>
<div class="col-4">
<strong>Profissional:</strong>
</div>
</div>
<div class="row">
<div class="col-4">
{{ $infraestrutura }}
</div>
<div class="col-4">
{{ $especialidade }}
</div>
<div class="col-4">
{{ $usuario }}
</div>
</div>
<div class="row">
<div class="col-4">
<strong>Origem:</strong>
</div>
</div>
<div class="row">
<div class="col-4">
{{ $origem }}
</div>
</div>
</fieldset>
<table class="table">
<thead>
<tr>
<th rowspan="3">Profissional</th>
<th rowspan="3">Especialidade</th>
<th rowspan="3">Unidade</th>
<th rowspan="3">Local de atendimento</th>
@if(!$onlyDemandasEspontaneas)
<th style="text-align: center;" colspan="7">Agendamento</th>
@endif
@if(!$onlyAgendamentos)
<th style="text-align: center;" colspan="3">Demanda espontânea</th>
@endif
</tr>
<tr>
@if(!$onlyDemandasEspontaneas)
<th style="text-align: center;" colspan="2">Realizadas</th>
<th style="text-align: center;" colspan="2">Faltas do paciente</th>
<th style="text-align: center;" colspan="2">Faltas do médico</th>
<th rowspan="2">Total</th>
@endif
@if(!$onlyAgendamentos)
<th style="text-align: center;" colspan="2">Realizadas</th>
<th rowspan="2">Total</th>
@endif
</tr>
<tr>
@if(!$onlyDemandasEspontaneas)
<th style="text-align: center;">Quantidade</th>
<th style="text-align: center;">%</th>
<th style="text-align: center;">Quantidade</th>
<th style="text-align: center;">%</th>
<th style="text-align: center;">Quantidade</th>
<th style="text-align: center;">%</th>
@endif
@if(!$onlyAgendamentos)
<th style="text-align: center;">Quantidade</th>
<th style="text-align: center;">%</th>
@endif
</tr>
</thead>
<tbody>
@foreach($data['itens'] as $item)
<tr>
<td>{{$item->usuario_nome}}</td>
<td>{{$item->especialidade_nome}}</td>
<td>{{$item->unidade_nome_fantasia}}</td>
<td>{{$item->infraestrutura_nome}}</td>
@if(!$onlyDemandasEspontaneas)
<td class="text-center">{{$item->agendamento_quantidade_atendimento_realizado}}</td>
<td class="text-center">{{$item->agendamento_porcentagem_atendimento_realizado}}%</td>
<td class="text-center">{{$item->agendamento_quantidade_falta_paciente}}</td>
<td class="text-center">{{$item->agendamento_porcentagem_falta_paciente}}%</td>
<td class="text-center">{{$item->agendamento_quantidade_falta_medico}}</td>
<td class="text-center">{{$item->agendamento_porcentagem_falta_medico}}%</td>
<td class="text-center">{{$item->agendamento_quantidade_atendimento}}</td>
@endif
@if(!$onlyAgendamentos)
<td class="text-center">{{$item->demanda_espontanea_quantidade_atendimento_realizado}}</td>
<td class="text-center">{{$item->demanda_espontanea_porcentagem_atendimento_realizado}}%</td>
<td class="text-center">{{$item->demanda_espontanea_quantidade_atendimento}}</td>
@endif
</tr>
@endforeach
</tbody>
<tfoot>
<tr>
<th colspan="4"></th>
@if(!$onlyDemandasEspontaneas)
<th style="text-align: center;">{{$data['totalizadores']['agendamento_quantidade_atendimento_realizado']}}</th>
<th style="text-align: center;">{{$data['totalizadores']['agendamento_porcentagem_atendimento_realizado']}}%</th>
<th style="text-align: center;">{{$data['totalizadores']['agendamento_quantidade_falta_paciente']}}</th>
<th style="text-align: center;">{{$data['totalizadores']['agendamento_porcentagem_falta_paciente']}}%</th>
<th style="text-align: center;">{{$data['totalizadores']['agendamento_quantidade_falta_medico']}}</th>
<th style="text-align: center;">{{$data['totalizadores']['agendamento_porcentagem_falta_medico']}}%</th>
<th style="text-align: center;">{{$data['totalizadores']['agendamento_quantidade_atendimento']}}</th>
@endif
@if(!$onlyAgendamentos)
<th style="text-align: center;">{{$data['totalizadores']['demanda_espontanea_quantidade_atendimento_realizado']}}</th>
<th style="text-align: center;">{{$data['totalizadores']['demanda_espontanea_porcentagem_atendimento_realizado']}}%</th>
<th style="text-align: center;">{{$data['totalizadores']['demanda_espontanea_quantidade_atendimento']}}</th>
@endif
</tr>
</tfoot>
</table>
@endsection