21 lines
532 B
PHP
21 lines
532 B
PHP
<?php
|
|
|
|
namespace App\Exports\ExameImagem\Relatorios;
|
|
|
|
use App\Services\ExameImagem\RelatorioProducaoService;
|
|
use Illuminate\Contracts\View\View;
|
|
use Maatwebsite\Excel\Concerns\FromView;
|
|
|
|
class ExportProducao implements FromView
|
|
{
|
|
private const VIEW = 'exportacoes.exame-imagem.relatorios.export-producao';
|
|
|
|
public function view(): View
|
|
{
|
|
return view(self::VIEW, [
|
|
'itens' => RelatorioProducaoService::index(),
|
|
'busca' => RelatorioProducaoService::getPrintExportData()
|
|
]);
|
|
}
|
|
}
|