/** * Display a listing of the departments. * * @return Response */ public function read(\Illuminate\Http\Request $request) { $departments = $this->department->getKendo($request); $total = $this->department->getTotal($request); return response()->json(['data' => $departments, 'total' => $total]); }