This commit is contained in:
22
api/app/Exports/ExameLaboratorial/ExportFinanceiroExame.php
Normal file
22
api/app/Exports/ExameLaboratorial/ExportFinanceiroExame.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exports\ExameLaboratorial;
|
||||
|
||||
use App\Services\ExameLaboratorial\RelatorioFinanceiroExameService;
|
||||
use Illuminate\Contracts\View\View;
|
||||
use Maatwebsite\Excel\Concerns\FromView;
|
||||
|
||||
class ExportFinanceiroExame implements FromView
|
||||
{
|
||||
|
||||
private const TITLE = 'RELATÓRIO FINANCEIRO DE EXAME';
|
||||
private const VIEW = 'exportacoes.exame-laboratorial.financeiro-exame';
|
||||
|
||||
public function view(): View
|
||||
{
|
||||
$data = RelatorioFinanceiroExameService::index();
|
||||
$data['title'] = self::TITLE;
|
||||
|
||||
return view(self::VIEW, $data);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user