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
// 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');
}
......
{{-- @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>
<th scope="col">Nome</th>
<th scope="col">Campus</th>
<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; vertical-align: middle">{{ $curso->campus }}</td>
</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 &copy;2022. Universidade de Pernambuco - Todos os direitos reservados
</footer>
</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