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
2077bf88
Commit
2077bf88
authored
Aug 08, 2023
by
PedroLopesUPE
Browse files
Remoção de funcionalidade "Baixar todos os PADs"
parent
b9cf790c
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/UserPadController.php
View file @
2077bf88
...
@@ -315,41 +315,41 @@ class UserPadController extends Controller
...
@@ -315,41 +315,41 @@ class UserPadController extends Controller
}
}
}
}
$treated_anexo_pad
=
[];
$treated_anexo_pad
=
[];
if
(
$anexoPad
!=
null
)
//
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))
{
//
{
continue
;
//
continue;
}
//
}
elseif
(
$nome_valor
==
'campus_id'
)
//
elseif ($nome_valor == 'campus_id')
{
//
{
$treated_anexo_pad
[
$nomes_valores
[
$nome_valor
]]
=
Campus
::
whereId
(
$valor
)
->
first
()
->
{
'name'
};
//
$treated_anexo_pad[$nomes_valores[$nome_valor]] = Campus::whereId($valor)->first()->{'name'};
$treated_anexo_pad
[
$nomes_valores
[
'unidade'
]]
=
$unidades_ensino
[
Campus
::
whereId
(
$valor
)
->
first
()
->
{
'unidade_id'
}];
//
$treated_anexo_pad[$nomes_valores['unidade']] = $unidades_ensino[Campus::whereId($valor)->first()->{'unidade_id'}];
}
//
}
elseif
(
$nome_valor
==
'curso_id'
)
//
elseif ($nome_valor == 'curso_id')
{
//
{
$treated_anexo_pad
[
$nomes_valores
[
$nome_valor
]]
=
Curso
::
whereId
(
$valor
)
->
first
()
->
{
'name'
};
//
$treated_anexo_pad[$nomes_valores[$nome_valor]] = Curso::whereId($valor)->first()->{'name'};
}
//
}
elseif
(
$nome_valor
==
'semestre'
)
//
elseif ($nome_valor == 'semestre')
{
//
{
$treated_anexo_pad
[
$nomes_valores
[
$nome_valor
]]
=
$semestres
[
$valor
];
//
$treated_anexo_pad[$nomes_valores[$nome_valor]] = $semestres[$valor];
}
//
}
elseif
(
$nome_valor
==
'afastamento_total'
||
$nome_valor
==
'afastamento_parcial'
||
$nome_valor
==
'direcao_sindical'
)
//
elseif ($nome_valor == 'afastamento_total' || $nome_valor == 'afastamento_parcial' || $nome_valor == 'direcao_sindical')
{
//
{
$treated_anexo_pad
[
$nomes_valores
[
$nome_valor
]]
=
$valor
==
1
?
'Sim'
:
'Não'
;
//
$treated_anexo_pad[$nomes_valores[$nome_valor]] = $valor == 1? 'Sim' : 'Não';
}
//
}
elseif
(
array_key_exists
(
$nome_valor
,
$nomes_valores
))
//
elseif (array_key_exists($nome_valor, $nomes_valores))
{
//
{
$treated_anexo_pad
[
$nomes_valores
[
$nome_valor
]]
=
$valor
;
//
$treated_anexo_pad[$nomes_valores[$nome_valor]] = $valor;
}
//
}
else
//
else
{
//
{
$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/relatorio/relatorio.blade.php
View file @
2077bf88
...
@@ -19,12 +19,12 @@
...
@@ -19,12 +19,12 @@
<
i
class
=
"bi bi-exclamation-octagon-fill"
></
i
>
<
i
class
=
"bi bi-exclamation-octagon-fill"
></
i
>
Relatório
pad
{{
$pad
->
nome
}}
Relatório
pad
{{
$pad
->
nome
}}
</
h3
>
</
h3
>
@
include
(
'components.buttons.btn-download'
,
[
{{
--
@
include
(
'components.buttons.btn-download'
,
[
'route'
=>
route
(
'pad_relatório_pdf'
,
[
'id'
=>
$pad
->
id
]),
'route'
=>
route
(
'pad_relatório_pdf'
,
[
'id'
=>
$pad
->
id
]),
'content'
=>
'Baixar PADs enviados'
,
'content'
=>
'Baixar PADs enviados'
,
'id'
=>
''
,
'id'
=>
''
,
'class'
=>
''
,
'class'
=>
''
,
])
])
--
}}
</
div
>
</
div
>
<
div
class
=
"card d-flex"
>
<
div
class
=
"card d-flex"
>
<
div
class
=
"card-head d-flex justify-content-center"
style
=
"background-color:#dfdfdf; padding-top:10px;"
>
<
div
class
=
"card-head d-flex justify-content-center"
style
=
"background-color:#dfdfdf; padding-top:10px;"
>
...
...
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