mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Dashboard API
This commit is contained in:
parent
85633d3464
commit
6e7c19b38e
@ -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);
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user