'data' => [
'meta' => [
'totalPages' => ceil($pagination->totalRecords / $pagination->perPage),
'currentPage' => $pagination->currentPage + 1,
'totalRecords' => $pagination->totalRecords,
'recordsOnCurrentPage' => count($records),
'recordFrom' => ($pagination->currentPage * $pagination->perPage) + 1,
'recordTo' => ($pagination->currentPage * $pagination->perPage) + count($records),
],
'records' => $records,