Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Walter Felipe
pad-upe
Commits
b9cf790c
Commit
b9cf790c
authored
Aug 08, 2023
by
PedroLopesUPE
Browse files
Bug fix: erro de anexo b vazio
parent
faf98b0c
Changes
2
Show whitespace changes
Inline
Side-by-side
app/Http/Controllers/UserPadController.php
View file @
b9cf790c
...
@@ -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)'
);
...
...
resources/views/pad/teacher/report_pdf.blade.php
View file @
b9cf790c
...
@@ -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}}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment