<?php

// TODO: widget-uri noi: la nivel de customer dashboard: un widget de unde sa pot sa vad detalii psg, sau sa deschid popup de profil.
// TODO: widget-uri noi: la nivel de corporate dashboard: un widget de unde sa pot sa vad detalii psg, sau sa deschid popup de profil
// TODO: un widget care sa afiseze un ceas dragua analogic (sau digital) care sa arate ora si data de pe server.
// TODO: un widget care sa afiseze detalii despre userul curent (logari, si alte statistici)
// TODO: un widget care sa afiseze detalii despre server: Server name, server IP, server load (sa afiseze un grafic micut care sa imi dea istoricul load-urilor), free hdd space, uptime, ram status
// TODO: sa facem si supplier dashboard
// TODO: la order dashboard sa punem widget-ul de vreme pentru perioada cand se desfasoara rez

// TODO: ar trebui mutat in custom load

///////////////////////////////////////////////////////////////////////////////////////////////////
// THE LIST OF DASHBOARD WIDGETS //////////////////////////////////////////////////////////////////
// associative array of "widget className" => options (active, category, cacheMinLifetime)
///////////////////////////////////////////////////////////////////////////////////////////////////

$CFG['dashboardWidgets']['\App\Dashboard\Widget\BookmarkWebsites'] = [
	'active' =>                   true,
	'order' =>                    2,
	'category' =>                 'misc',
	'cacheMinLifetime' =>         30,
	'possibleDashboards' =>       [ 'Modules\Home\Dashboard' ],
];

$CFG['dashboardWidgets']['\App\Dashboard\Widget\CurrencyExchangeRates'] = [
	'active' =>                   true,
	'order' =>					  60,
	'category' =>                 'currency',
	'cacheMinLifetime' =>         NULL,
	'possibleDashboards' =>       [ 'Modules\Home\Dashboard' ],
];
$CFG['dashboardWidgets']['\App\Dashboard\Widget\CurrencyCalculator'] = [
	'active' =>                   true,
	'order' =>					  60,
	'category' =>                 'currency',
	'cacheMinLifetime' =>         NULL,
	'possibleDashboards' =>       [ 'Modules\Home\Dashboard' ],
];
$CFG['dashboardWidgets']['\App\Dashboard\Widget\LastInvoices'] = [
	'active' =>                   true,
	'order' =>					  10,
	'category' =>                 'operational',
	'cacheMinLifetime' =>         60,
	'possibleDashboards' =>       [ 'Modules\Home\Dashboard' ],
];
$CFG['dashboardWidgets']['\App\Dashboard\Widget\LastCashings'] = [
	'active' =>                   true,
	'order' =>					  11,
	'category' =>                 'operational',
	'cacheMinLifetime' =>         60,
	'possibleDashboards' =>       [ 'Modules\Home\Dashboard' ],
];
$CFG['dashboardWidgets']['\App\Dashboard\Widget\LastReservations'] = [
	'active' =>                   true,
	'order' =>					  12,
	'category' =>                 'operational',
	'cacheMinLifetime' =>         60,
	'possibleDashboards' =>       [ 'Modules\Home\Dashboard' ],
];
$CFG['dashboardWidgets']['\App\Dashboard\Widget\LastTasks'] = [
	'active' =>                   true,
	'order' =>					  71,
	'category' =>                 'operational',
	'cacheMinLifetime' =>         60,
	'possibleDashboards' =>       [ 'Modules\Home\Dashboard' ],
];
$CFG['dashboardWidgets']['\App\Dashboard\Widget\LastImportedServices'] = [
	'active' =>                   true,
	'order' =>					  17,
	'category' =>                 'operational',
	'cacheMinLifetime' =>         300,
	'possibleDashboards' =>       [ 'Modules\Home\Dashboard' ],
];
$CFG['dashboardWidgets']['\App\Dashboard\Widget\Weather'] = [
	'active' =>                   true,		'order' =>	99,
	'category' =>                 'misc',
	'cacheMinLifetime' =>         900,
	'possibleDashboards' =>       [ 'Modules\Home\Dashboard' ],
];

