22 lines
582 B
PHP
22 lines
582 B
PHP
<?php
|
|
|
|
namespace App\Exports\ExameLaboratorial;
|
|
|
|
use App\Services\ExameLaboratorial\RelatorioFinanceiroPacienteService;
|
|
use Illuminate\Contracts\View\View;
|
|
use Maatwebsite\Excel\Concerns\FromView;
|
|
|
|
class ExportFinanceiroPaciente implements FromView
|
|
{
|
|
private const TITLE = 'RELATÓRIO FINANCEIRO POR PACIENTE';
|
|
private const VIEW = 'exportacoes.exame-laboratorial.financeiro-paciente';
|
|
|
|
public function view(): View
|
|
{
|
|
$data = RelatorioFinanceiroPacienteService::index();
|
|
$data['title'] = self::TITLE;
|
|
|
|
return view(self::VIEW, $data);
|
|
}
|
|
}
|