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