protected function getTotalOfRecordsString(int $totalOfRecords, array $data)
    {
        $show = $data['show'];
        $page = $data['page'];

        $startRecord = 0;
        if (intval($totalOfRecords) > 0) {
            $startRecord = ($show * ($page - 1)) + 1;
        }
        $endRecord = $show * $page;

        if ($endRecord > $totalOfRecords) {
            $endRecord = $totalOfRecords;
        }
        return $this->trans('totalOfRecordsString', [
            '%$startRecord%' => $startRecord,
            '%$endRecord%' => $endRecord,
            '%$totalOfRecords%' => $totalOfRecords,
        ], 'messages');
    }