$CFG['dashboardWidgets']['\App\Dashboard\Widget\ServerCurrentInfo'] = [
	'active' =>                   true,		'order' =>	100,
	'category' =>                 'misc',
	'cacheMinLifetime' =>         NULL,
	'possibleDashboards' =>       [ 'Modules\Home\Dashboard' ],
];

$CFG['dashboardWidgets']['\App\Dashboard\Widget\ServerLoadLogs'] = [
	'active' =>                   true,		'order' =>	101,
	'category' =>                 'misc',
	'cacheMinLifetime' =>         NULL,
	'possibleDashboards' =>       [ 'Modules\Home\Dashboard' ],
];

$CFG['dashboardWidgets']['\App\Dashboard\Widget\DiskFreeSpace'] = [
	'active' =>                   true,		'order' =>	102,
	'category' =>                 'misc',
	'cacheMinLifetime' =>         NULL,
	'possibleDashboards' =>       [ 'Modules\Home\Dashboard' ],
];

$CFG['dashboardWidgets']['\App\Dashboard\Widget\Calendar'] = [
	'active' =>                   true,		'order' =>	70,
	'category' =>                 'misc',
	'cacheMinLifetime' =>         60,
	'possibleDashboards' =>       [ 'Modules\Home\Dashboard' ],
];

$CFG['dashboardWidgets']['\App\Dashboard\Widget\MainSections'] = [
	'active' =>                   true,		'order' =>	1,
	'category' =>                 'misc',
	'cacheMinLifetime' =>         30,
	'possibleDashboards' =>       [ 'Modules\Home\Dashboard' ],
];

$CFG['dashboardWidgets']['\App\Dashboard\Widget\KamSalesTargets'] = [
	'active' =>                   true,
	'order' =>					  100,
	'category' =>                 'operational',
	'cacheMinLifetime' =>         3600,
	'possibleDashboards' =>       ['Modules\Home\Dashboard', ],
];

/************ CORPORATES DASHBOARD *********************/
$CFG['dashboardWidgets']['\App\Dashboard\Widget\CorpDetails'] = [
	'active' =>                   true,		'order' =>	10,
	'category' =>                 'misc',
	'cacheMinLifetime' =>         0,
	'possibleDashboards' =>       ['Modules\Partners\Corporates\Dashboard\Dashboard',],
];

$CFG['dashboardWidgets']['\App\Dashboard\Widget\CorpLastServices'] = [
	'active' =>                   true,		'order' =>	12,
	'category' =>                 'operational',
	'cacheMinLifetime' =>         1800,
	'possibleDashboards' =>       ['Modules\Partners\Corporates\Dashboard\Dashboard',],
];

$CFG['dashboardWidgets']['\App\Dashboard\Widget\CorpLastInvoices'] = [
	'active' =>                   true,		'order' =>	13,
	'category' =>                 'operational',
	'cacheMinLifetime' =>         1800,
	'possibleDashboards' =>       ['Modules\Partners\Corporates\Dashboard\Dashboard',],
];

$CFG['dashboardWidgets']['\App\Dashboard\Widget\CorpAgeing'] = [
	'active' =>                   true,		'order' =>	14,
	'category' =>                 'operational',
	'cacheMinLifetime' =>         1800,
	'possibleDashboards' =>       ['Modules\Partners\Corporates\Dashboard\Dashboard',],
];

/************ CUSTOMERS DASHBOARD *********************/

$CFG['dashboardWidgets']['\App\Dashboard\Widget\CustDetails'] = [
	'active'=>                    true,		'order' =>	10,
	'category'=>                  'misc',
	'cacheMinLifetime'=>          3600,
	'possibleDashboards' =>       [ 'Modules\Partners\Customers\Dashboard\Dashboard' ],
];

$CFG['dashboardWidgets']['\App\Dashboard\Widget\CustLastServices'] = [
	'active' =>                   true,		'order' =>	11,
	'category' =>                 'operational',
	'cacheMinLifetime' =>         1800,
	'possibleDashboards' =>       [ 'Modules\Partners\Customers\Dashboard\Dashboard', ],
];

