This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Impressao\ExameImagem;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Models\Cadastro\SujeitoAtencao\UsuarioRegistroTipo;
|
||||
use App\Services\ExameImagem\RelatorioLancamentoService;
|
||||
use App\Utils\Exports\Pdf1;
|
||||
|
||||
|
||||
class RelatorioLancamentoController extends Controller
|
||||
{
|
||||
private const TITLE = 'RESULTADO DO EXAME';
|
||||
private const TEMPLATE = 'exame-imagem.lancamento';
|
||||
|
||||
public static function getTemplate($idPaciente)
|
||||
{
|
||||
return [
|
||||
'lancamento' => RelatorioLancamentoService::getLancamento($idPaciente),
|
||||
];
|
||||
}
|
||||
|
||||
public function __invoke($idPaciente)
|
||||
{
|
||||
return Pdf1::generate(self::TITLE, self::TEMPLATE, self::getTemplate($idPaciente));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user