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
Showing with 31 additions and 25 deletions
+31 -25
...@@ -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">
<tr>
<th scope="col">Nome</th>
<th scope="col">Campus</th>
</tr>
</thead>
<tbody>
<thead class="thead-dark"> @foreach ($cursos as $curso)
<tr> <tr>
<th scope="col">Nome</th> <td style="border-top: 1px solid #000; border-right: 1px solid #000; border-bottom: 1px solid #000; vertical-align: middle">{{ $curso->name }}</td>
<th scope="col">Campus</th> <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>
</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 &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