Commit 8fe429a3 authored by PedroLopesUPE's avatar PedroLopesUPE
Browse files

Modificações no front do documento de impressão

Com adição de tempo para criação do arquivo
parent f55b7525
...@@ -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');
} }
......
{{-- @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"> <thead class="thead-dark">
<tr> <tr>
...@@ -21,17 +27,16 @@ ...@@ -21,17 +27,16 @@
@foreach ($cursos as $curso) @foreach ($cursos as $curso)
<tr> <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-right: 1px solid #000; border-bottom: 1px solid #000; vertical-align: middle">{{ $curso->name }}</td>
<td style="border-top: 1px solid #000; border-left: 1px solid #000; border-bottom: 1px solid #000;">{{ $curso->campus }}</td> <td style="border-top: 1px solid #000; border-left: 1px solid #000; border-bottom: 1px solid #000; vertical-align: middle">{{ $curso->campus }}</td>
</tr> </tr>
@endforeach @endforeach
</tbody> </tbody>
</table> </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 &copy;2022. Universidade de Pernambuco - Todos os direitos reservados Copyright &copy;2022. Universidade de Pernambuco - Todos os direitos reservados
</footer> </footer>
</body> </body>
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