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