protected function generatePaginatedResponse($resources, array $metadada = [])
    {
        $paginationData = $this->generatePaginationData($resources);

        $data = [
            'data' => $this->transformer->transformCollection($resources->items()),
        ];

        return Response::json(array_merge($metadada, $paginationData, $data), 200);
    }