Commit b9cf790c authored by PedroLopesUPE's avatar PedroLopesUPE
Browse files

Bug fix: erro de anexo b vazio

parent faf98b0c
...@@ -315,6 +315,8 @@ class UserPadController extends Controller ...@@ -315,6 +315,8 @@ class UserPadController extends Controller
} }
} }
$treated_anexo_pad = []; $treated_anexo_pad = [];
if ($anexoPad != null)
{
foreach ($anexoPad as $nome_valor=>$valor) foreach ($anexoPad as $nome_valor=>$valor)
{ {
if (in_array($nome_valor, $valores_lista_negra)) if (in_array($nome_valor, $valores_lista_negra))
...@@ -347,6 +349,7 @@ class UserPadController extends Controller ...@@ -347,6 +349,7 @@ class UserPadController extends Controller
$treated_anexo_pad[$nome_valor] = $valor; $treated_anexo_pad[$nome_valor] = $valor;
} }
} }
}
date_default_timezone_set("America/Recife"); date_default_timezone_set("America/Recife");
$dateTime = now()->format('d/m/Y (H:i:s)'); $dateTime = now()->format('d/m/Y (H:i:s)');
......
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
</header> </header>
<div style="display: flex; flex-direction: column; padding-left:5mm; gap: 10mm"> <div style="display: flex; flex-direction: column; padding-left:5mm; gap: 10mm">
@if ($data['anexo'] != null || $data['anexo'] != [])
<h1 style="font-size: 16px; font-weight: bold; text-align: center"> <h1 style="font-size: 16px; font-weight: bold; text-align: center">
ANEXO B ANEXO B
</h1> </h1>
...@@ -22,6 +23,7 @@ ...@@ -22,6 +23,7 @@
</h4> </h4>
@endforeach @endforeach
<hr> <hr>
@endif
@foreach ($data['model'] as $nome_dimensao=>$dimensao) @foreach ($data['model'] as $nome_dimensao=>$dimensao)
<h1 style="font-size: 16px; font-weight: bold"> <h1 style="font-size: 16px; font-weight: bold">
{{$nome_dimensao}} {{$nome_dimensao}}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment