Combine results from API requests and aggregate totals I have inherited a PHP project, it is written in Laravel 9.2.