38 lines
978 B
PHP
38 lines
978 B
PHP
<?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();
|
|
}
|
|
}
|