This commit is contained in:
21
api/app/Exports/Integracao/Bnafar/RelatorioEnvio.php
Normal file
21
api/app/Exports/Integracao/Bnafar/RelatorioEnvio.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exports\Integracao\Bnafar;
|
||||
|
||||
use App\Services\Integracao\Bnafar\RelatorioEnvioService;
|
||||
use Illuminate\Contracts\View\View;
|
||||
use Maatwebsite\Excel\Concerns\FromView;
|
||||
|
||||
class RelatorioEnvio implements FromView
|
||||
{
|
||||
private const TITLE = 'RELATÓRIO SOA BNAFAR';
|
||||
private const VIEW = 'exportacoes.integracao.bnafar.relatorio-envio';
|
||||
|
||||
public function view(): View
|
||||
{
|
||||
$data = RelatorioEnvioService::getPrintExportData();
|
||||
$data['title'] = self::TITLE;
|
||||
|
||||
return view(self::VIEW, $data);
|
||||
}
|
||||
}
|
||||
20
api/app/Exports/Integracao/ExportAtendimento.php
Normal file
20
api/app/Exports/Integracao/ExportAtendimento.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exports\Integracao;
|
||||
|
||||
use App\Services\Integracao\Erpsaude\RelatorioAtendimentoService;
|
||||
use Illuminate\Contracts\View\View;
|
||||
use Maatwebsite\Excel\Concerns\FromView;
|
||||
|
||||
class ExportAtendimento implements FromView
|
||||
{
|
||||
private const VIEW = 'exportacoes.integracao.erpsaude.export-atendimento';
|
||||
|
||||
public function view(): View
|
||||
{
|
||||
return view(self::VIEW, [
|
||||
'atendimentos' => RelatorioAtendimentoService::index(),
|
||||
'params' => request()->all()
|
||||
]);
|
||||
}
|
||||
}
|
||||
21
api/app/Exports/Integracao/Ria/RelatorioEnvio.php
Normal file
21
api/app/Exports/Integracao/Ria/RelatorioEnvio.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exports\Integracao\Ria;
|
||||
|
||||
use App\Services\Integracao\Ria\RelatorioEnvioService;
|
||||
use Illuminate\Contracts\View\View;
|
||||
use Maatwebsite\Excel\Concerns\FromView;
|
||||
|
||||
class RelatorioEnvio implements FromView
|
||||
{
|
||||
private const TITLE = 'RELATÓRIO DE ENVIO';
|
||||
private const VIEW = 'exportacoes.integracao.ria.relatorio-envio';
|
||||
|
||||
public function view(): View
|
||||
{
|
||||
$data = RelatorioEnvioService::getPrintExportData();
|
||||
$data['title'] = self::TITLE;
|
||||
|
||||
return view(self::VIEW, $data);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user