26 lines
616 B
PHP
26 lines
616 B
PHP
<?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);
|
|
}
|
|
}
|