This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Impressao\ExameLaboratorial;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Services\ExameLaboratorial\ExameResultadoService;
|
||||
use App\Utils\Exports\Pdf1;
|
||||
|
||||
class ExameResultadoController extends Controller
|
||||
{
|
||||
private const TITLE = '';
|
||||
private const TEMPLATE = 'exame-laboratorial.exame-resultado';
|
||||
|
||||
public static function getTemplate($id)
|
||||
{
|
||||
return [
|
||||
'atendimentos' => ExameResultadoService::index($id),
|
||||
'params' => request()->all(),
|
||||
];
|
||||
}
|
||||
|
||||
public function __invoke($id)
|
||||
{
|
||||
return Pdf1::generate(self::TITLE, self::TEMPLATE, self::getTemplate($id));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user