This commit is contained in:
21
api/app/Exports/Imunizacao/RelatorioFaltosoAprazamento.php
Normal file
21
api/app/Exports/Imunizacao/RelatorioFaltosoAprazamento.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exports\Imunizacao;
|
||||
|
||||
use App\Services\Imunizacao\RelatorioFaltosoAprazamentoService;
|
||||
use Illuminate\Contracts\View\View;
|
||||
use Maatwebsite\Excel\Concerns\FromView;
|
||||
|
||||
class RelatorioFaltosoAprazamento implements FromView
|
||||
{
|
||||
private const TITLE = 'RELATÓRIO DE FALTOSOS E APRAZAMENTOS';
|
||||
private const VIEW = 'exportacoes.imunizacao.relatorio-faltoso-aprazamento';
|
||||
|
||||
public function view(): View
|
||||
{
|
||||
$data = RelatorioFaltosoAprazamentoService::getPrintExportData();
|
||||
$data['title'] = self::TITLE;
|
||||
|
||||
return view(self::VIEW, $data);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user