This commit is contained in:
Manish Verma
2016-12-13 18:18:25 +05:30
parent fc98add11c
commit 2d8e640e9b
2314 changed files with 97798 additions and 75664 deletions

View File

@@ -16,8 +16,8 @@ use App\Model\helpdesk\Agent_panel\User_org;
use App\User;
// classes
use Exception;
use Illuminate\Http\Request;
use Lang;
use Illuminate\Http\Request;
/**
* OrganizationController
@@ -61,16 +61,6 @@ class OrganizationController extends Controller
}
}
/**
* This function is used autofill organizations name .
*
* @return datatable
*/
public function organizationAutofill()
{
return view('themes.default1.agent.helpdesk.organization.getautocomplete');
}
/**
* This function is used to display the list of Organizations.
*
@@ -339,16 +329,24 @@ class OrganizationController extends Controller
return '['.$last.']';
}
public function getOrgAjax(Request $request)
{
public function getOrgAjax(Request $request){
$org = new Organization();
$q = $request->input('term');
$orgs = $org->where('name', 'LIKE', '%'.$q.'%')
->select('name as label', 'id as value')
$orgs = $org->where('name','LIKE','%'.$q.'%')
->select('name as label','id as value')
->get()
->toJson();
return $orgs;
}
/**
* This function is used autofill organizations name .
*
* @return datatable
*/
public function organizationAutofill()
{
return view('themes.default1.agent.helpdesk.organization.getautocomplete');
}
}