42 lines
966 B
PHP
42 lines
966 B
PHP
<?php
|
|
|
|
namespace Modules\Lpj\Http\Controllers;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use Illuminate\Http\Request;
|
|
use Modules\Lpj\Services\LaporanUserService;
|
|
|
|
class LaporanUserController extends Controller
|
|
{
|
|
|
|
|
|
private $laporanUserService;
|
|
|
|
public function __construct(LaporanUserService $laporanUserService)
|
|
{
|
|
$this->laporanUserService = $laporanUserService;
|
|
}
|
|
|
|
/**
|
|
* Display a listing of the resource.
|
|
*/
|
|
public function index()
|
|
{
|
|
// $user = $this->laporanUserService->getUserPemohon();
|
|
return view('lpj::laporan-user.index');
|
|
}
|
|
|
|
public function searchUserPemohon(Request $request)
|
|
{
|
|
$search = $request->get('search');
|
|
$user = $this->laporanUserService->getUserPemohon($search);
|
|
return response()->json($user);
|
|
}
|
|
|
|
public function dataTableForUserPemohon(Request $request)
|
|
{
|
|
return $this->laporanUserService->dataForDatatables($request);
|
|
}
|
|
|
|
}
|