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\ExameResultadoAgrupadoService;
|
||||
use App\Utils\Exports\Pdf1;
|
||||
|
||||
class ExameResultadoAgrupadoController extends Controller
|
||||
{
|
||||
private const TITLE = '';
|
||||
private const TEMPLATE = 'exame-laboratorial.exame-resultado-agrupado';
|
||||
|
||||
public static function getTemplate($id)
|
||||
{
|
||||
return [
|
||||
'atendimentos' => ExameResultadoAgrupadoService::index($id),
|
||||
'params' => request()->all(),
|
||||
];
|
||||
}
|
||||
|
||||
public function __invoke($id)
|
||||
{
|
||||
return Pdf1::generate(self::TITLE, self::TEMPLATE, self::getTemplate($id));
|
||||
}
|
||||
}
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Impressao\ExameLaboratorial;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Services\ExameLaboratorial\RelatorioAgendamentoService;
|
||||
use App\Utils\Exports\PdfCupom;
|
||||
|
||||
|
||||
class RelatorioAgendamentoController extends Controller
|
||||
{
|
||||
private const TITLE = 'DADOS DO AGENDAMENTO';
|
||||
private const TEMPLATE = 'exame-laboratorial.agendamento';
|
||||
|
||||
public static function getTemplate()
|
||||
{
|
||||
return [
|
||||
'agendamentos' => RelatorioAgendamentoService::index(),
|
||||
] ;
|
||||
}
|
||||
|
||||
public function __invoke($agendamentoId)
|
||||
{
|
||||
return PdfCupom::generate(self::TITLE, self::TEMPLATE, self::getTemplate($agendamentoId));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Impressao\ExameLaboratorial;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Services\ExameLaboratorial\RelatorioColetaAgendadaService;
|
||||
use App\Utils\Exports\Pdf1;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class RelatorioColetaAgendadaController extends Controller
|
||||
{
|
||||
private const TITLE = 'RELATÓRIO DE COLETA AGENDADA';
|
||||
private const TEMPLATE = 'exame-laboratorial.coleta-agendada';
|
||||
|
||||
public static function getTemplate($request)
|
||||
{
|
||||
return [
|
||||
'atendimentos' => RelatorioColetaAgendadaService::index($request),
|
||||
'params' => request()->all(),
|
||||
];
|
||||
}
|
||||
|
||||
public function __invoke(Request $request)
|
||||
{
|
||||
return Pdf1::generate(self::TITLE, self::TEMPLATE, self::getTemplate($request));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Impressao\ExameLaboratorial;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Services\ExameLaboratorial\RelatorioColetaRealizadaService;
|
||||
use App\Utils\Exports\Pdf1;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class RelatorioColetaRealizadaController extends Controller
|
||||
{
|
||||
private const TITLE = 'RELATÓRIO DE COLETAS REALIZADAS';
|
||||
private const TEMPLATE = 'exame-laboratorial.relatorio-coleta-realizada';
|
||||
|
||||
public static function getTemplate()
|
||||
{
|
||||
return RelatorioColetaRealizadaService::index();
|
||||
}
|
||||
|
||||
public function __invoke(Request $request)
|
||||
{
|
||||
return Pdf1::generate(self::TITLE, self::TEMPLATE, self::getTemplate($request));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Impressao\ExameLaboratorial;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Services\ExameLaboratorial\RelatorioCotaConsumoService;
|
||||
use App\Utils\Exports\Pdf1;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class RelatorioCotaConsumoController extends Controller
|
||||
{
|
||||
private const TITLE = 'RELATÓRIO DE COTA E CONSUMO';
|
||||
private const TEMPLATE = 'exame-laboratorial.relatorio-cota-consumo';
|
||||
|
||||
public static function getTemplate()
|
||||
{
|
||||
return RelatorioCotaConsumoService::index();
|
||||
}
|
||||
|
||||
public function __invoke(Request $request)
|
||||
{
|
||||
return Pdf1::generate(self::TITLE, self::TEMPLATE, self::getTemplate($request));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Impressao\ExameLaboratorial;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Services\ExameLaboratorial\RelatorioEntregaExameService;
|
||||
use App\Utils\Exports\Pdf1;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class RelatorioEntregaExameController extends Controller
|
||||
{
|
||||
private const TITLE = '';
|
||||
private const TEMPLATE = 'exame-laboratorial.entrega-exame';
|
||||
|
||||
public static function getTemplate($request)
|
||||
{
|
||||
return [
|
||||
'atendimentos' => RelatorioEntregaExameService::index($request),
|
||||
'params' => request()->all(),
|
||||
];
|
||||
}
|
||||
|
||||
public function __invoke(Request $request)
|
||||
{
|
||||
return Pdf1::generate(self::TITLE, self::TEMPLATE, self::getTemplate($request));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Impressao\ExameLaboratorial;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Services\ExameLaboratorial\RelatorioEntregaExameListService;
|
||||
use App\Utils\Exports\Pdf1;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class RelatorioEntregaExameListController extends Controller
|
||||
{
|
||||
private const TITLE = '';
|
||||
private const TEMPLATE = 'exame-laboratorial.entrega-exame-list';
|
||||
|
||||
public static function getTemplate($request)
|
||||
{
|
||||
return [
|
||||
'atendimentos' => RelatorioEntregaExameListService::index($request),
|
||||
'params' => request()->all(),
|
||||
];
|
||||
}
|
||||
|
||||
public function __invoke(Request $request)
|
||||
{
|
||||
return Pdf1::generate(self::TITLE, self::TEMPLATE, self::getTemplate($request));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Impressao\ExameLaboratorial;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Services\ExameLaboratorial\RelatorioEntregaExameSelecionadoService;
|
||||
use App\Utils\Exports\Pdf1;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class RelatorioEntregaExameSelecionadoController extends Controller
|
||||
{
|
||||
private const TITLE = '';
|
||||
private const TEMPLATE = 'exame-laboratorial.exame-list';
|
||||
|
||||
public static function getTemplate($request)
|
||||
{
|
||||
return [
|
||||
'atendimentos' => RelatorioEntregaExameSelecionadoService::index($request),
|
||||
'params' => request()->all(),
|
||||
];
|
||||
}
|
||||
|
||||
public function __invoke(Request $request)
|
||||
{
|
||||
return Pdf1::generate(self::TITLE, self::TEMPLATE, self::getTemplate($request));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Impressao\ExameLaboratorial;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Services\ExameLaboratorial\RelatorioExameAgendadoRealizadoService;
|
||||
use App\Utils\Exports\Pdf1;
|
||||
|
||||
class RelatorioExameAgendadoRealizadoController extends Controller
|
||||
{
|
||||
private const TITLE = 'HISTÓRICO DE EXAMES AGENDADOS E REALIZADOS';
|
||||
private const TEMPLATE = 'exame-laboratorial.exame-agendado-realizado';
|
||||
|
||||
public static function getTemplate($id)
|
||||
{
|
||||
return [
|
||||
'atendimentos' => RelatorioExameAgendadoRealizadoService::index($id),
|
||||
'params' => request()->all(),
|
||||
];
|
||||
}
|
||||
|
||||
public function __invoke($id)
|
||||
{
|
||||
return Pdf1::generate(self::TITLE, self::TEMPLATE, self::getTemplate($id));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Impressao\ExameLaboratorial;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Services\ExameLaboratorial\RelatorioExameBloqueadoService;
|
||||
use App\Utils\Exports\Pdf1;
|
||||
|
||||
class RelatorioExameBloqueadoController extends Controller
|
||||
{
|
||||
private const TITLE = 'RELATÓRIO DE EXAME BLOQUEADO';
|
||||
private const TEMPLATE = 'exame-laboratorial.relatorio-exame-bloqueado';
|
||||
|
||||
public static function getTemplate()
|
||||
{
|
||||
return RelatorioExameBloqueadoService::getPrintExportData();
|
||||
}
|
||||
|
||||
public function __invoke()
|
||||
{
|
||||
return Pdf1::generate(self::TITLE, self::TEMPLATE, self::getTemplate());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Impressao\ExameLaboratorial;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Services\ExameLaboratorial\RelatorioExameService;
|
||||
use App\Utils\Exports\Pdf1;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class RelatorioExameController extends Controller
|
||||
{
|
||||
private const TITLE = '';
|
||||
private const TEMPLATE = 'exame-laboratorial.exame';
|
||||
|
||||
public static function getTemplate($request)
|
||||
{
|
||||
return [
|
||||
'atendimentos' => RelatorioExameService::index($request),
|
||||
'params' => request()->all(),
|
||||
];
|
||||
}
|
||||
|
||||
public function __invoke(Request $request)
|
||||
{
|
||||
return Pdf1::generate(self::TITLE, self::TEMPLATE, self::getTemplate($request));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Impressao\ExameLaboratorial;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Services\ExameLaboratorial\RelatorioExameLaboratorioApoioService;
|
||||
use App\Utils\Exports\Pdf1;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class RelatorioExameLaboratorioApoioController extends Controller
|
||||
{
|
||||
private const TITLE = 'RELATÓRIO DE EXAME PARA LABORATÓRIO DE APOIO';
|
||||
private const TEMPLATE = 'exame-laboratorial.relatorio-exame-laboratorio-apoio';
|
||||
|
||||
public static function getTemplate()
|
||||
{
|
||||
return RelatorioExameLaboratorioApoioService::index();
|
||||
}
|
||||
|
||||
public function __invoke(Request $request)
|
||||
{
|
||||
return Pdf1::generate(self::TITLE, self::TEMPLATE, self::getTemplate($request));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Impressao\ExameLaboratorial;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Services\ExameLaboratorial\RelatorioExameListService;
|
||||
use App\Utils\Exports\Pdf1;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class RelatorioExameListController extends Controller
|
||||
{
|
||||
private const TITLE = '';
|
||||
private const TEMPLATE = 'exame-laboratorial.exame-list';
|
||||
|
||||
public static function getTemplate($request)
|
||||
{
|
||||
return [
|
||||
'atendimentos' => RelatorioExameListService::index($request),
|
||||
'params' => request()->all(),
|
||||
];
|
||||
}
|
||||
|
||||
public function __invoke(Request $request)
|
||||
{
|
||||
return Pdf1::generate(self::TITLE, self::TEMPLATE, self::getTemplate($request));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Impressao\ExameLaboratorial;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Services\ExameLaboratorial\RelatorioExameProducaoService;
|
||||
use App\Utils\Exports\Pdf1;
|
||||
|
||||
class RelatorioExameProducaoController extends Controller
|
||||
{
|
||||
private const TITLE = 'RELATÓRIO DE PRODUÇÃO';
|
||||
private const TEMPLATE = 'exame-laboratorial.exame-producao';
|
||||
|
||||
public static function getTemplate()
|
||||
{
|
||||
return RelatorioExameProducaoService::index();
|
||||
}
|
||||
|
||||
public function __invoke()
|
||||
{
|
||||
return Pdf1::generate(self::TITLE, self::TEMPLATE, self::getTemplate());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Impressao\ExameLaboratorial;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Services\ExameLaboratorial\RelatorioExameSolicitadoStatusService;
|
||||
use App\Utils\Exports\Pdf1;
|
||||
|
||||
class RelatorioExameSolicitadoStatusController extends Controller
|
||||
{
|
||||
private const TITLE = 'RELATÓRIO DE EXAMES SOLICITADOS POR STATUS';
|
||||
private const TEMPLATE = 'exame-laboratorial.exame-solicitado-status';
|
||||
|
||||
public static function getTemplate()
|
||||
{
|
||||
return [
|
||||
'atendimentos' => RelatorioExameSolicitadoStatusService::index(),
|
||||
'params' => request()->all(),
|
||||
];
|
||||
}
|
||||
|
||||
public function __invoke()
|
||||
{
|
||||
return Pdf1::generate(self::TITLE, self::TEMPLATE, self::getTemplate());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Impressao\ExameLaboratorial;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Services\ExameLaboratorial\RelatorioFinanceiroExameService;
|
||||
use App\Utils\Exports\Pdf1;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class RelatorioFinanceiroExameController extends Controller
|
||||
{
|
||||
private const TITLE = 'RELATÓRIO FINANCEIRO DE EXAME';
|
||||
private const TEMPLATE = 'exame-laboratorial.relatorio-financeiro-exame';
|
||||
|
||||
public static function getTemplate()
|
||||
{
|
||||
return RelatorioFinanceiroExameService::index();
|
||||
}
|
||||
|
||||
public function __invoke(Request $request)
|
||||
{
|
||||
return Pdf1::generate(self::TITLE, self::TEMPLATE, self::getTemplate($request));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Impressao\ExameLaboratorial;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Services\ExameLaboratorial\RelatorioFinanceiroPacienteService;
|
||||
use App\Utils\Exports\Pdf1;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class RelatorioFinanceiroPacienteController extends Controller
|
||||
{
|
||||
private const TITLE = 'RELATÓRIO FINANCEIRO POR PACIENTE';
|
||||
private const TEMPLATE = 'exame-laboratorial.relatorio-financeiro-paciente';
|
||||
|
||||
public static function getTemplate()
|
||||
{
|
||||
return RelatorioFinanceiroPacienteService::index();
|
||||
}
|
||||
|
||||
public function __invoke(Request $request)
|
||||
{
|
||||
return Pdf1::generate(self::TITLE, self::TEMPLATE, self::getTemplate($request));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Impressao\ExameLaboratorial;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Services\ExameLaboratorial\RelatorioHistoricoPacienteService;
|
||||
use App\Utils\Exports\Pdf1;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class RelatorioHistoricoPacienteController extends Controller
|
||||
{
|
||||
private const TITLE = 'RELATÓRIO DE HISTÓRICO DO PACIENTE';
|
||||
private const TEMPLATE = 'exame-laboratorial.relatorio-historico-paciente';
|
||||
|
||||
public static function getTemplate()
|
||||
{
|
||||
return RelatorioHistoricoPacienteService::index();
|
||||
}
|
||||
|
||||
public function __invoke(Request $request)
|
||||
{
|
||||
return Pdf1::generate(self::TITLE, self::TEMPLATE, self::getTemplate($request));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Impressao\ExameLaboratorial;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Services\ExameLaboratorial\RelatorioLancamentoColetaService;
|
||||
use App\Utils\Exports\Pdf1;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class RelatorioLancamentoColetaController extends Controller
|
||||
{
|
||||
private const TITLE = 'LISTAGEM PARA COLETA DE EXAMES';
|
||||
private const TEMPLATE = 'exame-laboratorial.lancamento-coleta';
|
||||
|
||||
public static function getTemplate($request)
|
||||
{
|
||||
return [
|
||||
'atendimentos' => RelatorioLancamentoColetaService::index($request),
|
||||
'params' => request()->all(),
|
||||
];
|
||||
}
|
||||
|
||||
public function __invoke(Request $request)
|
||||
{
|
||||
return Pdf1::generate(self::TITLE, self::TEMPLATE, self::getTemplate($request));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Impressao\ExameLaboratorial;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Services\ExameLaboratorial\RelatorioMapaDiaService;
|
||||
use App\Utils\Exports\Pdf1;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class RelatorioMapaDiaController extends Controller
|
||||
{
|
||||
private const TITLE = 'MAPA DO DIA';
|
||||
private const TEMPLATE = 'exame-laboratorial.mapa-dia';
|
||||
|
||||
public static function getTemplate($request)
|
||||
{
|
||||
return [
|
||||
'atendimentos' => RelatorioMapaDiaService::index($request),
|
||||
'params' => request()->all(),
|
||||
];
|
||||
}
|
||||
|
||||
public function __invoke(Request $request)
|
||||
{
|
||||
return Pdf1::generate(self::TITLE, self::TEMPLATE, self::getTemplate($request));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Impressao\ExameLaboratorial;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Services\ExameLaboratorial\RelatorioMapaProducaoService;
|
||||
use App\Utils\Exports\Pdf1;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class RelatorioMapaProducaoController extends Controller
|
||||
{
|
||||
private const TITLE = 'MAPA DE PRODUÇÃO';
|
||||
private const TEMPLATE = 'exame-laboratorial.mapa-producao';
|
||||
|
||||
public static function getTemplate($request)
|
||||
{
|
||||
return [
|
||||
'atendimentos' => RelatorioMapaProducaoService::index($request),
|
||||
'params' => request()->all(),
|
||||
];
|
||||
}
|
||||
|
||||
public function __invoke(Request $request)
|
||||
{
|
||||
return Pdf1::generate(self::TITLE, self::TEMPLATE, self::getTemplate($request));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Impressao\ExameLaboratorial;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Services\ExameLaboratorial\RelatorioPacienteAtendidoService;
|
||||
use App\Utils\Exports\Pdf1;
|
||||
|
||||
class RelatorioPacienteAtendidoController extends Controller
|
||||
{
|
||||
private const TITLE = 'RELATÓRIO DE PACIENTE ATENDIDO';
|
||||
private const TEMPLATE = 'exame-laboratorial.relatorio-paciente-atendido';
|
||||
|
||||
public static function getTemplate()
|
||||
{
|
||||
return RelatorioPacienteAtendidoService::getPrintExportData();
|
||||
}
|
||||
|
||||
public function __invoke()
|
||||
{
|
||||
return Pdf1::generate(self::TITLE, self::TEMPLATE, self::getTemplate());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Impressao\ExameLaboratorial;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Services\ExameLaboratorial\RelatorioQuantitativoExameSolicitadoService;
|
||||
use App\Utils\Exports\Pdf1;
|
||||
|
||||
class RelatorioQuantitativoExameSolicitadoController extends Controller
|
||||
{
|
||||
private const TITLE = 'RELATÓRIO QUANTITATIVO DE EXAME SOLICITADO';
|
||||
private const TEMPLATE = 'exame-laboratorial.relatorio-quantitativo-exame-solicitado';
|
||||
|
||||
public static function getTemplate()
|
||||
{
|
||||
return [
|
||||
'atendimentos' => RelatorioQuantitativoExameSolicitadoService::index(),
|
||||
'params' => request()->all(),
|
||||
];
|
||||
}
|
||||
|
||||
public function __invoke()
|
||||
{
|
||||
return Pdf1::generate(self::TITLE, self::TEMPLATE, self::getTemplate());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Impressao\ExameLaboratorial;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Services\ExameLaboratorial\RelatorioQuantitativoProducaoService;
|
||||
use App\Utils\Exports\Pdf1;
|
||||
|
||||
class RelatorioQuantitativoProducaoController extends Controller
|
||||
{
|
||||
private const TITLE = 'RELATÓRIO QUANTITATIVO DE PRODUCAO';
|
||||
private const TEMPLATE = 'exame-laboratorial.relatorio-quantitativo-producao';
|
||||
|
||||
public static function getTemplate()
|
||||
{
|
||||
|
||||
return [
|
||||
'atendimentos' => RelatorioQuantitativoProducaoService::index(),
|
||||
'params' => request()->all(),
|
||||
];
|
||||
}
|
||||
|
||||
public function __invoke()
|
||||
{
|
||||
$orientation = isset(request()->orientation) ? request()->orientation : 'portrait';
|
||||
return Pdf1::generate(self::TITLE, self::TEMPLATE, self::getTemplate(), $orientation);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user