Files
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
4.0 KiB
PHP

@extends('impressoes.layout.impressao')
@section('conteudo')
<div class="fieldset">
<div class="legend">
<strong>PACIENTE</strong>
</div>
<div>
<h3>
{{ $receita->nome_paciente }}
@if(!empty($receita->nome_social_paciente))
({{ $receita->nome_social_paciente }})
@endif
</h3>
</div>
<div>
<strong>Data de nascimento:</strong>
<span>{{ $receita->data_nascimento_paciente }}</span>
</div>
<div>
<strong>Prontuário:</strong>
<span>{{ $receita->prontuario_paciente }}</span>
</div>
<div>
<strong>Operador(es):</strong>
@foreach($receita->operadores as $operador)
<p>{{ $operador }}</p>
@endforeach
</div>
</div>
<div class="fieldset">
<div class="legend">
Receita
</div>
<div>
<p>Médico solicitante: {{ $receita->nome_medico_solicitante }}</p>
<p>Entrega: {{ $receita->dispensado_em }}</p>
<p>Reimpressão: {{ $receita->data_reimpressao }}</p>
<p>Horário do atendimento: {{ $receita->hora_atendimento }}hrs</p>
</div>
<div class="mt-20 table">
<table>
<tr>
<th class="text-center">
Dispensação
</th>
<th class="col-4">
Medicamento
</th>
<th class="text-center">
Lote
</th>
<th class="text-center">
Vencimento
</th>
<th class="text-center">
Entregue
</th>
<th class="text-center">
Próxima retirada
</th>
</tr>
@foreach($receita->itens as $item)
<tr>
<td class="text-center">
{{ $item->dispensado_em }}
</td>
<td>
{{ $item->material_descricao }}
</td>
<td class="text-center" style="white-space: nowrap;">
@if(empty($item->lotes))
-
@else
@foreach($item->lotes as $lote)
<div>{{ $lote }}</div>
@endforeach
@endif
</td>
<td class="text-center">
{{ $item->vencimento_receita }}
</td>
<td class="text-center">
{{ $item->retirado }}
</td>
<td class="text-center">
{{ $item->proxima_retirada }}
</td>
</tr>
@endforeach
</table>
</div>
</div>
<div>
@include('impressoes.components.assinatura', [
'props' => [
'class' => 'col-4'
],
'data' => [
'info' => [
"<strong>Assinatura do paciente</strong>",
]
],
])
</div>
<style>
.mt-20 {
margin-top: 20px;
}
.mt-40 {
margin-top: 40px;
}
.text-center {
text-align: center;
}
h3 {
padding: 0;
margin: 0;
}
p {
padding: 0;
margin: 0;
}
table th {
text-align: left;
}
</style>
@endsection