$CFG['dashboardWidgets']['\App\Dashboard\Widget\CustLastInvoices'] = [
	'active' =>                   true,		'order' =>	12,
	'category' =>                 'operational',
	'cacheMinLifetime' =>         1800,
	'possibleDashboards' =>       [ 'Modules\Partners\Customers\Dashboard\Dashboard', ],
];

$CFG['dashboardWidgets']['\App\Dashboard\Widget\CustLastCorporateInvoices'] = [
	'active' =>                   true,		'order' =>	13,
	'category' =>                 'operational',
	'cacheMinLifetime' =>         1800,
	'possibleDashboards' =>       [ 'Modules\Partners\Customers\Dashboard\Dashboard', ],
];

/***************** ORDERS DASHBOARD ******************************/

$CFG['dashboardWidgets']['\App\Dashboard\Widget\OrderControlPanel'] = [
	'active' =>                   true,		'order' =>	9,
	'category' =>                 'misc',
	'cacheMinLifetime' =>         0,
	'possibleDashboards' =>       [ 'Modules\Orders\Dashboard\Dashboard' ],
];

$CFG['dashboardWidgets']['\App\Dashboard\Widget\OrderDetails'] = [
	'active' =>                   true,		'order' =>	10,
	'category' =>                 'misc',
	'cacheMinLifetime' =>         0,
	'possibleDashboards' =>       [ 'Modules\Orders\Dashboard\Dashboard' ],
];

$CFG['dashboardWidgets']['\App\Dashboard\Widget\OrderIncomeDetails'] = [
	'active' =>                   true,		'order' =>	11,
	'category' =>                 'misc',
	'cacheMinLifetime' =>         0,
	'possibleDashboards' =>       [ 'Modules\Orders\Dashboard\Dashboard' ],
];

$CFG['dashboardWidgets']['\App\Dashboard\Widget\OrderAcquisitionDetails'] = [
	'active' =>                   true,		'order' =>	12,
	'category' =>                 'misc',
	'cacheMinLifetime' =>         0,
	'possibleDashboards' =>       [ 'Modules\Orders\Dashboard\Dashboard' ],
];

$CFG['dashboardWidgets']['\App\Dashboard\Widget\OrderProfitDetails'] = [
	'active' =>                   true,		'order' =>	13,
	'category' =>                 'misc',
	'cacheMinLifetime' =>         0,
	'possibleDashboards' =>       [ 'Modules\Orders\Dashboard\Dashboard' ],
];

$CFG['dashboardWidgets']['\App\Dashboard\Widget\OrderServices'] = [
	'active' =>                   true,		'order' =>	14,
	'category' =>                 'misc',
	'cacheMinLifetime' =>         0,
	'possibleDashboards' =>       [ 'Modules\Orders\Dashboard\Dashboard' ],
];

$CFG['dashboardWidgets']['\App\Dashboard\Widget\OrderInvoicesList'] = [
	'active' =>                   true,		'order' =>	15,
	'category' =>                 'misc',
	'cacheMinLifetime' =>         0,
	'possibleDashboards' =>       [ 'Modules\Orders\Dashboard\Dashboard' ],
];

$CFG['dashboardWidgets']['\App\Dashboard\Widget\OrderCashingsList'] = [
	'active' =>                   true,		'order' =>	16,
	'category' =>                 'misc',
	'cacheMinLifetime' =>         0,
	'possibleDashboards' =>       [ 'Modules\Orders\Dashboard\Dashboard' ],
];

$CFG['dashboardWidgets']['\App\Dashboard\Widget\OrderSupplierInvoicesList'] = [
	'active' =>                   true,		'order' =>	17,
	'category' =>                 'misc',
	'cacheMinLifetime' =>         0,
	'possibleDashboards' =>       [ 'Modules\Orders\Dashboard\Dashboard' ],
];
$CFG['dashboardWidgets']['\App\Dashboard\Widget\OrderSupplierPaymentsList'] = [
	'active' =>                   true,		'order' =>	18,
	'category' =>                 'misc',
	'cacheMinLifetime' =>         0,
	'possibleDashboards' =>       [ 'Modules\Orders\Dashboard\Dashboard' ],
];

