Files
rkm-conectasus-ci-sandbox/api/resources/views/impressoes/template/ambulatorio/relatorio-procedimento-lancado-periodo.blade.php
Antonio Lopes dos Santos afec302c3e
All checks were successful
build-api-image / build (push) Successful in 51s
init commit
2026-08-04 16:52:02 -03:00

145 lines
4.1 KiB
PHP

@extends('impressoes.layout1.content')
@section('conteudo')
<style>
.table th { text-align: center; }
.col-min { width: 1%; }
.text-center { text-align: center; }
</style>
<fieldset>
<legend>Filtros</legend>
<div class="row">
<div class="col-6">
<strong>Período</strong>
<div>
De {{ $inicio }} até {{ $fim }}
</div>
</div>
<div class="col-6">
<strong>Unidade</strong>
<div>
{{ $unidade }}
</div>
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Local de atendimento</strong>
<div>
{{ $infraestrutura }}
</div>
</div>
<div class="col-6">
<strong>CBO</strong>
<div>
{{ $ocupacao }}
</div>
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Especialidade</strong>
<div>
{{ $especialidade }}
</div>
</div>
<div class="col-6">
<strong>Profissional</strong>
<div>
{{ $usuario }}
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<strong>Procedimento</strong>
<div>
{{ $procedimento }}
</div>
</div>
</div>
</fieldset>
@foreach ($itens as $i => $item)
<table class="table" style="{{ $i > 0 ? 'margin-top: 10px;' : '' }}">
<tr>
<th>
Unidade: {{ $item->unidade_nome_fantasia }}<br>Local de atendimento: {{ $item->infraestrutura_nome }}
</th>
</tr>
</table>
<div style="padding: 5px;">
@foreach ($item->usuarios as $j => $usuario)
<table class="table" style="{{ $j > 0 ? 'margin-top: 10px;' : '' }}">
<thead>
<tr>
<th colspan="{{ count($colunas) }}">
Profissional: {{ $usuario->usuario_nome ?? '-' }}
</th>
</tr>
<tr>
@foreach ($colunas as $coluna)
<th class="{{ $coluna['class'] }}">{{ $coluna['label'] }}</th>
@endforeach
</tr>
</thead>
<tbody>
@foreach ($usuario->procedimentos as $procedimento)
<tr>
@foreach ($colunas as $coluna)
<td class="{{ $coluna['class'] }}">{{ $procedimento->{$coluna['key']} ?? '-' }}</td>
@endforeach
</tr>
@endforeach
<tr>
<th colspan="{{ $colunas->count() - 1 }}" style="text-align: left !important;">
Total de atendimentos: {{ $usuario->quantidade_atendimentos }}
</th>
<th>
{{ $usuario->quantidade_procedimentos }}
</th>
</tr>
</tbody>
</table>
@endforeach
<table class="table" style="margin-top: 10px;">
<tr>
<th style="border-right: none !important">
Total de atendimentos do local de atend.: {{ $item->quantidade_atendimentos }}
</th>
<th style="border-left: none !important">
Total de procedimentos do local de atend.: {{ $item->quantidade_procedimentos }}
</th>
</tr>
</table>
</div>
@endforeach
<table class="table" style="margin-top: 10px;">
<tr>
<th style="border-right: none !important">
Total de atendimentos geral: {{ $totalizadores->quantidade_atendimentos }}
</th>
<th style="border-left: none !important">
Total de procedimentos geral: {{ $totalizadores->quantidade_procedimentos }}
</th>
</tr>
</table>
@endsection