This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Impressao\ExameImagem;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Services\ExameImagem\ExameAgendadoRealizadoService;
|
||||
use App\Utils\Exports\Pdf1;
|
||||
|
||||
|
||||
class HistoricoExameControlller extends Controller
|
||||
{
|
||||
private const TITLE = 'HISTÓRICO DE EXAMES';
|
||||
private const TEMPLATE = 'exame-imagem.historico-exame';
|
||||
|
||||
public static function getTemplate($idPaciente)
|
||||
{
|
||||
return [
|
||||
'historico' => ExameAgendadoRealizadoService::index($idPaciente),
|
||||
'params' => ExameAgendadoRealizadoService::getDados($idPaciente),
|
||||
];
|
||||
}
|
||||
|
||||
public function __invoke($idPaciente)
|
||||
{
|
||||
return Pdf1::generate(self::TITLE, self::TEMPLATE, self::getTemplate($idPaciente));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user