$CFG['dashboardWidgets']['\App\Dashboard\Widget\OrderBalancesList'] = [
	'active' =>                   true,		'order' =>	19,
	'category' =>                 'misc',
	'cacheMinLifetime' =>         0,
	'possibleDashboards' =>       [ 'Modules\Orders\Dashboard\Dashboard' ],
];


/***************** HOME DASHBOARD ******************************/
$CFG['dashboardWidgets']['\App\Dashboard\Widget\MyNewReports'] = [
	'active' =>                   true,		'order' =>	50,
	'category' =>                 'misc',
	'cacheMinLifetime' =>         30,
	'possibleDashboards' =>       [ 'Modules\Home\Dashboard' ],
];
$CFG['dashboardWidgets']['\App\Dashboard\Widget\MyLastReports'] = [
	'active' =>                   true,		'order' =>	51,
	'category' =>                 'misc',
	'cacheMinLifetime' =>         30,
	'possibleDashboards' =>       [ 'Modules\Home\Dashboard' ],
];
$CFG['dashboardWidgets']['\App\Dashboard\Widget\MyMostlyUsedReports'] = [
	'active' =>                   true,		'order' =>	40,
	'category' =>                 'misc',
	'cacheMinLifetime' =>         7200,
	'possibleDashboards' =>       [ 'Modules\Home\Dashboard' ],
];
$CFG['dashboardWidgets']['\App\Dashboard\Widget\QuickAdd'] = [
	'active' =>                   true,		'order' =>	1,
	'category' =>                 'misc',
	'cacheMinLifetime' =>         30,
	'possibleDashboards' =>       [ 'Modules\Home\Dashboard' ],
];

$CFG['dashboardWidgets']['\App\Dashboard\Widget\QuickReports_SalesOverview'] = [
	'active' =>                   	true,
	'order' =>						10,
	'category' =>                 	'qr',
	'cacheMinLifetime' =>         	null,
	'possibleDashboards' =>       	[ 'Modules\Home\Dashboard' ],
];

$CFG['dashboardWidgets']['\App\Dashboard\Widget\QuickReports_AcquisitionsOverview'] = [
	'active' =>                   	true,
	'order' =>						20,
	'category' =>                 	'qr',
	'cacheMinLifetime' =>         	null,
	'possibleDashboards' =>       	[ 'Modules\Home\Dashboard' ],
];

$CFG['dashboardWidgets']['\App\Dashboard\Widget\QuickReports_AccountsReceivables'] = [
	'active' =>                   	true,
	'order' =>						30,
	'category' =>                 	'qr',
	'cacheMinLifetime' =>         	null,
	'possibleDashboards' =>       	[ 'Modules\Home\Dashboard' ],
];

$CFG['dashboardWidgets']['\App\Dashboard\Widget\QuickReports_AccountsPayables'] = [
	'active' =>                   	true,
	'order' =>						40,
	'category' =>                 	'qr',
	'cacheMinLifetime' =>         	null,
	'possibleDashboards' =>       	[ 'Modules\Home\Dashboard' ],
];

$CFG['dashboardWidgets']['\App\Dashboard\Widget\QuickReports_TopAgentsPerf'] = [
	'active' =>                   	true,
	'order' =>						50,
	'category' =>                 	'qr',
	'cacheMinLifetime' =>         	null,
	'possibleDashboards' =>       	[ 'Modules\Home\Dashboard' ],
];

$CFG['dashboardWidgets']['\App\Dashboard\Widget\QuickReports_TopAgentsInvProfit'] = [
	'active' =>                   	true,
	'order' =>						51,
	'category' =>                 	'qr',
	'cacheMinLifetime' =>         	null,
	'possibleDashboards' =>       	[ 'Modules\Home\Dashboard' ],
];

