This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user