public function countAdvancedSearchData()
    {
        $parameters = [];

        // set advanced search
        $parameters                     = Miscellaneous::dataTableColumnFiltering($this->request, $parameters, 'array');

        // set order table
        $parameters['order']            = json_decode($this->request->input('order'), true);

        // config variables to count n records
        $parametersCount                = $parameters;
        $parametersCount['count']       = true;
        $nFilteredTotal                 = call_user_func($this->model . '::getIndexRecords', $this->request, $parametersCount);

        return response()->json([
            'success'   => true,
            'nRows'     => $nFilteredTotal
        ]);
    }