$CFG['dashboardWidgets']['\App\Dashboard\Widget\QuickReports_BalanceProfit'] = [
	'active' =>                   	true,
	'order' =>						20,
	'category' =>                 	'qr',
	'cacheMinLifetime' =>         	null,
	'possibleDashboards' =>       	[ 'Modules\Home\Dashboard' ],
];

$CFG['dashboardWidgets']['\App\Dashboard\Widget\QuickReports_TopDestinationsTrans'] = [
	'active' =>                   	true,
	'order' =>						100,
	'category' =>                 	'qr',
	'cacheMinLifetime' =>         	null,
	'possibleDashboards' =>       	['Modules\Home\Dashboard'],
];

$CFG['dashboardWidgets']['\App\Dashboard\Widget\QuickReports_TopDestinationsSales'] = [
	'active' =>                   	true,
	'order' =>						110,
	'category' =>                 	'qr',
	'cacheMinLifetime' =>         	null,
	'possibleDashboards' =>       	['Modules\Home\Dashboard'],
];

$CFG['dashboardWidgets']['\App\Dashboard\Widget\QuickReports_TopCorporatesSales'] = [
	'active' =>                   	true,
	'order' =>						120,
	'category' =>                 	'qr',
	'cacheMinLifetime' =>         	null,
	'possibleDashboards' =>       	['Modules\Home\Dashboard'],
];

$CFG['dashboardWidgets']['\App\Dashboard\Widget\QuickReports_TopSuppliers'] = [
	'active' =>                   	true,
	'order' =>						130,
	'category' =>                 	'qr',
	'cacheMinLifetime' =>         	null,
	'possibleDashboards' =>       	['Modules\Home\Dashboard'],
];

$CFG['dashboardWidgets']['\App\Dashboard\Widget\Charts_MonthlySalesComparison'] = [
	'active' =>                   	true,
	'order' =>						50,
	'category' =>                 	'qr',
	'cacheMinLifetime' =>         	null,
	'possibleDashboards' =>       	[ 'Modules\Home\Dashboard' ],
];

$CFG['dashboardWidgets']['\App\Dashboard\Widget\Charts_MonthlyExpensesComparison'] = [
	'active' =>                   	true,
	'order' =>						50,
	'category' =>                 	'qr',
	'cacheMinLifetime' =>         	null,
	'possibleDashboards' =>       	[ 'Modules\Home\Dashboard' ],
];

$CFG['dashboardWidgets']['\App\Dashboard\Widget\Charts_ServiceTypeComparison'] = [
	'active' =>                   	true,
	'order' =>						50,
	'category' =>                 	'qr',
	'cacheMinLifetime' =>         	null,
	'possibleDashboards' =>       	[ 'Modules\Home\Dashboard' ],
];

$CFG['dashboardWidgets']['\App\Dashboard\Widget\Charts_MonthlyServicesSales'] = [
	'active' =>                   	true,
	'order' =>						50,
	'category' =>                 	'qr',
	'cacheMinLifetime' =>         	null,
	'possibleDashboards' =>       	[ 'Modules\Home\Dashboard' ],
];

$CFG['dashboardWidgets']['\App\Dashboard\Widget\Charts_IncomeProfitComparison'] = [
	'active' =>                   	true,
	'order' =>						50,
	'category' =>                 	'qr',
	'cacheMinLifetime' =>         	null,
	'possibleDashboards' =>       	[ 'Modules\Home\Dashboard' ],
];

$CFG['dashboardWidgets']['\App\Dashboard\Widget\Charts_EstimatedDailyBalance'] = [
	'active' =>                   	true,
	'order' =>						55,
	'category' =>                 	'qr',
	'cacheMinLifetime' =>         	null,
	'possibleDashboards' =>       	[ 'Modules\Home\Dashboard' ],
];

$CFG['dashboardWidgets']['\App\Dashboard\Widget\Charts_MonthlyAddedServices'] = [
	'active' =>                   	true,
	'order' =>						60,
	'category' =>                 	'qr',
	'cacheMinLifetime' =>         	null,
	'possibleDashboards' =>       	[ 'Modules\Home\Dashboard' ],
];

