$page, 'pages' => $pages, 'offset' => ($page - 1) * $perPage, 'perPage' => $perPage, 'total' => $total, ]; } }