This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Farmacia;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Services\Farmacia\RelatorioPacienteAtendidoService;
|
||||
use Illuminate\Http\Response;
|
||||
|
||||
class RelatorioPacienteAtendidoController extends Controller
|
||||
{
|
||||
protected $modulo = 'farmacia';
|
||||
protected $funcionalidade = 'relatorio-paciente-atendido';
|
||||
|
||||
public function index()
|
||||
{
|
||||
$this->auth(__FUNCTION__);
|
||||
|
||||
return response()->json(RelatorioPacienteAtendidoService::index(), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function create()
|
||||
{
|
||||
return response()->json(RelatorioPacienteAtendidoService::create(), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function list()
|
||||
{
|
||||
$this->auth(__FUNCTION__);
|
||||
|
||||
return response()->json(RelatorioPacienteAtendidoService::list(), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function autocompleteMaterial()
|
||||
{
|
||||
return datatables()->of(RelatorioPacienteAtendidoService::autocompleteMaterial())->toJson();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user