29 lines
786 B
PHP
29 lines
786 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Impressao\ExameImagem;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use App\Services\ExameImagem\RelatorioExameStatusService;
|
|
use App\Utils\Exports\Pdf1;
|
|
|
|
|
|
class RelatorioExameStatusController extends Controller
|
|
{
|
|
private const TITLE = 'RELATÓRIO EXAME STATUS';
|
|
private const TEMPLATE = 'exame-imagem.relatorio-exame-status';
|
|
|
|
public static function getTemplate()
|
|
{
|
|
return [
|
|
'listagem' => RelatorioExameStatusService::index(),
|
|
'params' => request()->all()
|
|
];
|
|
}
|
|
|
|
public function __invoke()
|
|
{
|
|
$orientation = isset(request()->orientation) ? request()->orientation : 'portrait';
|
|
return Pdf1::generate(self::TITLE, self::TEMPLATE, self::getTemplate(), $orientation);
|
|
}
|
|
}
|