Files
rkm-conectasus-ci-sandbox/api/resources/views/impressoes/template/ambulatorio/relatorio-quantitativo-atendimento.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

143 lines
3.2 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-2">
<strong>Ano</strong>
<div>
{{ $ano }}
</div>
</div>
<div class="col-4">
<strong>Mês</strong>
<div>
{{ $mes }}
</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-12">
<strong>Especialidade</strong>
<div>
{{ $especialidade }}
</div>
</div>
</div>
</fieldset>
@foreach ($itens as $i => $infraestrutura)
<table class="table" style="{{ $i > 0 ? 'margin-top: 10px;' : '' }}">
<thead>
<tr>
<th colspan="{{ count($colunas) }}">
Unidade: {{ $infraestrutura->unidade_nome_fantasia }}<br>Local de atendimento: {{ $infraestrutura->infraestrutura_nome }}
</th>
</tr>
<tr>
<th></th>
<th colspan="{{ count($colunas) - 2 }}">
Dia do mês
</th>
<th></th>
</tr>
<tr>
@foreach ($colunas as $coluna)
<th class="{{ $coluna['class'] ?? '' }}">{{ $coluna['label'] }}</th>
@endforeach
</tr>
</thead>
<tbody>
@foreach ($infraestrutura->usuarios as $usuario)
<tr>
@foreach ($colunas as $coluna)
<td class="{{ $coluna['class'] ?? '' }}">{{ $usuario->{$coluna['key']} }}</td>
@endforeach
</tr>
@endforeach
<tr>
@foreach ($colunas as $coluna)
<th class="{{ $coluna['class'] ?? ''}}">{{ $infraestrutura->{$coluna['key']} ?? '' }}</th>
@endforeach
</tr>
</tbody>
</table>
@endforeach
<table class="table" style="margin-top: 10px;">
<thead>
<tr>
<th colspan="{{ count($colunasTotalizadores) }}">
Totalizadores
</th>
</tr>
<tr>
<th colspan="{{ count($colunasTotalizadores) - 1 }}">
Dia do mês
</th>
<th></th>
</tr>
<tr>
@foreach ($colunasTotalizadores as $coluna)
<th class="{{ $coluna['class'] ?? '' }}">{{ $coluna['label'] }}</th>
@endforeach
</tr>
</thead>
<tbody>
<tr>
@foreach ($colunasTotalizadores as $coluna)
<td class="{{ $coluna['class'] ?? '' }}">{{ $totalizadores->{$coluna['key']} }}</td>
@endforeach
</tr>
</tbody>
</table>
@endsection