Files
rkm-conectasus-ci-sandbox/api/resources/views/impressoes/template/farmacia/relatorio-alto-custo-processo.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

129 lines
3.3 KiB
PHP

@extends('impressoes.layout1.content')
@section('conteudo')
<style>
.table-relatorio > thead > tr > th,
.table-relatorio > tfoot > tr > th { text-align: center; }
.col-min { width: 1%; }
.text-center { text-align: center; }
.paciente_cpf, .paciente_cns { white-space: nowrap !important; }
</style>
<fieldset>
<legend>Filtros</legend>
<div class="row">
<div class="col-6">
<strong>Período de envio DRS:</strong>
</div>
<div class="col-6">
<strong>Unidade:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
De {{ $inicio }} até {{ $fim }}
</div>
<div class="col-6">
{{ $unidade }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Local de atendimento:</strong>
</div>
<div class="col-3">
<strong>Setor:</strong>
</div>
<div class="col-3">
<strong>Tipo:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $infraestrutura }}
</div>
<div class="col-3">
{{ $setor }}
</div>
<div class="col-3">
{{ $tipo }}
</div>
</div>
<div class="row">
<div class="col-3">
<strong>Subtipo:</strong>
</div>
<div class="col-9">
<strong>Paciente:</strong>
</div>
</div>
<div class="row">
<div class="col-3">
{{ $subtipo }}
</div>
<div class="col-9">
{{ $paciente }}
</div>
</div>
</fieldset>
<table class="table table-relatorio">
<thead>
<tr>
@foreach ($colunas as $coluna)
<th class="{{ $coluna['class'] }}">{{ $coluna['label'] }}</th>
@endforeach
</tr>
</thead>
<tbody>
@foreach ($itens as $item)
<tr>
@foreach ($colunas as $coluna)
@if (in_array($coluna['key'], ['material_descricao', 'quantidade_solicitada']))
<td class="{{ $coluna['class'] }}">
@foreach ($item->materiais as $material)
<div>{{ $material->{$coluna['key']} }}</div>
@endforeach
</td>
@else
<td class="{{ $coluna['class'] }} {{ $coluna['key'] }}">{{ $item->{$coluna['key']} ?? '-' }}</td>
@endif
@endforeach
</tr>
@endforeach
</tbody>
<tfoot>
<tr>
<th colspan="{{ count($colunas) }}">
<span>
Total de pacientes: <span style="font-weight: normal;">{{ $totalizadores->pacientes }}</span>
</span>
<span style="margin-left: 10px;">
Total de processos: <span style="font-weight: normal;">{{ $totalizadores->processos }}</span>
</span>
<span style="margin-left: 10px;">
Total de medicamentos: <span style="font-weight: normal;">{{ $totalizadores->medicamentos }}</span>
</span>
</th>
</tr>
</tfoot>
</table>
@endsection