public function getIndex()
    {
        $permissions = PermissionProvider::createModel();
        $permissionId = Input::get('permissionIdSearch');
        if(!empty($permissionId)) {
            $permissions = $permissions->where('id', $permissionId);
        }
        $permissionName = Input::get('permissionNameSearch');
        if(!empty($permissionName)) {
            $permissions = $permissions->where('name', 'LIKE', '%'.$permissionName.'%');
        }
        $permissionValue = Input::get('permissionValueSearch');
        if(!empty($permissionValue)) {
            $permissions = $permissions->where('value', 'LIKE', '%'.$permissionValue.'%');
        }

        $permissions = $permissions->paginate(Config::get('syntara::config.item-perge-page'));

        // ajax request : reload only content container
        if(Request::ajax()) {
            $html = View::make(Config::get('syntara::views.permissions-list'), array('permissions' => $permissions))->render();

            return Response::json(array('html' => $html));
        }

        $this->layout = View::make(Config::get('syntara::views.permissions-index'), array('permissions' => $permissions));
        $this->layout->title = trans('syntara::permissions.titles.list');
        $this->layout->breadcrumb = Config::get('syntara::breadcrumbs.permissions');
    }