22 lines
584 B
PHP
22 lines
584 B
PHP
<?php
|
|
|
|
namespace App\Exports\ExameLaboratorial;
|
|
|
|
use App\Services\ExameLaboratorial\RelatorioPacienteAtendidoService;
|
|
use Illuminate\Contracts\View\View;
|
|
use Maatwebsite\Excel\Concerns\FromView;
|
|
|
|
class ExportPacienteAtendido implements FromView
|
|
{
|
|
private const TITLE = 'RELATÓRIO DE PACIENTE ATENDIDO';
|
|
private const VIEW = 'exportacoes.exame-laboratorial.paciente-atendido';
|
|
|
|
public function view(): View
|
|
{
|
|
$data = RelatorioPacienteAtendidoService::getPrintExportData();
|
|
$data['title'] = self::TITLE;
|
|
|
|
return view(self::VIEW, $data);
|
|
}
|
|
}
|