This commit is contained in:
21
api/app/Exports/ExportExameImagem.php
Normal file
21
api/app/Exports/ExportExameImagem.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exports;
|
||||
|
||||
use App\Services\ProntoAtendimento\RelatorioExameImagemService;
|
||||
use Illuminate\Contracts\View\View;
|
||||
use Maatwebsite\Excel\Concerns\FromView;
|
||||
|
||||
class ExportExameImagem implements FromView
|
||||
{
|
||||
private const VIEW = 'exportacoes.pronto-atendimento.export-exame-imagem';
|
||||
|
||||
public function view(): View
|
||||
{
|
||||
return view(self::VIEW, [
|
||||
'itens' => RelatorioExameImagemService::index(),
|
||||
'colunas' => collect(request()->selectedCols),
|
||||
'params' => request()->all(),
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user