{"__meta":{"id":"01M45JVQT9QE6G3TQ2KZZM5T3M","datetime":"2026-10-05 11:28:38","utime":1791188918.089582,"method":"GET","uri":"\/api\/v2\/companyuser\/dashboard\/expense-breakdown?type=this_quarter&from=2026-10-01&to=2026-12-31&basis=cash","ip":"197.133.147.83"},"php":{"version":"8.3.35","interface":"fpm-fcgi"},"messages":{"count":0,"messages":[]},"time":{"count":5,"start":1791188917.883003,"end":1791188918.089595,"duration":0.20659208297729492,"duration_str":"207ms","measures":[{"label":"Booting","start":1791188917.883003,"relative_start":0,"end":1791188918.02779,"relative_end":1791188918.02779,"duration":0.14478707313537598,"duration_str":"145ms","memory":0,"memory_str":"0B","params":[],"collector":"time","group":null},{"label":"Application","start":1791188918.027801,"relative_start":0.14479804039001465,"end":1791188918.089597,"relative_end":1.9073486328125e-6,"duration":0.061795949935913086,"duration_str":"61.8ms","memory":0,"memory_str":"0B","params":[],"collector":"time","group":null},{"label":"Routing","start":1791188918.028922,"relative_start":0.1459190845489502,"end":1791188918.032862,"relative_end":1791188918.032862,"duration":0.00393986701965332,"duration_str":"3.94ms","memory":0,"memory_str":"0B","params":[],"collector":null,"group":null},{"label":"Preparing Response","start":1791188918.08906,"relative_start":0.20605707168579102,"end":1791188918.08913,"relative_end":1791188918.08913,"duration":6.985664367675781e-5,"duration_str":"70\u03bcs","memory":0,"memory_str":"0B","params":[],"collector":null,"group":null},{"label":"Preparing Response","start":1791188918.089432,"relative_start":0.20642900466918945,"end":1791188918.089447,"relative_end":1791188918.089447,"duration":1.5020370483398438e-5,"duration_str":"15\u03bcs","memory":0,"memory_str":"0B","params":[],"collector":null,"group":null}]},"memory":{"peak_usage":6471648,"peak_usage_str":"6MB"},"exceptions":{"count":0,"exceptions":[]},"views":{"count":0,"nb_templates":0,"templates":[]},"route":{"uri":"GET api\/v2\/companyuser\/dashboard\/expense-breakdown","middleware":"Laravel\\Nightwatch\\Hooks\\GlobalMiddleware, api, api.v2.auth, throttle:180,1, Laravel\\Nightwatch\\Hooks\\RouteMiddleware","domain":"{subdomain}.pat.vomdev.com","excluded_middleware":["throttle:60,1"],"uses":"Modules\\CompanyUser\\Http\\Controllers\\Dashboard\\DashboardExpenseBreakdownController@__invoke","controller":"Modules\\CompanyUser\\Http\\Controllers\\Dashboard\\DashboardExpenseBreakdownController","as":"company.dashboard-v2.expense-breakdown","namespace":"Modules\\CompanyUser\\Http\\Controllers","prefix":"api\/v2\/companyuser\/dashboard"},"queries":{"count":10,"nb_statements":9,"nb_visible_statements":10,"nb_excluded_statements":0,"nb_failed_statements":0,"accumulated_duration":0.03724,"accumulated_duration_str":"37.24ms","memory_usage":0,"memory_usage_str":null,"statements":[{"sql":"select * from `cold_archived_accounts` where `status` = 'archived' and (LOWER(subdomain) = 'timeentertainment' or LOWER(subdomain) = 'timeentertainment.pat.vomdev.com') order by `archived_at` desc limit 1","type":"query","params":[],"bindings":["archived","timeentertainment","timeentertainment.pat.vomdev.com"],"hints":["Use <code>SELECT *<\/code> only if you need all columns from table"],"show_copy":false,"backtrace":[{"index":16,"namespace":null,"name":"app\/Services\/ColdArchive\/ColdArchivedAccountLookup.php","file":"\/var\/www\/html\/vom\/app\/Services\/ColdArchive\/ColdArchivedAccountLookup.php","line":35},{"index":17,"namespace":null,"name":"app\/Http\/Middleware\/InterceptColdArchivedHost.php","file":"\/var\/www\/html\/vom\/app\/Http\/Middleware\/InterceptColdArchivedHost.php","line":37},{"index":18,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","file":"\/var\/www\/html\/vom\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":183},{"index":19,"namespace":null,"name":"vendor\/laravel\/nightwatch\/src\/Hooks\/GlobalMiddleware.php","file":"\/var\/www\/html\/vom\/vendor\/laravel\/nightwatch\/src\/Hooks\/GlobalMiddleware.php","line":36},{"index":20,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","file":"\/var\/www\/html\/vom\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":183}],"start":1791188918.0346968,"duration":0.00058,"duration_str":"580\u03bcs","slow":false,"memory":0,"memory_str":null,"filename":"ColdArchivedAccountLookup.php:35","source":{"index":16,"namespace":null,"name":"app\/Services\/ColdArchive\/ColdArchivedAccountLookup.php","file":"\/var\/www\/html\/vom\/app\/Services\/ColdArchive\/ColdArchivedAccountLookup.php","line":35},"xdebug_link":{"url":"phpstorm:\/\/open?file=%2Fvar%2Fwww%2Fhtml%2Fvom%2Fapp%2FServices%2FColdArchive%2FColdArchivedAccountLookup.php&line=35","ajax":false,"filename":"ColdArchivedAccountLookup.php","line":"35"},"connection":"vom","explain":null},{"sql":"select * from `websites` where `websites`.`id` = 2319 and `websites`.`deleted_at` is null limit 1","type":"query","params":[],"bindings":[2319],"hints":["Use <code>SELECT *<\/code> only if you need all columns from table","<code>LIMIT<\/code> without <code>ORDER BY<\/code> causes non-deterministic results, depending on the query execution plan"],"show_copy":false,"backtrace":[{"index":20,"namespace":null,"name":"Modules\/Tenant\/Services\/RetrievingTenantBySubdomainService.php","file":"\/var\/www\/html\/vom\/Modules\/Tenant\/Services\/RetrievingTenantBySubdomainService.php","line":64},{"index":21,"namespace":null,"name":"Modules\/Tenant\/Services\/RetrievingTenantBySubdomainService.php","file":"\/var\/www\/html\/vom\/Modules\/Tenant\/Services\/RetrievingTenantBySubdomainService.php","line":40},{"index":22,"namespace":null,"name":"app\/Http\/Middleware\/TenantFeaturesAndRestrictions.php","file":"\/var\/www\/html\/vom\/app\/Http\/Middleware\/TenantFeaturesAndRestrictions.php","line":67},{"index":23,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","file":"\/var\/www\/html\/vom\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":183},{"index":24,"namespace":null,"name":"app\/Http\/Middleware\/InterceptColdArchivedHost.php","file":"\/var\/www\/html\/vom\/app\/Http\/Middleware\/InterceptColdArchivedHost.php","line":40}],"start":1791188918.0368512,"duration":0.0003,"duration_str":"300\u03bcs","slow":false,"memory":0,"memory_str":null,"filename":"RetrievingTenantBySubdomainService.php:64","source":{"index":20,"namespace":null,"name":"Modules\/Tenant\/Services\/RetrievingTenantBySubdomainService.php","file":"\/var\/www\/html\/vom\/Modules\/Tenant\/Services\/RetrievingTenantBySubdomainService.php","line":64},"xdebug_link":{"url":"phpstorm:\/\/open?file=%2Fvar%2Fwww%2Fhtml%2Fvom%2FModules%2FTenant%2FServices%2FRetrievingTenantBySubdomainService.php&line=64","ajax":false,"filename":"RetrievingTenantBySubdomainService.php","line":"64"},"connection":"vom","explain":null},{"sql":"select * from `company_info` where `company_info`.`website_id` in (2319) and `company_info`.`deleted_at` is null","type":"query","params":[],"bindings":[],"hints":["Use <code>SELECT *<\/code> only if you need all columns from table"],"show_copy":false,"backtrace":[{"index":25,"namespace":null,"name":"Modules\/Tenant\/Services\/RetrievingTenantBySubdomainService.php","file":"\/var\/www\/html\/vom\/Modules\/Tenant\/Services\/RetrievingTenantBySubdomainService.php","line":64},{"index":26,"namespace":null,"name":"Modules\/Tenant\/Services\/RetrievingTenantBySubdomainService.php","file":"\/var\/www\/html\/vom\/Modules\/Tenant\/Services\/RetrievingTenantBySubdomainService.php","line":40},{"index":27,"namespace":null,"name":"app\/Http\/Middleware\/TenantFeaturesAndRestrictions.php","file":"\/var\/www\/html\/vom\/app\/Http\/Middleware\/TenantFeaturesAndRestrictions.php","line":67},{"index":28,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","file":"\/var\/www\/html\/vom\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":183},{"index":29,"namespace":null,"name":"app\/Http\/Middleware\/InterceptColdArchivedHost.php","file":"\/var\/www\/html\/vom\/app\/Http\/Middleware\/InterceptColdArchivedHost.php","line":40}],"start":1791188918.038296,"duration":0.00047,"duration_str":"470\u03bcs","slow":false,"memory":0,"memory_str":null,"filename":"RetrievingTenantBySubdomainService.php:64","source":{"index":25,"namespace":null,"name":"Modules\/Tenant\/Services\/RetrievingTenantBySubdomainService.php","file":"\/var\/www\/html\/vom\/Modules\/Tenant\/Services\/RetrievingTenantBySubdomainService.php","line":64},"xdebug_link":{"url":"phpstorm:\/\/open?file=%2Fvar%2Fwww%2Fhtml%2Fvom%2FModules%2FTenant%2FServices%2FRetrievingTenantBySubdomainService.php&line=64","ajax":false,"filename":"RetrievingTenantBySubdomainService.php","line":"64"},"connection":"vom","explain":null},{"sql":"select * from `active_subscriptions` where `company_id` = 2319 and `active_subscriptions`.`deleted_at` is null order by `created_at` desc limit 1","type":"query","params":[],"bindings":[2319],"hints":["Use <code>SELECT *<\/code> only if you need all columns from table"],"show_copy":false,"backtrace":[{"index":16,"namespace":null,"name":"app\/Http\/Middleware\/TenantFeaturesAndRestrictions.php","file":"\/var\/www\/html\/vom\/app\/Http\/Middleware\/TenantFeaturesAndRestrictions.php","line":108},{"index":17,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","file":"\/var\/www\/html\/vom\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":183},{"index":18,"namespace":null,"name":"app\/Http\/Middleware\/InterceptColdArchivedHost.php","file":"\/var\/www\/html\/vom\/app\/Http\/Middleware\/InterceptColdArchivedHost.php","line":40},{"index":19,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","file":"\/var\/www\/html\/vom\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":183},{"index":20,"namespace":null,"name":"vendor\/laravel\/nightwatch\/src\/Hooks\/GlobalMiddleware.php","file":"\/var\/www\/html\/vom\/vendor\/laravel\/nightwatch\/src\/Hooks\/GlobalMiddleware.php","line":36}],"start":1791188918.040326,"duration":0.00047,"duration_str":"470\u03bcs","slow":false,"memory":0,"memory_str":null,"filename":"TenantFeaturesAndRestrictions.php:108","source":{"index":16,"namespace":null,"name":"app\/Http\/Middleware\/TenantFeaturesAndRestrictions.php","file":"\/var\/www\/html\/vom\/app\/Http\/Middleware\/TenantFeaturesAndRestrictions.php","line":108},"xdebug_link":{"url":"phpstorm:\/\/open?file=%2Fvar%2Fwww%2Fhtml%2Fvom%2Fapp%2FHttp%2FMiddleware%2FTenantFeaturesAndRestrictions.php&line=108","ajax":false,"filename":"TenantFeaturesAndRestrictions.php","line":"108"},"connection":"vom","explain":null},{"sql":"Connection Established","type":"transaction","params":[],"bindings":[],"hints":null,"show_copy":false,"backtrace":[{"index":15,"namespace":null,"name":"vendor\/laravel\/sanctum\/src\/PersonalAccessToken.php","file":"\/var\/www\/html\/vom\/vendor\/laravel\/sanctum\/src\/PersonalAccessToken.php","line":66},{"index":16,"namespace":null,"name":"vendor\/laravel\/sanctum\/src\/Guard.php","file":"\/var\/www\/html\/vom\/vendor\/laravel\/sanctum\/src\/Guard.php","line":67},{"index":19,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Auth\/GuardHelpers.php","file":"\/var\/www\/html\/vom\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/GuardHelpers.php","line":56},{"index":20,"namespace":"middleware","name":"api.v2.auth","file":"\/var\/www\/html\/vom\/app\/Http\/Middleware\/Api\/isAuthenticated.php","line":21},{"index":21,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","file":"\/var\/www\/html\/vom\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":183}],"start":1791188918.043994,"duration":0,"duration_str":"","slow":false,"memory":0,"memory_str":null,"filename":"PersonalAccessToken.php:66","source":{"index":15,"namespace":null,"name":"vendor\/laravel\/sanctum\/src\/PersonalAccessToken.php","file":"\/var\/www\/html\/vom\/vendor\/laravel\/sanctum\/src\/PersonalAccessToken.php","line":66},"xdebug_link":{"url":"phpstorm:\/\/open?file=%2Fvar%2Fwww%2Fhtml%2Fvom%2Fvendor%2Flaravel%2Fsanctum%2Fsrc%2FPersonalAccessToken.php&line=66","ajax":false,"filename":"PersonalAccessToken.php","line":"66"},"connection":"VOM_tenant_timeentertainment","explain":null},{"sql":"select * from `personal_access_tokens` where `personal_access_tokens`.`id` = '15189' limit 1","type":"query","params":[],"bindings":["15189"],"hints":["Use <code>SELECT *<\/code> only if you need all columns from table","<code>LIMIT<\/code> without <code>ORDER BY<\/code> causes non-deterministic results, depending on the query execution plan"],"show_copy":false,"backtrace":[{"index":20,"namespace":null,"name":"vendor\/laravel\/sanctum\/src\/PersonalAccessToken.php","file":"\/var\/www\/html\/vom\/vendor\/laravel\/sanctum\/src\/PersonalAccessToken.php","line":66},{"index":21,"namespace":null,"name":"vendor\/laravel\/sanctum\/src\/Guard.php","file":"\/var\/www\/html\/vom\/vendor\/laravel\/sanctum\/src\/Guard.php","line":67},{"index":24,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Auth\/GuardHelpers.php","file":"\/var\/www\/html\/vom\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/GuardHelpers.php","line":56},{"index":25,"namespace":"middleware","name":"api.v2.auth","file":"\/var\/www\/html\/vom\/app\/Http\/Middleware\/Api\/isAuthenticated.php","line":21},{"index":26,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","file":"\/var\/www\/html\/vom\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":183}],"start":1791188918.044443,"duration":0.0014199999999999998,"duration_str":"1.42ms","slow":false,"memory":0,"memory_str":null,"filename":"PersonalAccessToken.php:66","source":{"index":20,"namespace":null,"name":"vendor\/laravel\/sanctum\/src\/PersonalAccessToken.php","file":"\/var\/www\/html\/vom\/vendor\/laravel\/sanctum\/src\/PersonalAccessToken.php","line":66},"xdebug_link":{"url":"phpstorm:\/\/open?file=%2Fvar%2Fwww%2Fhtml%2Fvom%2Fvendor%2Flaravel%2Fsanctum%2Fsrc%2FPersonalAccessToken.php&line=66","ajax":false,"filename":"PersonalAccessToken.php","line":"66"},"connection":"VOM_tenant_timeentertainment","explain":null},{"sql":"select * from `users` where `users`.`id` = 2 and `users`.`deleted_at` is null limit 1","type":"query","params":[],"bindings":[2],"hints":["Use <code>SELECT *<\/code> only if you need all columns from table","<code>LIMIT<\/code> without <code>ORDER BY<\/code> causes non-deterministic results, depending on the query execution plan"],"show_copy":false,"backtrace":[{"index":21,"namespace":null,"name":"vendor\/laravel\/sanctum\/src\/Guard.php","file":"\/var\/www\/html\/vom\/vendor\/laravel\/sanctum\/src\/Guard.php","line":161},{"index":22,"namespace":null,"name":"vendor\/laravel\/sanctum\/src\/Guard.php","file":"\/var\/www\/html\/vom\/vendor\/laravel\/sanctum\/src\/Guard.php","line":69},{"index":25,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Auth\/GuardHelpers.php","file":"\/var\/www\/html\/vom\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/GuardHelpers.php","line":56},{"index":26,"namespace":"middleware","name":"api.v2.auth","file":"\/var\/www\/html\/vom\/app\/Http\/Middleware\/Api\/isAuthenticated.php","line":21},{"index":27,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","file":"\/var\/www\/html\/vom\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":183}],"start":1791188918.047661,"duration":0.00038,"duration_str":"380\u03bcs","slow":false,"memory":0,"memory_str":null,"filename":"Guard.php:161","source":{"index":21,"namespace":null,"name":"vendor\/laravel\/sanctum\/src\/Guard.php","file":"\/var\/www\/html\/vom\/vendor\/laravel\/sanctum\/src\/Guard.php","line":161},"xdebug_link":{"url":"phpstorm:\/\/open?file=%2Fvar%2Fwww%2Fhtml%2Fvom%2Fvendor%2Flaravel%2Fsanctum%2Fsrc%2FGuard.php&line=161","ajax":false,"filename":"Guard.php","line":"161"},"connection":"VOM_tenant_timeentertainment","explain":null},{"sql":"update `personal_access_tokens` set `last_used_at` = '2026-10-05 11:28:38', `personal_access_tokens`.`updated_at` = '2026-10-05 11:28:38' where `id` = 15189","type":"query","params":[],"bindings":["2026-10-05 11:28:38","2026-10-05 11:28:38",15189],"hints":[],"show_copy":false,"backtrace":[{"index":14,"namespace":null,"name":"vendor\/laravel\/sanctum\/src\/Guard.php","file":"\/var\/www\/html\/vom\/vendor\/laravel\/sanctum\/src\/Guard.php","line":83},{"index":19,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Auth\/GuardHelpers.php","file":"\/var\/www\/html\/vom\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/GuardHelpers.php","line":56},{"index":20,"namespace":"middleware","name":"api.v2.auth","file":"\/var\/www\/html\/vom\/app\/Http\/Middleware\/Api\/isAuthenticated.php","line":21},{"index":21,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","file":"\/var\/www\/html\/vom\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":183},{"index":22,"namespace":"middleware","name":"localeSessionRedirect","file":"\/var\/www\/html\/vom\/app\/Http\/Middleware\/Locale.php","line":25}],"start":1791188918.049509,"duration":0.00035999999999999997,"duration_str":"360\u03bcs","slow":false,"memory":0,"memory_str":null,"filename":"Guard.php:83","source":{"index":14,"namespace":null,"name":"vendor\/laravel\/sanctum\/src\/Guard.php","file":"\/var\/www\/html\/vom\/vendor\/laravel\/sanctum\/src\/Guard.php","line":83},"xdebug_link":{"url":"phpstorm:\/\/open?file=%2Fvar%2Fwww%2Fhtml%2Fvom%2Fvendor%2Flaravel%2Fsanctum%2Fsrc%2FGuard.php&line=83","ajax":false,"filename":"Guard.php","line":"83"},"connection":"VOM_tenant_timeentertainment","explain":null},{"sql":"select * from `fiscal_year` where `fiscal_year`.`id` in (0, 0, 0, 0, 0) and `fiscal_year`.`deleted_at` is null","type":"query","params":[],"bindings":[],"hints":["Use <code>SELECT *<\/code> only if you need all columns from table"],"show_copy":false,"backtrace":[{"index":19,"namespace":null,"name":"vendor\/flobbos\/laravel-crudable\/src\/Crudable\/Crudable.php","file":"\/var\/www\/html\/vom\/vendor\/flobbos\/laravel-crudable\/src\/Crudable\/Crudable.php","line":64},{"index":20,"namespace":null,"name":"vendor\/flobbos\/laravel-crudable\/src\/Crudable\/Crudable.php","file":"\/var\/www\/html\/vom\/vendor\/flobbos\/laravel-crudable\/src\/Crudable\/Crudable.php","line":27},{"index":21,"namespace":null,"name":"Modules\/CompanyUser\/Services\/Dashboard\/Period\/DashboardFiscalYearCalendar.php","file":"\/var\/www\/html\/vom\/Modules\/CompanyUser\/Services\/Dashboard\/Period\/DashboardFiscalYearCalendar.php","line":92},{"index":22,"namespace":null,"name":"Modules\/CompanyUser\/Services\/Dashboard\/Period\/DashboardFiscalYearCalendar.php","file":"\/var\/www\/html\/vom\/Modules\/CompanyUser\/Services\/Dashboard\/Period\/DashboardFiscalYearCalendar.php","line":83},{"index":23,"namespace":null,"name":"Modules\/CompanyUser\/Services\/Dashboard\/Period\/ResolvingDashboardPeriodService.php","file":"\/var\/www\/html\/vom\/Modules\/CompanyUser\/Services\/Dashboard\/Period\/ResolvingDashboardPeriodService.php","line":115}],"start":1791188918.0537949,"duration":0.00038,"duration_str":"380\u03bcs","slow":false,"memory":0,"memory_str":null,"filename":"Crudable.php:64","source":{"index":19,"namespace":null,"name":"vendor\/flobbos\/laravel-crudable\/src\/Crudable\/Crudable.php","file":"\/var\/www\/html\/vom\/vendor\/flobbos\/laravel-crudable\/src\/Crudable\/Crudable.php","line":64},"xdebug_link":{"url":"phpstorm:\/\/open?file=%2Fvar%2Fwww%2Fhtml%2Fvom%2Fvendor%2Fflobbos%2Flaravel-crudable%2Fsrc%2FCrudable%2FCrudable.php&line=64","ajax":false,"filename":"Crudable.php","line":"64"},"connection":"VOM_tenant_timeentertainment","explain":null},{"sql":"select COALESCE(SUM(CASE WHEN journal_records.transaction_type = 'credit' THEN journal_records.value ELSE 0 END), 0) AS credit_total,COALESCE(SUM(CASE WHEN journal_records.transaction_type = 'debit' THEN journal_records.value ELSE 0 END), 0) AS debit_total from `journal_records` inner join `accounts` on `accounts`.`id` = `journal_records`.`account_id` where `journal_records`.`deleted_at` is null and `accounts`.`subcategory_id` in (11, 12, 10) and `journal_records`.`journal_date` between '2026-10-01' and '2026-12-31' and `journal_records`.`journal_entry_id` in (select `cash_lines`.`journal_entry_id` from `journal_records` as `cash_lines` inner join `accounts` as `cash_accounts` on `cash_accounts`.`id` = `cash_lines`.`account_id` where `cash_lines`.`deleted_at` is null and `cash_accounts`.`subcategory_id` = 1) limit 1","type":"query","params":[],"bindings":[11,12,10,"2026-10-01","2026-12-31",1],"hints":["<code>LIMIT<\/code> without <code>ORDER BY<\/code> causes non-deterministic results, depending on the query execution plan"],"show_copy":false,"backtrace":[{"index":14,"namespace":null,"name":"Modules\/CompanyUser\/Services\/Dashboard\/Ledger\/LedgerBalanceService.php","file":"\/var\/www\/html\/vom\/Modules\/CompanyUser\/Services\/Dashboard\/Ledger\/LedgerBalanceService.php","line":403},{"index":15,"namespace":null,"name":"Modules\/CompanyUser\/Services\/Dashboard\/Ledger\/LedgerBalanceService.php","file":"\/var\/www\/html\/vom\/Modules\/CompanyUser\/Services\/Dashboard\/Ledger\/LedgerBalanceService.php","line":141},{"index":16,"namespace":null,"name":"Modules\/CompanyUser\/Services\/Dashboard\/CashBasis\/CashBasisExpensesService.php","file":"\/var\/www\/html\/vom\/Modules\/CompanyUser\/Services\/Dashboard\/CashBasis\/CashBasisExpensesService.php","line":45},{"index":17,"namespace":null,"name":"Modules\/CompanyUser\/Services\/Dashboard\/Expenses\/DashboardExpenseBreakdownService.php","file":"\/var\/www\/html\/vom\/Modules\/CompanyUser\/Services\/Dashboard\/Expenses\/DashboardExpenseBreakdownService.php","line":50},{"index":18,"namespace":null,"name":"Modules\/CompanyUser\/Http\/Controllers\/Dashboard\/DashboardExpenseBreakdownController.php","file":"\/var\/www\/html\/vom\/Modules\/CompanyUser\/Http\/Controllers\/Dashboard\/DashboardExpenseBreakdownController.php","line":44}],"start":1791188918.055615,"duration":0.03288,"duration_str":"32.88ms","slow":false,"memory":0,"memory_str":null,"filename":"LedgerBalanceService.php:403","source":{"index":14,"namespace":null,"name":"Modules\/CompanyUser\/Services\/Dashboard\/Ledger\/LedgerBalanceService.php","file":"\/var\/www\/html\/vom\/Modules\/CompanyUser\/Services\/Dashboard\/Ledger\/LedgerBalanceService.php","line":403},"xdebug_link":{"url":"phpstorm:\/\/open?file=%2Fvar%2Fwww%2Fhtml%2Fvom%2FModules%2FCompanyUser%2FServices%2FDashboard%2FLedger%2FLedgerBalanceService.php&line=403","ajax":false,"filename":"LedgerBalanceService.php","line":"403"},"connection":"VOM_tenant_timeentertainment","explain":null}]},"livewire":{"data":[],"count":0},"symfonymailer_mails":{"count":0,"mails":[]},"gate":{"count":0,"messages":[]},"session":[],"request":{"data":{"status":"200 OK","full_url":"https:\/\/timeentertainment.pat.vomdev.com\/api\/v2\/companyuser\/dashboard\/expense-breakdown?basis=cash&f...","action_name":"company.dashboard-v2.expense-breakdown","controller_action":"Modules\\CompanyUser\\Http\\Controllers\\Dashboard\\DashboardExpenseBreakdownController","uri":"GET api\/v2\/companyuser\/dashboard\/expense-breakdown","domain":"{subdomain}.pat.vomdev.com","excluded_middleware":["throttle:60,1"],"controller":"Modules\\CompanyUser\\Http\\Controllers\\Dashboard\\DashboardExpenseBreakdownController","namespace":"Modules\\CompanyUser\\Http\\Controllers","prefix":"api\/v2\/companyuser\/dashboard","middleware":"Laravel\\Nightwatch\\Hooks\\GlobalMiddleware, api, api.v2.auth, throttle:180,1, Laravel\\Nightwatch\\Hooks\\RouteMiddleware","duration":"207ms","peak_memory":"10MB","response":"application\/json","request_format":"html","request_query":"<pre class=sf-dump id=sf-dump-1455412965 data-indent-pad=\"  \"><span class=sf-dump-note>array:4<\/span> [<samp data-depth=1 class=sf-dump-expanded>\n  \"<span class=sf-dump-key>type<\/span>\" => \"<span class=sf-dump-str title=\"12 characters\">this_quarter<\/span>\"\n  \"<span class=sf-dump-key>from<\/span>\" => \"<span class=sf-dump-str title=\"10 characters\">2026-10-01<\/span>\"\n  \"<span class=sf-dump-key>to<\/span>\" => \"<span class=sf-dump-str title=\"10 characters\">2026-12-31<\/span>\"\n  \"<span class=sf-dump-key>basis<\/span>\" => \"<span class=sf-dump-str title=\"4 characters\">cash<\/span>\"\n<\/samp>]\n<\/pre><script>Sfdump(\"sf-dump-1455412965\", {\"maxDepth\":0})<\/script>\n","request_request":"<pre class=sf-dump id=sf-dump-28650801 data-indent-pad=\"  \">[]\n<\/pre><script>Sfdump(\"sf-dump-28650801\", {\"maxDepth\":0})<\/script>\n","request_headers":"<pre class=sf-dump id=sf-dump-822512582 data-indent-pad=\"  \"><span class=sf-dump-note>array:16<\/span> [<samp data-depth=1 class=sf-dump-expanded>\n  \"<span class=sf-dump-key>cookie<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp data-depth=2 class=sf-dump-compact>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"771 characters\">token=15140|cpkpP5DZ0RavHCGF9oCUuHPafUm689EZIENaSTC701998788; XSRF-TOKEN=eyJpdiI6IkErcU5xSkFtWU9pcWp0Y1FGcVMxdlE9PSIsInZhbHVlIjoiL0RUSUFJY3lCVTlPRjhNQnFsMWh4MDk0c0l3Vkc5L3lML2ZOa05vOVhXaEVFcDBSbi85c202RnJkdXFCb2ZFSmJzV0ZQWm9KVnRsWW9oSEtZWjVzbG5ycWhRZ2c5eE1ucldEWmxCSVZJNzNGdld5Y0ZMQkF2QTMvcEUvOGJjWlIiLCJtYWMiOiI4NzNlNThiZTdiNDhhOTMxZmE3Mjg0YzIxYzY5MDhhNWQ2MDQyNDNkODA1YmVkYWMzNGM0MDA2ZmRmNzE5MzdlIiwidGFnIjoiIn0%3D; vom_session=eyJpdiI6IldwSFdMcGNrLzB2ZC8veUhIZlQ3RXc9PSIsInZhbHVlIjoiYmlrdEMvNWJoMHQxSmg2VHpuRXBrT3phSHFmVERUak5qUTRJYlQ3ajRFeE15ejJlUytLajBQdWt1cVpZUC9scS95TVYzbDhtMEJZN1E1M1NzWTBZWFlGaTdRU3RNN3VxSkFoaWxEeUNHWTgyZ2NNNmtzNGlQQXN0RFhpYzJqcjciLCJtYWMiOiI2MWJiNWFiOGRhZWNmNWNmZWVlNGUxOGZiOTExNDU1OTUyMmYxNDFhYjNkNjYyMDhhNDFmNzI2MjRiZjUwNjQzIiwidGFnIjoiIn0%3D<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>accept-encoding<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp data-depth=2 class=sf-dump-compact>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"23 characters\">gzip, deflate, br, zstd<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>referer<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp data-depth=2 class=sf-dump-compact>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"53 characters\">https:\/\/timeentertainment.pat.vomdev.com\/ar\/dashboard<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>sec-fetch-dest<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp data-depth=2 class=sf-dump-compact>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"5 characters\">empty<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>sec-fetch-mode<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp data-depth=2 class=sf-dump-compact>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"4 characters\">cors<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>sec-fetch-site<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp data-depth=2 class=sf-dump-compact>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"11 characters\">same-origin<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>accept<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp data-depth=2 class=sf-dump-compact>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"16 characters\">application\/json<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>user-agent<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp data-depth=2 class=sf-dump-compact>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"135 characters\">Mozilla\/5.0 (iPhone; CPU iPhone OS 18_5 like Mac OS X) AppleWebKit\/605.1.15 (KHTML, like Gecko) Version\/18.5 Mobile\/15E148 Safari\/604.1<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>x-requested-with<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp data-depth=2 class=sf-dump-compact>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"14 characters\">XMLHttpRequest<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>sec-ch-ua-mobile<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp data-depth=2 class=sf-dump-compact>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"2 characters\">?1<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>sec-ch-ua<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp data-depth=2 class=sf-dump-compact>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"65 characters\">&quot;Chromium&quot;;v=&quot;154&quot;, &quot;Google Chrome&quot;;v=&quot;154&quot;, &quot;Not A(Brand&quot;;v=&quot;99&quot;<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>accept-language<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp data-depth=2 class=sf-dump-compact>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"2 characters\">ar<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>sec-ch-ua-platform<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp data-depth=2 class=sf-dump-compact>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"5 characters\">&quot;iOS&quot;<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>connection<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp data-depth=2 class=sf-dump-compact>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"10 characters\">keep-alive<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>host<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp data-depth=2 class=sf-dump-compact>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"32 characters\">timeentertainment.pat.vomdev.com<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>authorization<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp data-depth=2 class=sf-dump-compact>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"18 characters\">Bearer 15189******<\/span>\"\n  <\/samp>]\n<\/samp>]\n<\/pre><script>Sfdump(\"sf-dump-822512582\", {\"maxDepth\":0})<\/script>\n","request_cookies":"<pre class=sf-dump id=sf-dump-1168251673 data-indent-pad=\"  \"><span class=sf-dump-note>array:3<\/span> [<samp data-depth=1 class=sf-dump-expanded>\n  \"<span class=sf-dump-key>token<\/span>\" => \"<span class=sf-dump-str title=\"54 characters\">15140|cpkpP5DZ0RavHCGF9oCUuHPafUm689EZIENaSTC701998788<\/span>\"\n  \"<span class=sf-dump-key>XSRF-TOKEN<\/span>\" => \"<span class=sf-dump-str title=\"340 characters\">eyJpdiI6IkErcU5xSkFtWU9pcWp0Y1FGcVMxdlE9PSIsInZhbHVlIjoiL0RUSUFJY3lCVTlPRjhNQnFsMWh4MDk0c0l3Vkc5L3lML2ZOa05vOVhXaEVFcDBSbi85c202RnJkdXFCb2ZFSmJzV0ZQWm9KVnRsWW9oSEtZWjVzbG5ycWhRZ2c5eE1ucldEWmxCSVZJNzNGdld5Y0ZMQkF2QTMvcEUvOGJjWlIiLCJtYWMiOiI4NzNlNThiZTdiNDhhOTMxZmE3Mjg0YzIxYzY5MDhhNWQ2MDQyNDNkODA1YmVkYWMzNGM0MDA2ZmRmNzE5MzdlIiwidGFnIjoiIn0=<\/span>\"\n  \"<span class=sf-dump-key>vom_session<\/span>\" => \"<span class=sf-dump-str title=\"340 characters\">eyJpdiI6IldwSFdMcGNrLzB2ZC8veUhIZlQ3RXc9PSIsInZhbHVlIjoiYmlrdEMvNWJoMHQxSmg2VHpuRXBrT3phSHFmVERUak5qUTRJYlQ3ajRFeE15ejJlUytLajBQdWt1cVpZUC9scS95TVYzbDhtMEJZN1E1M1NzWTBZWFlGaTdRU3RNN3VxSkFoaWxEeUNHWTgyZ2NNNmtzNGlQQXN0RFhpYzJqcjciLCJtYWMiOiI2MWJiNWFiOGRhZWNmNWNmZWVlNGUxOGZiOTExNDU1OTUyMmYxNDFhYjNkNjYyMDhhNDFmNzI2MjRiZjUwNjQzIiwidGFnIjoiIn0=<\/span>\"\n<\/samp>]\n<\/pre><script>Sfdump(\"sf-dump-1168251673\", {\"maxDepth\":0})<\/script>\n","response_headers":"<pre class=sf-dump id=sf-dump-61254613 data-indent-pad=\"  \"><span class=sf-dump-note>array:5<\/span> [<samp data-depth=1 class=sf-dump-expanded>\n  \"<span class=sf-dump-key>cache-control<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp data-depth=2 class=sf-dump-compact>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"17 characters\">no-cache, private<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>date<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp data-depth=2 class=sf-dump-compact>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"29 characters\">Mon, 05 Oct 2026 08:28:38 GMT<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>content-type<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp data-depth=2 class=sf-dump-compact>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"16 characters\">application\/json<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>x-ratelimit-limit<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp data-depth=2 class=sf-dump-compact>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"3 characters\">180<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>x-ratelimit-remaining<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp data-depth=2 class=sf-dump-compact>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"3 characters\">167<\/span>\"\n  <\/samp>]\n<\/samp>]\n<\/pre><script>Sfdump(\"sf-dump-61254613\", {\"maxDepth\":0})<\/script>\n","session_attributes":"<pre class=sf-dump id=sf-dump-1441377975 data-indent-pad=\"  \">[]\n<\/pre><script>Sfdump(\"sf-dump-1441377975\", {\"maxDepth\":0})<\/script>\n"},"tooltip":{"status":"200 OK","full_url":"https:\/\/timeentertainment.pat.vomdev.com\/api\/v2\/companyuser\/dashboard\/expense-breakdown?basis=cash&f...","action_name":"company.dashboard-v2.expense-breakdown","controller_action":"Modules\\CompanyUser\\Http\\Controllers\\Dashboard\\DashboardExpenseBreakdownController"},"badge":null}}