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
8fe429a3
Commit
8fe429a3
authored
May 18, 2023
by
PedroLopesUPE
Browse files
Modificações no front do documento de impressão
Com adição de tempo para criação do arquivo
parent
f55b7525
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/CursoController.php
View file @
8fe429a3
...
...
@@ -161,6 +161,7 @@ class CursoController extends Controller
// share data to view
view
()
->
share
(
'cursos'
,
$data
);
$pdf
=
PDF
::
loadView
(
'curso\index_pdf'
,
compact
(
'data'
));
set_time_limit
(
300
);
return
$pdf
->
download
(
'pdf_file.pdf'
);
}
...
...
resources/views/curso/index_pdf.blade.php
View file @
8fe429a3
{{
--
@
extends
(
'layouts.main'
)
--
}}
<body>
@
section
(
'header'
)
@
show
<header
style=
"display: flex; direction: rtl"
>
<div>
<a>
<img
src=
"{{url('images/estado_pe_logo.png')}}"
style=
"width: 600px"
/>
</a>
</div>
</header>
<
div
class
=
"flex items-center justify-center h-screen"
>
<
h3
>
Cursos
</
h3
>
<div
style=
"display: flex; flex-direction: column; align-items: center;"
>
<div>
<h3
style=
"font-size: 30px;"
>
Cursos
</h3>
</div>
<
div
>
<
div
class
=
"border rounded px-4"
>
<
table
class
=
"table table-hover mt-4"
>
<div>
<table
style=
"border-radius: 10px; background-color: #F2F2F2;
min-width: 600px; box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.25); min-height: 50px; "
>
<thead
class=
"thead-dark"
>
<tr>
<th
scope=
"col"
>
Nome
</th>
<th
scope=
"col"
>
Campus
</th>
</tr>
</thead>
<tbody>
<
thead
class
=
"thead-dark"
>
@foreach ($cursos as $curso)
<tr>
<
t
h
scope
=
"col"
>
Nome
</
t
h
>
<
t
h
s
cope
=
"col"
>
C
ampus
</
t
h
>
<t
d
style=
"border-top: 1px solid #000; border-right: 1px solid #000; border-bottom: 1px solid #000; vertical-align: middle"
>
{{ $curso->name }}
</t
d
>
<t
d
s
tyle=
"border-top: 1px solid #000; border-left: 1px solid #000; border-bottom: 1px solid #000; vertical-align: middle"
>
{{ $curso->c
ampus
}}
</t
d
>
</tr>
</
thead
>
<
tbody
>
@
foreach
(
$cursos
as
$curso
)
<
tr
>
<
td
style
=
"border-top: 1px solid #000; border-right: 1px solid #000; border-bottom: 1px solid #000;"
>
{{
$curso
->
name
}}
</
td
>
<
td
style
=
"border-top: 1px solid #000; border-left: 1px solid #000; border-bottom: 1px solid #000;"
>
{{
$curso
->
campus
}}
</
td
>
</
tr
>
@
endforeach
</
tbody
>
</
table
>
</
div
>
@endforeach
</tbody>
</table>
</div>
</div>
<
footer
class
=
"pt-3 my-3 text-center text-muted align-items-
center border-top"
>
<footer
style=
"padding-top: 0.75rem; margin-top: 0.75rem; text-align:
center
;
border-top
: 1px
"
>
Copyright
©
2022. Universidade de Pernambuco - Todos os direitos reservados
</footer>
</body>
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