This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Impressao\Cadastro;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Services\Cadastro\RelatorioPacienteBairroService;
|
||||
use App\Utils\Exports\Pdf1;
|
||||
|
||||
class RelatorioPacienteBairroController extends Controller
|
||||
{
|
||||
private const TITLE = 'RELATÓRIO DE PACIENTE POR BAIRRO';
|
||||
private const TEMPLATE = 'cadastro.relatorio-paciente-bairro';
|
||||
|
||||
public static function getTemplate()
|
||||
{
|
||||
return RelatorioPacienteBairroService::getPrintExportData();
|
||||
}
|
||||
|
||||
public function __invoke()
|
||||
{
|
||||
return Pdf1::generate(self::TITLE, self::TEMPLATE, self::getTemplate(), 'landscape');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user