This commit is contained in:
21
api/app/Exports/TransportePaciente/Relatorios/Agendador.php
Normal file
21
api/app/Exports/TransportePaciente/Relatorios/Agendador.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exports\TransportePaciente\Relatorios;
|
||||
|
||||
use App\Services\TransportePaciente\Relatorios\RelatorioAgendadorService;
|
||||
use Illuminate\Contracts\View\View;
|
||||
use Maatwebsite\Excel\Concerns\FromView;
|
||||
|
||||
class Agendador implements FromView
|
||||
{
|
||||
private const TITLE = 'RELATÓRIO DE AGENDAMENTOS';
|
||||
private const VIEW = 'exportacoes.transporte-paciente.relatorios.agendador';
|
||||
|
||||
public function view(): View
|
||||
{
|
||||
$data = RelatorioAgendadorService::getPrintExportData();
|
||||
$data['title'] = self::TITLE;
|
||||
|
||||
return view(self::VIEW, $data);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exports\TransportePaciente\Relatorios;
|
||||
|
||||
use App\Services\TransportePaciente\Relatorios\EstatisticoService;
|
||||
use Illuminate\Contracts\View\View;
|
||||
use Maatwebsite\Excel\Concerns\FromView;
|
||||
|
||||
class Estatistico implements FromView
|
||||
{
|
||||
private const TITLE = 'RELATÓRIO ESTATÁTISTICO DE VIAGEM POR MOTORISTA';
|
||||
private const VIEW = 'exportacoes.transporte-paciente.relatorios.estatistico';
|
||||
|
||||
public function view(): View
|
||||
{
|
||||
$data = EstatisticoService::getPrintExportData();
|
||||
$data['title'] = self::TITLE;
|
||||
|
||||
return view(self::VIEW, $data);
|
||||
}
|
||||
}
|
||||
22
api/app/Exports/TransportePaciente/Relatorios/Listagem.php
Normal file
22
api/app/Exports/TransportePaciente/Relatorios/Listagem.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exports\TransportePaciente\Relatorios;
|
||||
|
||||
use App\Services\TransportePaciente\Relatorios\ListagemService;
|
||||
use App\Services\TransportePaciente\Relatorios\ViagemService;
|
||||
use Illuminate\Contracts\View\View;
|
||||
use Maatwebsite\Excel\Concerns\FromView;
|
||||
|
||||
class Listagem implements FromView
|
||||
{
|
||||
private const TITLE = 'LISTAGEM DE TRANSPORTE AGENDADO';
|
||||
private const VIEW = 'exportacoes.transporte-paciente.relatorios.listagem';
|
||||
|
||||
public function view(): View
|
||||
{
|
||||
$data = ListagemService::getPrintExportData();
|
||||
$data['title'] = self::TITLE;
|
||||
|
||||
return view(self::VIEW, $data);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exports\TransportePaciente\Relatorios;
|
||||
|
||||
use App\Services\TransportePaciente\Relatorios\PrestacaoContaService;
|
||||
use Illuminate\Contracts\View\View;
|
||||
use Maatwebsite\Excel\Concerns\FromView;
|
||||
|
||||
class PrestacaoConta implements FromView
|
||||
{
|
||||
private const TITLE = 'RELATÓRIO PRESTAÇÃO DE CONTAS';
|
||||
private const VIEW = 'exportacoes.transporte-paciente.relatorios.prestacao-conta';
|
||||
|
||||
public function view(): View
|
||||
{
|
||||
$data = PrestacaoContaService::getPrintExportData();
|
||||
$data['title'] = self::TITLE;
|
||||
|
||||
return view(self::VIEW, $data);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exports\TransportePaciente\Relatorios;
|
||||
|
||||
use App\Services\TransportePaciente\Relatorios\RelatorioQuantitativoService;
|
||||
use Illuminate\Contracts\View\View;
|
||||
use Maatwebsite\Excel\Concerns\FromView;
|
||||
|
||||
class Quantitativo implements FromView
|
||||
{
|
||||
private const TITLE = 'RELATÓRIO QUANTITATIVO DE VIAGEM';
|
||||
private const VIEW = 'exportacoes.transporte-paciente.relatorios.quantitativo';
|
||||
|
||||
public function view(): View
|
||||
{
|
||||
$data = RelatorioQuantitativoService::getPrintExportData();
|
||||
$data['title'] = self::TITLE;
|
||||
|
||||
return view(self::VIEW, $data);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exports\TransportePaciente\Relatorios;
|
||||
|
||||
use App\Services\TransportePaciente\Relatorios\RelatorioViagemMotoristaService;
|
||||
use Illuminate\Contracts\View\View;
|
||||
use Maatwebsite\Excel\Concerns\FromView;
|
||||
|
||||
class RelatorioViagemMotorista implements FromView
|
||||
{
|
||||
private const TITLE = 'RELATÓRIO DE VIAGEM POR MOTORISTA';
|
||||
private const VIEW = 'exportacoes.transporte-paciente.relatorios.relatorio-viagem-motorista';
|
||||
|
||||
public function view(): View
|
||||
{
|
||||
$data = RelatorioViagemMotoristaService::getPrintExportData();
|
||||
$data['title'] = self::TITLE;
|
||||
|
||||
return view(self::VIEW, $data);
|
||||
}
|
||||
}
|
||||
21
api/app/Exports/TransportePaciente/Relatorios/Viagem.php
Normal file
21
api/app/Exports/TransportePaciente/Relatorios/Viagem.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exports\TransportePaciente\Relatorios;
|
||||
|
||||
use App\Services\TransportePaciente\Relatorios\ViagemService;
|
||||
use Illuminate\Contracts\View\View;
|
||||
use Maatwebsite\Excel\Concerns\FromView;
|
||||
|
||||
class Viagem implements FromView
|
||||
{
|
||||
private const TITLE = 'RELATÓRIO DE VIAGEM';
|
||||
private const VIEW = 'exportacoes.transporte-paciente.relatorios.viagem';
|
||||
|
||||
public function view(): View
|
||||
{
|
||||
$data = ViagemService::getPrintExportData();
|
||||
$data['title'] = self::TITLE;
|
||||
|
||||
return view(self::VIEW, $data);
|
||||
}
|
||||
}
|
||||
21
api/app/Exports/TransportePaciente/Relatorios/ViagemData.php
Normal file
21
api/app/Exports/TransportePaciente/Relatorios/ViagemData.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exports\TransportePaciente\Relatorios;
|
||||
|
||||
use App\Services\TransportePaciente\Relatorios\ViagemDataService;
|
||||
use Illuminate\Contracts\View\View;
|
||||
use Maatwebsite\Excel\Concerns\FromView;
|
||||
|
||||
class ViagemData implements FromView
|
||||
{
|
||||
private const TITLE = 'RELATÓRIO DE VIAGEM POR DATA';
|
||||
private const VIEW = 'exportacoes.transporte-paciente.relatorios.viagem-data';
|
||||
|
||||
public function view(): View
|
||||
{
|
||||
$data = ViagemDataService::getPrintExportData();
|
||||
$data['title'] = self::TITLE;
|
||||
|
||||
return view(self::VIEW, $data);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exports\TransportePaciente\Relatorios;
|
||||
|
||||
use App\Services\TransportePaciente\Relatorios\RelatorioViagemGeralService;
|
||||
use Illuminate\Contracts\View\View;
|
||||
use Maatwebsite\Excel\Concerns\FromView;
|
||||
|
||||
class ViagemGeral implements FromView
|
||||
{
|
||||
private const TITLE = 'RELATÓRIO DE VIAGEM GERAL';
|
||||
private const VIEW = 'exportacoes.transporte-paciente.relatorios.viagem-geral';
|
||||
|
||||
public function view(): View
|
||||
{
|
||||
$data = RelatorioViagemGeralService::getPrintExportData();
|
||||
$data['title'] = self::TITLE;
|
||||
|
||||
return view(self::VIEW, $data);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exports\TransportePaciente\Relatorios;
|
||||
|
||||
use App\Services\TransportePaciente\Relatorios\ViagemVeiculoService;
|
||||
use Illuminate\Contracts\View\View;
|
||||
use Maatwebsite\Excel\Concerns\FromView;
|
||||
|
||||
class ViagemVeiculo implements FromView
|
||||
{
|
||||
private const TITLE = 'RELATÓRIO DE VIAGEM POR VEÍCULO';
|
||||
private const VIEW = 'exportacoes.transporte-paciente.relatorios.viagem-veiculo';
|
||||
|
||||
public function view(): View
|
||||
{
|
||||
$data = ViagemVeiculoService::getPrintExportData();
|
||||
$data['title'] = self::TITLE;
|
||||
|
||||
return view(self::VIEW, $data);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user