$CFG['dashboardWidgets']['\App\Dashboard\Widget\Charts_CancelledServicesCountDaily'] = [
	'active' =>                   	true,
	'order' =>						70,
	'category' =>                 	'qr',
	'cacheMinLifetime' =>         	null,
	'possibleDashboards' =>       	[ 'Modules\Home\Dashboard' ],
];

$CFG['dashboardWidgets']['\App\Dashboard\Widget\Charts_CancelledServicesCountMonthly'] = [
	'active' =>                   	true,
	'order' =>						80,
	'category' =>                 	'qr',
	'cacheMinLifetime' =>         	null,
	'possibleDashboards' =>       	[ 'Modules\Home\Dashboard' ],
];

$CFG['dashboardWidgets']['\App\Dashboard\Widget\Charts_FutureServicesStatsCount'] = [
	'active' =>                   	true,
	'order' =>						90,
	'category' =>                 	'qr',
	'cacheMinLifetime' =>         	null,
	'possibleDashboards' =>       	[ 'Modules\Home\Dashboard' ],
];

$CFG['dashboardWidgets']['\App\Dashboard\Widget\QuickReports_TopAirlinesTrans'] = [
	'active' =>                   	true,
	'order' =>						130,
	'category' =>                 	'qr',
	'cacheMinLifetime' =>         	null,
	'possibleDashboards' =>       	[ 'Modules\Home\Dashboard' ],
];

$CFG['dashboardWidgets']['\App\Dashboard\Widget\QuickReports_TopHotelsSales'] = [
	'active' =>                   	true,
	'order' =>						140,
	'category' =>                 	'qr',
	'cacheMinLifetime' =>         	null,
	'possibleDashboards' =>       	[ 'Modules\Home\Dashboard' ],
];


///////////////////////////////////////////////////////////////////////////////////////////////////
// CONTAINERS /////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////

$CFG['dashboardContainers']['\Engine\Dashboard\Containers\Table1Col'] = [
	'active' =>                  	true,
	'order' =>						10,
	'category' =>                 	'misc',
	'possibleDashboards' =>       	[ 'Modules\Home\Dashboard', 'Modules\Partners\Customers\Dashboard\Dashboard', 'Modules\Partners\Corporates\Dashboard\Dashboard', 'Modules\Orders\Dashboard\Dashboard' ],
];

$CFG['dashboardContainers']['\Engine\Dashboard\Containers\Table2Col'] = [
	'active' =>                   	true,
	'order' =>						11,
	'category' =>                 	'misc',
	'possibleDashboards' =>      	 [ 'Modules\Home\Dashboard', 'Modules\Partners\Customers\Dashboard\Dashboard', 'Modules\Partners\Corporates\Dashboard\Dashboard', 'Modules\Orders\Dashboard\Dashboard' ],
];

$CFG['dashboardContainers']['\Engine\Dashboard\Containers\Table3Col'] = [
	'active' =>                   	true,
	'order' =>						12,
	'category' =>                 	'misc',
	'possibleDashboards' =>       	[ 'Modules\Home\Dashboard', 'Modules\Partners\Customers\Dashboard\Dashboard', 'Modules\Partners\Corporates\Dashboard\Dashboard', 'Modules\Orders\Dashboard\Dashboard' ],
];


///////////////////////////////////////////////////////////////////////////////////////////////////
// OTHER DASHBOARD CONFIGS ////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////

$CFG['dashboardCategories']['order'] = [
	'qr' =>				[ 'order'=>1 ],
	'misc' => 			[ 'order'=>2 ],
	'orders' =>			[ 'order'=>3 ],
	'services' =>		[ 'order'=>4 ],
	'operational' => 	[ 'order'=>5 ],
	'currency' => 		[ 'order'=>7 ],
];



// THE AVAILABLE CACHE LIFETIME DURATIONS (in seconds) ////////////////////////////////////////////
$CFG['dashboardWidgetsCacheLife'] = [0, 30, 60, 120, 180, 300, 600, 900, 1800, 3600, 7200, 10800, 14400, 18000, 21600, 28800, 36000, 43200, 86400, 172800, 259200, 345600, 604800];

