22 lines
554 B
PHP
22 lines
554 B
PHP
<?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(),
|
|
]);
|
|
}
|
|
}
|