22 lines
586 B
PHP
22 lines
586 B
PHP
<?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);
|
|
}
|
|
}
|