21 lines
605 B
PHP
21 lines
605 B
PHP
<?php
|
|
|
|
namespace App\Exports\AtencaoBasica\Relatorios;
|
|
|
|
use App\Services\AtencaoBasica\RelatorioEstatisticoPacienteCadastradoService;
|
|
use Illuminate\Contracts\View\View;
|
|
use Maatwebsite\Excel\Concerns\FromView;
|
|
|
|
class RelatorioEstatisticoPacienteCadastrado implements FromView
|
|
{
|
|
private const VIEW = 'exportacoes.atencao-basica.relatorios.relatorio-estatistico-paciente-cadastrado';
|
|
|
|
public function view(): View
|
|
{
|
|
return view(self::VIEW, [
|
|
'relatorio' => RelatorioEstatisticoPacienteCadastradoService::index(),
|
|
'params' => request()->all()
|
|
]);
|
|
}
|
|
}
|