<?php
declare(strict_types=1);

/** @var \App\Core\Router $router */

use App\Middleware\AuthMiddleware;
use App\Middleware\TenantMiddleware;

$mw = [AuthMiddleware::class, TenantMiddleware::class];

$router->get('/dashboard/stats', 'DashboardController@stats', $mw);
$router->get('/dashboard/revenue-chart', 'DashboardController@revenueChart', $mw);
$router->get('/dashboard/invoice-status', 'DashboardController@invoiceStatus', $mw);
$router->get('/dashboard/top-customers', 'DashboardController@topCustomers', $mw);
$router->get('/dashboard/recent-invoices', 'DashboardController@recentInvoices', $mw);
$router->get('/dashboard/low-stock', 'DashboardController@lowStock', $mw);
$router->get('/dashboard/upcoming-dues', 'DashboardController@upcomingDues', $mw);
$router->get('/dashboard/receivable-aging', 'DashboardController@receivableAging', $mw);
