Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
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
2 years ago
by
PedroLopesUPE
Browse files
Options
Download
Email Patches
Plain Diff
Modificações no front do documento de impressão
Com adição de tempo para criação do arquivo
parent
f55b7525
main
dev-joao-pdf_generator
dump
feat_task_time
feat_template_calendar
fix_calendar_loading
fix_user_pad
text_fix
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/Http/Controllers/CursoController.php
+1
-0
app/Http/Controllers/CursoController.php
resources/views/curso/index_pdf.blade.php
+30
-25
resources/views/curso/index_pdf.blade.php
with
31 additions
and
25 deletions
+31
-25
app/Http/Controllers/CursoController.php
View file @
8fe429a3
...
@@ -161,6 +161,7 @@ class CursoController extends Controller
...
@@ -161,6 +161,7 @@ class CursoController extends Controller
// share data to view
// share data to view
view
()
->
share
(
'cursos'
,
$data
);
view
()
->
share
(
'cursos'
,
$data
);
$pdf
=
PDF
::
loadView
(
'curso\index_pdf'
,
compact
(
'data'
));
$pdf
=
PDF
::
loadView
(
'curso\index_pdf'
,
compact
(
'data'
));
set_time_limit
(
300
);
return
$pdf
->
download
(
'pdf_file.pdf'
);
return
$pdf
->
download
(
'pdf_file.pdf'
);
}
}
...
...
This diff is collapsed.
Click to expand it.
resources/views/curso/index_pdf.blade.php
View file @
8fe429a3
{{
--
@
extends
(
'layouts.main'
)
--
}}
<body>
<body>
@
section
(
'header'
)
<header
style=
"display: flex; direction: rtl"
>
@
show
<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"
>
<div
style=
"display: flex; flex-direction: column; align-items: center;"
>
<
h3
>
Cursos
</
h3
>
<div>
<h3
style=
"font-size: 30px;"
>
Cursos
</h3>
</div>
<
div
>
<div>
<
div
class
=
"border rounded px-4"
>
<table
style=
"border-radius: 10px; background-color: #F2F2F2;
<
table
class
=
"table table-hover mt-4"
>
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>
<tr>
<
t
h
scope
=
"col"
>
Nome
</
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
h
s
cope
=
"col"
>
C
ampus
</
t
h
>
<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>
</tr>
</
thead
>
@endforeach
</tbody>
<
tbody
>
</table>
@
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
>
</div>
</div>
</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
Copyright
©
2022. Universidade de Pernambuco - Todos os direitos reservados
</footer>
</footer>
</body>
</body>
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help