This commit is contained in:
25
api/app/Exports/Administracao/RelatorioPapelLotacao.php
Normal file
25
api/app/Exports/Administracao/RelatorioPapelLotacao.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exports\Administracao;
|
||||
|
||||
use App\Services\Administracao\RelatorioPapelLotacaoService;
|
||||
use Illuminate\Contracts\View\View;
|
||||
use Maatwebsite\Excel\Concerns\FromView;
|
||||
|
||||
class RelatorioPapelLotacao implements FromView
|
||||
{
|
||||
private const TITLE = 'RELATÓRIO DE PAPEL POR LOTAÇÃO';
|
||||
private const VIEW = 'exportacoes.administracao.relatorio-papel-lotacao';
|
||||
|
||||
public function view(): View
|
||||
{
|
||||
$itens = RelatorioPapelLotacaoService::index();
|
||||
|
||||
$data = [
|
||||
'title' => self::TITLE,
|
||||
'data' => $itens,
|
||||
];
|
||||
|
||||
return view(self::VIEW, $data);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user