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

138 lines
3.1 KiB
PHP

@extends('impressoes.layout1.content')
@section('conteudo')
<style>
.text-center {
text-align: center !important;
}
.margin-top {
margin-top: 15px;
}
.margin-left {
margin-left: 15px;
}
.font-normal {
font-weight: normal;
}
.table {
font-size: 12px;
}
.col-min {
width: 1%;
}
</style>
<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 {{ $start_date }} até {{ $end_date }}
</div>
<div class="col-6">
{{ $unidade_nome_fantasia }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Local de atendimento:</strong>
</div>
<div class="col-6">
<strong>Grupo:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $infraestrutura_nome }}
</div>
<div class="col-6">
{{ $grupo_nome }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Medicamento:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $material_descricao }}
</div>
</div>
</fieldset>
@foreach ($itens['pacientes'] as $key => $item)
<table class="table {{ $key > 0 ? 'margin-top' : '' }}">
<thead>
<tr>
<th colspan="{{ $columns->count() }}">
<div>
<span>
Paciente: <span class="font-normal">{{ $item->paciente_nome }}</span>
</span>
<span style="margin-left: 10px;">
Prontuário: <span class="font-normal">{{ $item->paciente_prontuario }}</span>
</span>
</div>
</th>
</tr>
<tr>
@foreach ($columns as $column)
<th class="{{ $column['class'] }}">{{ $column['label'] }}</th>
@endforeach
</tr>
</thead>
<tbody>
@foreach ($item->entregas as $entrega)
<tr>
@foreach ($columns as $column)
<td class="{{ $column['class'] }}">{{ $entrega->{$column['key']} ?? '-' }}</td>
@endforeach
</tr>
@endforeach
</tbody>
<tfoot>
<tr>
<th class="text-center" colspan="{{ $columns->count() }}">
<span class="margin-left">
Total de dispensações: <span class="font-normal">{{ $item->dispensacoes }}</span>
</span>
</th>
</tr>
</tfoot>
</table>
@endforeach
<table class="table margin-top">
<thead>
<tr>
<th class="text-center">
<span style="margin-left: 10px;">
Total de medicamentos: <span class="font-normal">{{ $itens['totalizadores']->dispensacoes }}</span>
</span>
</th>
</tr>
</thead>
</table>
@endsection