This commit is contained in:
@@ -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