This commit is contained in:
@@ -0,0 +1,399 @@
|
||||
<html>
|
||||
@include('impressoes.layout-receita.style')
|
||||
|
||||
<head>
|
||||
<title>{{ $_data['titulo'] }}</title>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
|
||||
@if(isset($receita['rascunho']) && $receita['rascunho'] === true)
|
||||
<div class="rascunho">Rascunho</div>
|
||||
<div class="rascunho-segunda-via">Rascunho</div>
|
||||
@endif
|
||||
|
||||
@if ($_data['duplicate'])
|
||||
<div class="row">
|
||||
<div class="cell col-6 pr-1">
|
||||
<table class="grid border-bottom">
|
||||
<tr>
|
||||
<td class="text-center vertical-align-middle">
|
||||
@if ($_data['cliente']['logotipo'])
|
||||
<img
|
||||
id="logotipo"
|
||||
src="data:image/png;base64, {{ $_data['cliente']['logotipo'] }}"
|
||||
alt="Logotipo"
|
||||
/>
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
<div class="font-small">Prefeitura de {{ $_data['cliente']['nome'] }} - Secretaria Municipal de {{ $_data['cliente']['sistema']['ramo_atividade']['nome'] }}</div>
|
||||
<div class="font-small">
|
||||
{{ $receita['unidade']['nome_fantasia'] }}{{ isset($receita['unidade']['cnpj']) ? " (CNPJ: {$receita['unidade']['cnpj']})": '' }} - {{ $receita['unidade']['telefone'] }}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="col-6 text-left pt-titulo">
|
||||
<div class="titulo">{{ $_data['titulo'] ?? '' }}</div>
|
||||
</td>
|
||||
<td class="col-6 vertical-align-middle text-right font-tiny">
|
||||
<div>1º VIA - RETENÇÃO NA FARMÁCIA OU DROGARIA</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="col-6 text-left font-small line-height-10" style="padding-top: 7px;">
|
||||
<strong>Emitente</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-6 text-left font-tiny line-height-10">
|
||||
<strong>Nome:</strong> <span>{{ $receita['profissional']['nome'] }}</span>
|
||||
</td>
|
||||
<td class="col-6 text-right font-tiny line-height-10">
|
||||
<strong>Telefone:</strong> <span>{{ $receita['unidade']['telefone'] }}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-6 text-left font-tiny line-height-10" colspan="2">
|
||||
<strong>Endereço:</strong> <span>{{ $receita['unidade']['endereco'] }}</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="col-6 text-left font-small line-height-10 pt-paciente">
|
||||
<strong>Paciente</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-6 text-left font-tiny line-height-10">
|
||||
<strong>Nome:</strong> @include('impressoes.components.paciente-nome', $receita['paciente'])
|
||||
</td>
|
||||
<td class="col-6 text-right font-tiny line-height-10">
|
||||
<strong>Telefone:</strong> <span>{{ $receita['paciente']['telefone'] }}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-6 text-left font-tiny line-height-10">
|
||||
<strong>CPF:</strong> <span>{{ $receita['paciente']['cpf'] }}</span>
|
||||
</td>
|
||||
<td class="col-6 text-right font-tiny line-height-10">
|
||||
<strong>Prontuário:</strong> <span>{{ $receita['paciente']['prontuario'] }}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-6 text-left font-tiny line-height-10" colspan="2">
|
||||
<strong>Endereço:</strong> <span>{{ $receita['paciente']['endereco'] }}</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="cell col-6 pl-1">
|
||||
<table class="grid border-bottom">
|
||||
<tr>
|
||||
<td class="text-center vertical-align-middle">
|
||||
@if ($_data['cliente']['logotipo'])
|
||||
<img
|
||||
id="logotipo"
|
||||
src="data:image/png;base64, {{ $_data['cliente']['logotipo'] }}"
|
||||
alt="Logotipo"
|
||||
/>
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
<div class="font-small">Prefeitura de {{ $_data['cliente']['nome'] }} - Secretaria Municipal de {{ $_data['cliente']['sistema']['ramo_atividade']['nome'] }}</div>
|
||||
<div class="font-small">
|
||||
{{ $receita['unidade']['nome_fantasia'] }}{{ isset($receita['unidade']['cnpj']) ? " (CNPJ: {$receita['unidade']['cnpj']})": '' }} - {{ $receita['unidade']['telefone'] }}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="col-6 text-left pt-titulo">
|
||||
<div class="titulo">{{ $_data['titulo'] ?? '' }}</div>
|
||||
</td>
|
||||
<td class="col-6 vertical-align-middle text-right font-tiny">
|
||||
<div>2º VIA - ORIENTAÇÃO AO PACIENTE</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="col-6 text-left font-small line-height-10" style="padding-top: 7px;">
|
||||
<strong>Emitente</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-6 text-left font-tiny line-height-10">
|
||||
<strong>Nome:</strong> <span>{{ $receita['profissional']['nome'] }}</span>
|
||||
</td>
|
||||
<td class="col-6 text-right font-tiny line-height-10">
|
||||
<strong>Telefone:</strong> <span>{{ $receita['unidade']['telefone'] }}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-6 text-left font-tiny line-height-10" colspan="2">
|
||||
<strong>Endereço:</strong> <span>{{ $receita['unidade']['endereco'] }}</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="col-6 text-left font-small line-height-10 pt-paciente">
|
||||
<strong>Paciente</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-6 text-left font-tiny line-height-10">
|
||||
<strong>Nome:</strong> @include('impressoes.components.paciente-nome', $receita['paciente'])
|
||||
</td>
|
||||
<td class="col-6 text-right font-tiny line-height-10">
|
||||
<strong>Telefone:</strong> <span>{{ $receita['paciente']['telefone'] }}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-6 text-left font-tiny line-height-10">
|
||||
<strong>CPF:</strong> <span>{{ $receita['paciente']['cpf'] }}</span>
|
||||
</td>
|
||||
<td class="col-6 text-right font-tiny line-height-10">
|
||||
<strong>Prontuário:</strong> <span>{{ $receita['paciente']['prontuario'] }}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-6 text-left font-tiny line-height-10" colspan="2">
|
||||
<strong>Endereço:</strong> <span>{{ $receita['paciente']['endereco'] }}</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
@else
|
||||
<table class="grid border-bottom">
|
||||
<tr>
|
||||
<td class="text-center vertical-align-middle">
|
||||
@if ($_data['cliente']['logotipo'])
|
||||
<img
|
||||
id="logotipo"
|
||||
src="data:image/png;base64, {{ $_data['cliente']['logotipo'] }}"
|
||||
alt="Logotipo"
|
||||
/>
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
<div class="font-small">Prefeitura de {{ $_data['cliente']['nome'] }} - Secretaria Municipal de {{ $_data['cliente']['sistema']['ramo_atividade']['nome'] }}</div>
|
||||
<div class="font-small">{{ $receita['unidade']['nome_fantasia'] }}{{ isset($receita['unidade']['cnpj']) ? " (CNPJ: {$receita['unidade']['cnpj']})": '' }} - {{ $receita['unidade']['telefone'] }}</div>
|
||||
<div class="font-small">
|
||||
@yield('subtitulo')
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class="mt-1 col-12">
|
||||
<div class="col-6 text-left float-left">
|
||||
<div class="titulo">{{ $_data['titulo'] ?? '' }}</div>
|
||||
</div>
|
||||
<div class="col-6 text-right float-left font-tiny">
|
||||
<div>1º VIA - RETENÇÃO NA FARMÁCIA OU DROGARIA</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
</header>
|
||||
|
||||
@if ($_data['duplicate'])
|
||||
<footer class="footer-duplicate">
|
||||
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="cell col-5 font-small" style="padding-right:15px">
|
||||
|
||||
<div class="font-small">
|
||||
<div class="font-small text-right">
|
||||
{{ $_data['cliente']['municipio']['nome'] }} - {{ $_data['cliente']['municipio']['estado']['uf'] }}, {{ $receita['dataCadastro']['porExtenso'] }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="cell col-5 font-small" style="padding-left:15px">
|
||||
|
||||
<div class="font-small">
|
||||
<div class="font-small text-right">
|
||||
{{ $_data['cliente']['municipio']['nome'] }} - {{ $_data['cliente']['municipio']['estado']['uf'] }}, {{ $receita['dataCadastro']['porExtenso'] }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="cell col-5 font-small" style="padding-right:15px">
|
||||
|
||||
<div class="font-small mt-8px">
|
||||
@if($exibirAssinatura)
|
||||
@include(
|
||||
'impressoes.components.assinatura',
|
||||
[
|
||||
'props' => [
|
||||
'class' => 'col-4 center'
|
||||
],
|
||||
'data' => [
|
||||
'info' => [
|
||||
'Assinatura e carimbo',
|
||||
$receita['profissional']['nome'],
|
||||
$receita['profissional']['cbo'] . ' - ' . $receita['profissional']['documento'],
|
||||
]
|
||||
],
|
||||
]
|
||||
)
|
||||
@else
|
||||
<table class="text-center col-4 center" style="padding: 45px 0 0 0;">
|
||||
<tr><td class="font-small">{{ $receita['profissional']['nome'] }}</td></tr>
|
||||
<tr><td class="font-small">{{ $receita['profissional']['cbo'] }}</td></tr>
|
||||
<tr><td class="font-small">{{ $receita['profissional']['documento'] }}</td></tr>
|
||||
</table>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="cell col-5 font-small" style="padding-left:15px">
|
||||
|
||||
<div class="font-small mt-8px">
|
||||
@if($exibirAssinatura)
|
||||
@include(
|
||||
'impressoes.components.assinatura',
|
||||
[
|
||||
'props' => [
|
||||
'class' => 'col-4 center'
|
||||
],
|
||||
'data' => [
|
||||
'info' => [
|
||||
'Assinatura e carimbo',
|
||||
$receita['profissional']['nome'],
|
||||
$receita['profissional']['cbo'] . ' - ' . $receita['profissional']['documento'],
|
||||
]
|
||||
],
|
||||
]
|
||||
)
|
||||
@else
|
||||
<table class="text-center col-4 center" style="padding: 45px 0 0 0;">
|
||||
<tr><td class="font-small">{{ $receita['profissional']['nome'] }}</td></tr>
|
||||
<tr><td class="font-small">{{ $receita['profissional']['cbo'] }}</td></tr>
|
||||
<tr><td class="font-small">{{ $receita['profissional']['documento'] }}</td></tr>
|
||||
</table>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="cell col-6 pr-1 pt-1">
|
||||
<table class="grid border-top font-small">
|
||||
<tr>
|
||||
<td class="col-6 vertical-align-middle">
|
||||
<div>{{ $_data['cliente']['sistema']['nome'] }} {{ $_data['cliente']['sistema']['versao'] }}</div>
|
||||
<div class="paginacao"></div>
|
||||
</td>
|
||||
<td class="col-6 vertical-align-middle text-right">
|
||||
<div>{{ ($paraAssinar ?? false ) ? 'Gerado' : 'Impresso' }} por: {{ $_data['usuario']['cidadao']['nome'] }}</div>
|
||||
<div>Data/hora da {{ ($paraAssinar ?? false ) ? 'geração' : 'impressão' }}: {{ $_data['data_impressao'] }}</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="cell col-6 pl-1 pt-1">
|
||||
<table class="grid border-top font-small">
|
||||
<tr>
|
||||
<td class="col-6 vertical-align-middle">
|
||||
<div>{{ $_data['cliente']['sistema']['nome'] }} {{ $_data['cliente']['sistema']['versao'] }}</div>
|
||||
<div class="paginacao"></div>
|
||||
</td>
|
||||
<td class="col-6 vertical-align-middle text-right">
|
||||
<div>{{ ($paraAssinar ?? false ) ? 'Gerado' : 'Impresso' }} por: {{ $_data['usuario']['cidadao']['nome'] }}</div>
|
||||
<div>Data/hora da {{ ($paraAssinar ?? false ) ? 'geração' : 'impressão' }}: {{ $_data['data_impressao'] }}</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
@else
|
||||
<footer>
|
||||
<table class="grid border-top font-small">
|
||||
<tr>
|
||||
<td class="col-6 vertical-align-middle">
|
||||
<div>{{ $_data['cliente']['sistema']['nome'] }} {{ $_data['cliente']['sistema']['versao'] }}</div>
|
||||
<div class="paginacao"></div>
|
||||
</td>
|
||||
<td class="col-6 vertical-align-middle text-right">
|
||||
<div>{{ ($paraAssinar ?? false ) ? 'Gerado' : 'Impresso' }} por: {{ $_data['usuario']['cidadao']['nome'] }}</div>
|
||||
<div>Data/hora da {{ ($paraAssinar ?? false ) ? 'geração' : 'impressão' }}: {{ $_data['data_impressao'] }}</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</footer>
|
||||
@endif
|
||||
|
||||
<main>
|
||||
<div id="conteudo">
|
||||
@yield('conteudo')
|
||||
</div>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<style>
|
||||
.footer-duplicate {
|
||||
bottom: -50px;
|
||||
}
|
||||
.rascunho {
|
||||
position: absolute;
|
||||
top: 30%;
|
||||
left: 27%;
|
||||
font-size: 150px;
|
||||
opacity: 0.5;
|
||||
color: rgba(211, 211, 211, .5);;
|
||||
pointer-events: none;
|
||||
white-space: nowrap;
|
||||
-moz-transform: translate(-50%, -50%) rotate(-45deg);
|
||||
-o-transform: translate(-50%, -50%) rotate(-45deg);
|
||||
-webkit-transform: translate(-50%, -50%) rotate(-45deg);
|
||||
transform: translate(-50%, -50%) rotate(-45deg);
|
||||
z-index: -1;
|
||||
}
|
||||
.rascunho-segunda-via {
|
||||
position: absolute;
|
||||
top: 30%;
|
||||
left: 75%;
|
||||
font-size: 150px;
|
||||
opacity: 0.5;
|
||||
color: rgba(211, 211, 211, .5);
|
||||
pointer-events: none;
|
||||
white-space: nowrap;
|
||||
-moz-transform: translate(-50%, -50%) rotate(-45deg);
|
||||
-o-transform: translate(-50%, -50%) rotate(-45deg);
|
||||
-webkit-transform: translate(-50%, -50%) rotate(-45deg);
|
||||
transform: translate(-50%, -50%) rotate(-45deg);
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
#logotipo {
|
||||
width: 30px;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user