This commit is contained in:
20
api/app/Exports/ExameImagem/Relatorios/ExportProducao.php
Normal file
20
api/app/Exports/ExameImagem/Relatorios/ExportProducao.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exports\ExameImagem\Relatorios;
|
||||
|
||||
use App\Services\ExameImagem\RelatorioProducaoService;
|
||||
use Illuminate\Contracts\View\View;
|
||||
use Maatwebsite\Excel\Concerns\FromView;
|
||||
|
||||
class ExportProducao implements FromView
|
||||
{
|
||||
private const VIEW = 'exportacoes.exame-imagem.relatorios.export-producao';
|
||||
|
||||
public function view(): View
|
||||
{
|
||||
return view(self::VIEW, [
|
||||
'itens' => RelatorioProducaoService::index(),
|
||||
'busca' => RelatorioProducaoService::getPrintExportData()
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user