1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Dashboard API

This commit is contained in:
David Bomba 2016-03-22 21:08:58 +11:00
parent 85633d3464
commit 6e7c19b38e

View File

@ -171,20 +171,14 @@ class DashboardApiController extends BaseAPIController
];
*/
$data = [
'account' => Auth::user()->account,
'id' => 1,
'paidToDate' => $paidToDate,
'balances' => $balances,
'averageInvoice' => $averageInvoice,
'invoicesSent' => $metrics ? $metrics->invoices_sent : 0,
'activeClients' => $metrics ? $metrics->active_clients : 0,
'activities' => $activities,
'pastDue' => $pastDue,
'upcoming' => $upcoming,
'payments' => $payments,
'title' => trans('texts.dashboard'),
'hasQuotes' => $hasQuotes,
];
return $this->response($data);
}