$currentSize=DB::select("SELECT SUM(size) AS `size` FROM images LEFT JOIN galleries ON images.gallery = galleries.id WHERE galleries.tenant = ".session("current_tenant_id").";")[0]->size;
$currentTraffic=DB::select("SELECT SUM(size) AS size FROM access WHERE tenant = ".session("current_tenant_id")." AND created_at >= NOW() - INTERVAL 1 DAY;")[0]->size;
$monthlyTraffic=DB::select("SELECT SUM(traffic) AS `traffic` FROM traffic WHERE `year` = 2021 AND `month` = 1 and tenant = ".session("current_tenant_id").";")[0]->traffic;