22 lines
544 B
PHP
22 lines
544 B
PHP
<?php
|
|
|
|
namespace App\Exports\Farmacia;
|
|
|
|
use App\Services\Farmacia\RelatorioDispensacaoService;
|
|
use Illuminate\Contracts\View\View;
|
|
use Maatwebsite\Excel\Concerns\FromView;
|
|
|
|
class RelatorioDispensacao implements FromView
|
|
{
|
|
private const TITLE = 'RELATÓRIO DE DISPENSAÇÃO';
|
|
private const VIEW = 'exportacoes.farmacia.relatorio-dispensacao';
|
|
|
|
public function view(): View
|
|
{
|
|
$data = RelatorioDispensacaoService::getPrintExportData();
|
|
$data['title'] = self::TITLE;
|
|
|
|
return view(self::VIEW, $data);
|
|
}
|
|
}
|