{"id":"1752884994-9739-258576843","version":1,"type":"request","time":1752884994.733991,"method":"GET","url":"http:\/\/localhost\/dinex\/public\/api\/v1\/dashboard\/charts\/list?branches%5B0%5D=2&period=6month","uri":"\/dinex\/public\/api\/v1\/dashboard\/charts\/list?branches[]=2&period=6month","headers":{"authorization":["Bearer eyJpdiI6Imdha3BpMG1CZzZyMEw5QmZVWlZVQWc9PSIsInZhbHVlIjoiN200bW54N1JndjhkM0EyU1Z2QXlKZmhacUlGVFo2UDRSOXlsUkJEdGdoa3JKM0RVaWZiUmRiZXVsVGQ4ZmJKUCIsIm1hYyI6ImFhYzU1NTg2OTA3Y2YwOTgxYWFmOTM5NzVjNGRhMzZjNDFjMGVjYzJiOGM4ZjA4ZGJiYmZkOWVjMjU1ZmFiZjgiLCJ0YWciOiIifQ=="],"accept":["application\/json"],"user-agent":["PostmanRuntime\/7.44.1"],"postman-token":["0ff945ed-f97b-46c3-ac6a-15d5ed5f857c"],"host":["localhost"],"accept-encoding":["gzip, deflate, br"],"connection":["keep-alive"],"cookie":["laravel_session=Ysrq7hLkBeFZSAXoTcTsvLkFrTbipcj5n3JVs48P"]},"controller":"App\\Http\\Controllers\\Dashboard\\DashboardChartsController@index","getData":{"branches":{"__type__":"array","0":"2"},"period":"6month"},"postData":[],"requestData":"","sessionData":{"_token":"NmXpeisRrkYZYYnE7QcTeGK1Su9JA6kZR0B0juRO","login_web_59ba36addc2b2f9401580f014c7f58ea4e30989d":1,"_flash":{"__type__":"array","old":{"__type__":"array"},"new":{"__type__":"array"}},"password_hash_web":"*removed*","_previous":{"__type__":"array","url":"http:\/\/localhost\/dinex\/public\/api\/v1\/dashboard\/charts\/list?branches%5B0%5D=2&period=6month"}},"authenticatedUser":{"id":1,"username":"admin@dinex.com","email":"admin@dinex.com","name":"Admin Dinex"},"cookies":{"laravel_session":"Ysrq7hLkBeFZSAXoTcTsvLkFrTbipcj5n3JVs48P"},"responseTime":1752884998.09271,"responseStatus":200,"responseDuration":3358.7191104888916,"memoryUsage":25165824,"middleware":["api","auth.session","auth_api","api.role:admin|superadmin","api.role:superadmin|admin","api.permission:reports.read"],"databaseQueries":[{"query":"SELECT `id`, `name` FROM `payment_types`","duration":3.89,"connection":"mysql","time":1752884995.212638,"trace":[{"call":"Illuminate\\Database\\Eloquent\\Builder->get()","file":"C:\\xampp2\\htdocs\\dinex\\app\\Http\\Repositories\\Dashboard\\DashboardChartsRepository.php","line":37,"isVendor":false},{"call":"App\\Http\\Repositories\\Dashboard\\DashboardChartsRepository->__construct()","file":null,"line":null,"isVendor":false},{"call":"ReflectionClass->newInstanceArgs()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Container.php","line":952,"isVendor":true},{"call":"Illuminate\\Container\\Container->build()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Container.php","line":795,"isVendor":true},{"call":"Illuminate\\Container\\Container->resolve()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Application.php","line":986,"isVendor":true},{"call":"Illuminate\\Foundation\\Application->resolve()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Container.php","line":296,"isVendor":true},{"call":"Illuminate\\Container\\Container->Illuminate\\Container\\{closure}()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Container.php","line":908,"isVendor":true},{"call":"Illuminate\\Container\\Container->build()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Container.php","line":795,"isVendor":true},{"call":"Illuminate\\Container\\Container->resolve()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Application.php","line":986,"isVendor":true},{"call":"Illuminate\\Foundation\\Application->resolve()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Container.php","line":731,"isVendor":true}],"model":"App\\Models\\PaymentType","tags":[]},{"query":"SELECT `id`, `name` FROM `branches`","duration":0.5,"connection":"mysql","time":1752884995.221083,"trace":[{"call":"Illuminate\\Database\\Eloquent\\Builder->get()","file":"C:\\xampp2\\htdocs\\dinex\\app\\Http\\Repositories\\Dashboard\\DashboardChartsRepository.php","line":38,"isVendor":false},{"call":"App\\Http\\Repositories\\Dashboard\\DashboardChartsRepository->__construct()","file":null,"line":null,"isVendor":false},{"call":"ReflectionClass->newInstanceArgs()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Container.php","line":952,"isVendor":true},{"call":"Illuminate\\Container\\Container->build()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Container.php","line":795,"isVendor":true},{"call":"Illuminate\\Container\\Container->resolve()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Application.php","line":986,"isVendor":true},{"call":"Illuminate\\Foundation\\Application->resolve()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Container.php","line":296,"isVendor":true},{"call":"Illuminate\\Container\\Container->Illuminate\\Container\\{closure}()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Container.php","line":908,"isVendor":true},{"call":"Illuminate\\Container\\Container->build()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Container.php","line":795,"isVendor":true},{"call":"Illuminate\\Container\\Container->resolve()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Application.php","line":986,"isVendor":true},{"call":"Illuminate\\Foundation\\Application->resolve()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Container.php","line":731,"isVendor":true}],"model":"App\\Models\\Branch","tags":[]},{"query":"SELECT * FROM `users` WHERE `id` = 1 LIMIT 1","duration":14.62,"connection":"mysql","time":1752884995.2496269,"trace":[{"call":"Illuminate\\Http\\Request->user()","file":"C:\\xampp2\\htdocs\\dinex\\app\\Providers\\RouteServiceProvider.php","line":28,"isVendor":false},{"call":"App\\Providers\\RouteServiceProvider->App\\Providers\\{closure}()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php","line":117,"isVendor":true},{"call":"Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php","line":87,"isVendor":true},{"call":"Illuminate\\Routing\\Middleware\\ThrottleRequests->handle()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php","line":183,"isVendor":true},{"call":"Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php","line":121,"isVendor":true},{"call":"Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php","line":64,"isVendor":true},{"call":"Illuminate\\Session\\Middleware\\StartSession->handle()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php","line":183,"isVendor":true},{"call":"Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php","line":119,"isVendor":true},{"call":"Illuminate\\Pipeline\\Pipeline->then()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php","line":805,"isVendor":true},{"call":"Illuminate\\Routing\\Router->runRouteWithinStack()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php","line":784,"isVendor":true}],"model":"App\\Models\\User","tags":[]},{"query":"SELECT * FROM `users` WHERE exists (SELECT * FROM `oauth_user_tokens` WHERE `users`.`id` = `oauth_user_tokens`.`user_id` and `id` = 'cef62c3f-a106-4d6e-a4e3-7a00f8b16a69' and `expire_date` > '2025-07-19 04:29:55') ORDER BY `created_at` DESC LIMIT 1","duration":8.04,"connection":"mysql","time":1752884995.2952662,"trace":[{"call":"Illuminate\\Database\\Eloquent\\Builder->first()","file":"C:\\xampp2\\htdocs\\dinex\\app\\Http\\Middleware\\AuthApiMiddleware.php","line":34,"isVendor":false},{"call":"App\\Http\\Middleware\\AuthApiMiddleware->handle()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php","line":183,"isVendor":true},{"call":"Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php","line":50,"isVendor":true},{"call":"Illuminate\\Routing\\Middleware\\SubstituteBindings->handle()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php","line":183,"isVendor":true},{"call":"Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\AuthenticateSession.php","line":60,"isVendor":true},{"call":"Illuminate\\Session\\Middleware\\AuthenticateSession->handle()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php","line":183,"isVendor":true},{"call":"Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php","line":159,"isVendor":true},{"call":"Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php","line":125,"isVendor":true},{"call":"Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php","line":87,"isVendor":true},{"call":"Illuminate\\Routing\\Middleware\\ThrottleRequests->handle()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php","line":183,"isVendor":true}],"model":"App\\Models\\User","tags":[]},{"query":"SELECT * FROM `branches` WHERE `branches`.`id` = 1 LIMIT 1","duration":2.16,"connection":"mysql","time":1752884995.305568,"trace":[{"call":"Illuminate\\Database\\Eloquent\\Model->__get()","file":"C:\\xampp2\\htdocs\\dinex\\app\\Http\\Middleware\\AuthApiMiddleware.php","line":41,"isVendor":false},{"call":"App\\Http\\Middleware\\AuthApiMiddleware->handle()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php","line":183,"isVendor":true},{"call":"Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php","line":50,"isVendor":true},{"call":"Illuminate\\Routing\\Middleware\\SubstituteBindings->handle()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php","line":183,"isVendor":true},{"call":"Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\AuthenticateSession.php","line":60,"isVendor":true},{"call":"Illuminate\\Session\\Middleware\\AuthenticateSession->handle()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php","line":183,"isVendor":true},{"call":"Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php","line":159,"isVendor":true},{"call":"Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php","line":125,"isVendor":true},{"call":"Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php","line":87,"isVendor":true},{"call":"Illuminate\\Routing\\Middleware\\ThrottleRequests->handle()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php","line":183,"isVendor":true}],"model":"App\\Models\\Branch","tags":[]},{"query":"SELECT `roles`.*, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` FROM `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` WHERE `model_has_roles`.`model_id` = 1 and `model_has_roles`.`model_type` = 'App\\\\Models\\\\User'","duration":1.45,"connection":"mysql","time":1752884995.3174329,"trace":[{"call":"Illuminate\\Database\\Eloquent\\Model->__get()","file":"C:\\xampp2\\htdocs\\dinex\\app\\Http\\Middleware\\CustomRoleMiddleware.php","line":20,"isVendor":false},{"call":"App\\Http\\Middleware\\CustomRoleMiddleware->handle()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php","line":183,"isVendor":true},{"call":"Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()","file":"C:\\xampp2\\htdocs\\dinex\\app\\Http\\Middleware\\AuthApiMiddleware.php","line":43,"isVendor":false},{"call":"App\\Http\\Middleware\\AuthApiMiddleware->handle()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php","line":183,"isVendor":true},{"call":"Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php","line":50,"isVendor":true},{"call":"Illuminate\\Routing\\Middleware\\SubstituteBindings->handle()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php","line":183,"isVendor":true},{"call":"Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\AuthenticateSession.php","line":60,"isVendor":true},{"call":"Illuminate\\Session\\Middleware\\AuthenticateSession->handle()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php","line":183,"isVendor":true},{"call":"Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php","line":159,"isVendor":true},{"call":"Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php","line":125,"isVendor":true}],"model":"Spatie\\Permission\\Models\\Role","tags":[]},{"query":"SELECT `permissions`.*, `role_has_permissions`.`role_id` as `pivot_role_id`, `role_has_permissions`.`permission_id` as `pivot_permission_id` FROM `permissions` inner join `role_has_permissions` on `permissions`.`id` = `role_has_permissions`.`permission_id` WHERE `role_has_permissions`.`role_id` = 1","duration":1.76,"connection":"mysql","time":1752884995.323699,"trace":[{"call":"Illuminate\\Database\\Eloquent\\Model->__get()","file":"C:\\xampp2\\htdocs\\dinex\\app\\Http\\Middleware\\CustomPermissionMiddleware.php","line":21,"isVendor":false},{"call":"App\\Http\\Middleware\\CustomPermissionMiddleware->handle()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php","line":183,"isVendor":true},{"call":"Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()","file":"C:\\xampp2\\htdocs\\dinex\\app\\Http\\Middleware\\CustomRoleMiddleware.php","line":21,"isVendor":false},{"call":"App\\Http\\Middleware\\CustomRoleMiddleware->handle()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php","line":183,"isVendor":true},{"call":"Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()","file":"C:\\xampp2\\htdocs\\dinex\\app\\Http\\Middleware\\CustomRoleMiddleware.php","line":21,"isVendor":false},{"call":"App\\Http\\Middleware\\CustomRoleMiddleware->handle()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php","line":183,"isVendor":true},{"call":"Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()","file":"C:\\xampp2\\htdocs\\dinex\\app\\Http\\Middleware\\AuthApiMiddleware.php","line":43,"isVendor":false},{"call":"App\\Http\\Middleware\\AuthApiMiddleware->handle()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php","line":183,"isVendor":true},{"call":"Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php","line":50,"isVendor":true},{"call":"Illuminate\\Routing\\Middleware\\SubstituteBindings->handle()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php","line":183,"isVendor":true}],"model":"Spatie\\Permission\\Models\\Permission","tags":[]},{"query":"SELECT COUNT(*) as total_orders, COUNT(CASE WHEN status = 3 THEN 1 END) as total_canceled_orders, COUNT(CASE WHEN status = 4 THEN 1 END) as total_returned_orders, COUNT(CASE WHEN status = 2 THEN 1 END) as total_delivered_orders, ROUND(SUM(price_before_discount) + SUM(vat) , 2) as total_gross_sales, ROUND(SUM(final_price), 2) as total_sales, ROUND(SUM(price_before_discount - price_after_discount), 2) as total_discount, ROUND(SUM(final_price - vat), 2) as net_sales, ROUND(SUM(vat), 2) as total_vat FROM `orders` inner join `branches` on `orders`.`branch_id` = `branches`.`id` WHERE ((`orders`.`related_date` between '2025-01-19 04:29:55' and '2025-07-19 04:29:55')) and (`branches`.`id` in ('2')) LIMIT 1","duration":785.42,"connection":"mysql","time":1752884995.3311841,"trace":[{"call":"Illuminate\\Database\\Query\\Builder->first()","file":"C:\\xampp2\\htdocs\\dinex\\app\\Http\\Repositories\\Dashboard\\DashboardChartsRepository.php","line":140,"isVendor":false},{"call":"App\\Http\\Repositories\\Dashboard\\DashboardChartsRepository->total_values()","file":"C:\\xampp2\\htdocs\\dinex\\app\\Http\\Controllers\\Dashboard\\DashboardChartsController.php","line":40,"isVendor":false},{"call":"App\\Http\\Controllers\\Dashboard\\DashboardChartsController->index()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php","line":54,"isVendor":true},{"call":"Illuminate\\Routing\\Controller->callAction()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php","line":43,"isVendor":true},{"call":"Illuminate\\Routing\\ControllerDispatcher->dispatch()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php","line":259,"isVendor":true},{"call":"Illuminate\\Routing\\Route->runController()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php","line":205,"isVendor":true},{"call":"Illuminate\\Routing\\Route->run()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php","line":806,"isVendor":true},{"call":"Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php","line":144,"isVendor":true},{"call":"Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()","file":"C:\\xampp2\\htdocs\\dinex\\app\\Http\\Middleware\\CustomPermissionMiddleware.php","line":33,"isVendor":false},{"call":"App\\Http\\Middleware\\CustomPermissionMiddleware->handle()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php","line":183,"isVendor":true}],"model":null,"tags":[]},{"query":"SELECT CASE\n                    WHEN \"6month\" = \"day\" THEN CASE\n                        WHEN orders.closed_at IS NULL AND orders.related_date IS NULL AND orders.day_closed = 0\n                            THEN DATE_FORMAT(orders.created_at, \"%h:%i %p\")\n                        ELSE DATE_FORMAT(orders.created_at, \"%h:%i %p\")\n                    END\n                    WHEN \"6month\" = \"week\" THEN CONCAT(DAYOFWEEK(orders.related_date), \" \", DATE_FORMAT(orders.related_date, \"%W\"))\n                    WHEN \"6month\" = \"month\" THEN CONCAT(\"Week \", WEEK(orders.related_date) - WEEK(DATE_FORMAT(orders.related_date, \"%Y-%m-01\")) + 1)\n                    WHEN \"6month\" = \"6month\" THEN CASE\n                        WHEN YEAR(DATE_SUB(NOW(), INTERVAL 6 MONTH)) < YEAR(NOW())\n                            THEN DATE_FORMAT(orders.related_date, \"%b %Y\")\n                        ELSE DATE_FORMAT(orders.related_date, \"%b %Y\")\n                    END\n                    WHEN \"6month\" = \"year\" THEN DATE_FORMAT(orders.related_date, \"%b %Y\")\n                    ELSE DATE_FORMAT(orders.related_date, \"%b %Y\")\n                END as period, ROUND(SUM(final_price), 2) as total_sales, ROUND(SUM(final_price - vat), 2) as net_sales FROM `orders` inner join `branches` on `orders`.`branch_id` = `branches`.`id` WHERE ((`orders`.`related_date` between '2025-01-19 04:29:55' and '2025-07-19 04:29:55')) and (`branches`.`id` in ('2')) and `status` = 2 GROUP BY DATE_FORMAT(orders.related_date, \"%b %Y\")","duration":819.8,"connection":"mysql","time":1752884996.1182451,"trace":[{"call":"Illuminate\\Database\\Query\\Builder->get()","file":"C:\\xampp2\\htdocs\\dinex\\app\\Http\\Repositories\\Dashboard\\DashboardChartsRepository.php","line":315,"isVendor":false},{"call":"App\\Http\\Repositories\\Dashboard\\DashboardChartsRepository->TotalAndNetSalesLineChart()","file":"C:\\xampp2\\htdocs\\dinex\\app\\Http\\Controllers\\Dashboard\\DashboardChartsController.php","line":41,"isVendor":false},{"call":"App\\Http\\Controllers\\Dashboard\\DashboardChartsController->index()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php","line":54,"isVendor":true},{"call":"Illuminate\\Routing\\Controller->callAction()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php","line":43,"isVendor":true},{"call":"Illuminate\\Routing\\ControllerDispatcher->dispatch()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php","line":259,"isVendor":true},{"call":"Illuminate\\Routing\\Route->runController()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php","line":205,"isVendor":true},{"call":"Illuminate\\Routing\\Route->run()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php","line":806,"isVendor":true},{"call":"Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php","line":144,"isVendor":true},{"call":"Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()","file":"C:\\xampp2\\htdocs\\dinex\\app\\Http\\Middleware\\CustomPermissionMiddleware.php","line":33,"isVendor":false},{"call":"App\\Http\\Middleware\\CustomPermissionMiddleware->handle()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php","line":183,"isVendor":true}],"model":null,"tags":[]},{"query":"SELECT CASE\n                    WHEN \"6month\" = \"day\" THEN CASE\n                        WHEN orders.closed_at IS NULL AND orders.related_date IS NULL AND orders.day_closed = 0\n                            THEN DATE_FORMAT(orders.created_at, \"%h:%i %p\")\n                        ELSE DATE_FORMAT(orders.related_date, \"%h:%i %p\")\n                    END\n                    WHEN \"6month\" = \"week\" THEN CONCAT(DAYOFWEEK(orders.related_date), \" \", DATE_FORMAT(orders.related_date, \"%W\"))\n                    WHEN \"6month\" = \"month\" THEN CONCAT(\"Week \", WEEK(orders.related_date) - WEEK(DATE_FORMAT(orders.related_date, \"%Y-%m-01\")) + 1)\n                   WHEN \"6month\" = \"6month\" THEN CASE\n                        WHEN YEAR(DATE_SUB(NOW(), INTERVAL 6 MONTH)) < YEAR(NOW())\n                            THEN DATE_FORMAT(orders.related_date, \"%b %Y\")\n                        ELSE DATE_FORMAT(orders.related_date, \"%b %Y\")\n                    END\n                    WHEN \"6month\" = \"year\" THEN DATE_FORMAT(orders.related_date, \"%b %Y\")\n                    ELSE DATE_FORMAT(orders.related_date, \"%b %Y\")\n                END as period, ROUND(SUM(vat), 2) as total_tax, ROUND(SUM(price_before_discount - price_after_discount), 2) as total_discount FROM `orders` inner join `branches` on `orders`.`branch_id` = `branches`.`id` WHERE ((`orders`.`related_date` between '2025-01-19 04:29:55' and '2025-07-19 04:29:55')) and (`branches`.`id` in ('2')) and `status` = 2 GROUP BY DATE_FORMAT(orders.related_date, \"%b %Y\")","duration":587.54,"connection":"mysql","time":1752884996.938859,"trace":[{"call":"Illuminate\\Database\\Query\\Builder->get()","file":"C:\\xampp2\\htdocs\\dinex\\app\\Http\\Repositories\\Dashboard\\DashboardChartsRepository.php","line":382,"isVendor":false},{"call":"App\\Http\\Repositories\\Dashboard\\DashboardChartsRepository->TotalDiscountAndTaxLineChart()","file":"C:\\xampp2\\htdocs\\dinex\\app\\Http\\Controllers\\Dashboard\\DashboardChartsController.php","line":42,"isVendor":false},{"call":"App\\Http\\Controllers\\Dashboard\\DashboardChartsController->index()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php","line":54,"isVendor":true},{"call":"Illuminate\\Routing\\Controller->callAction()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php","line":43,"isVendor":true},{"call":"Illuminate\\Routing\\ControllerDispatcher->dispatch()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php","line":259,"isVendor":true},{"call":"Illuminate\\Routing\\Route->runController()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php","line":205,"isVendor":true},{"call":"Illuminate\\Routing\\Route->run()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php","line":806,"isVendor":true},{"call":"Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php","line":144,"isVendor":true},{"call":"Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()","file":"C:\\xampp2\\htdocs\\dinex\\app\\Http\\Middleware\\CustomPermissionMiddleware.php","line":33,"isVendor":false},{"call":"App\\Http\\Middleware\\CustomPermissionMiddleware->handle()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php","line":183,"isVendor":true}],"model":null,"tags":[]},{"query":"SELECT `order_1`.`branch_id`, `branches`.`name` as `branch_name`, `order_1`.`closed_at`, `order_1`.`related_date`, CASE\n            WHEN order_1.closed_at IS NOT NULL THEN (\n                SELECT COUNT(*)\n                FROM orders as o\n                WHERE o.branch_id = order_1.branch_id\n                  AND o.related_date = order_1.related_date\n            )\n            ELSE (\n                SELECT MIN(o.created_at)\n                FROM orders as o\n                WHERE o.branch_id = order_1.branch_id\n                  AND o.closed_at IS NULL\n            )\n        END as count_or_opened_date FROM `orders` as `order_1` inner join `branches` on `branches`.`id` = `order_1`.`branch_id` inner join (SELECT branch_id, MAX(created_at) as max_created_at FROM orders GROUP BY branch_id) as order_2 on `order_1`.`branch_id` = `order_2`.`branch_id` and `order_1`.`created_at` = `order_2`.`max_created_at` WHERE `order_1`.`branch_id` in (1, 2, 3, 4, 5, 6, 7, 8)","duration":543.45,"connection":"mysql","time":1752884997.5274348,"trace":[{"call":"Illuminate\\Database\\Query\\Builder->get()","file":"C:\\xampp2\\htdocs\\dinex\\app\\Http\\Repositories\\Dashboard\\DashboardChartsRepository.php","line":259,"isVendor":false},{"call":"App\\Http\\Repositories\\Dashboard\\DashboardChartsRepository->closed_opened_branch()","file":"C:\\xampp2\\htdocs\\dinex\\app\\Http\\Controllers\\Dashboard\\DashboardChartsController.php","line":43,"isVendor":false},{"call":"App\\Http\\Controllers\\Dashboard\\DashboardChartsController->index()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php","line":54,"isVendor":true},{"call":"Illuminate\\Routing\\Controller->callAction()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php","line":43,"isVendor":true},{"call":"Illuminate\\Routing\\ControllerDispatcher->dispatch()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php","line":259,"isVendor":true},{"call":"Illuminate\\Routing\\Route->runController()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php","line":205,"isVendor":true},{"call":"Illuminate\\Routing\\Route->run()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php","line":806,"isVendor":true},{"call":"Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php","line":144,"isVendor":true},{"call":"Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()","file":"C:\\xampp2\\htdocs\\dinex\\app\\Http\\Middleware\\CustomPermissionMiddleware.php","line":33,"isVendor":false},{"call":"App\\Http\\Middleware\\CustomPermissionMiddleware->handle()","file":"C:\\xampp2\\htdocs\\dinex\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php","line":183,"isVendor":true}],"model":null,"tags":[]}],"databaseQueriesCount":11,"databaseSlowQueries":0,"databaseSelects":11,"databaseInserts":0,"databaseUpdates":0,"databaseDeletes":0,"databaseOthers":0,"databaseDuration":2768.63,"cacheQueries":[{"type":"miss","key":"f1f70ec40aaa556905d4a030501c0ba4","expiration":null,"time":1752884995.267643,"connection":null,"trace":[{"call":"Illuminate\\Foundation\\Http\\Kernel->handle()","file":"C:\\xampp2\\htdocs\\dinex\\public\\index.php","line":51,"isVendor":false}]},{"type":"hit","key":"f1f70ec40aaa556905d4a030501c0ba4","expiration":null,"time":1752884998.090035,"connection":null,"trace":[{"call":"Illuminate\\Foundation\\Http\\Kernel->handle()","file":"C:\\xampp2\\htdocs\\dinex\\public\\index.php","line":51,"isVendor":false}]}],"cacheReads":2,"cacheHits":1,"cacheWrites":0,"cacheDeletes":0,"cacheTime":0,"modelsActions":[],"modelsRetrieved":{"App\\Models\\PaymentType":12,"App\\Models\\Branch":9,"App\\Models\\User":2,"Spatie\\Permission\\Models\\Role":1,"Spatie\\Permission\\Models\\Permission":42},"modelsCreated":[],"modelsUpdated":[],"modelsDeleted":[],"redisCommands":[],"queueJobs":[],"timelineData":[{"description":"Controller","start":1752884995.149409,"end":1752884998.092559,"duration":2943.150043487549,"color":null,"data":null}],"log":[],"events":[],"routes":[],"notifications":[],"emailsData":[],"viewsData":[],"userData":[],"httpRequests":[],"subrequests":[],"xdebug":[],"commandName":null,"commandArguments":[],"commandArgumentsDefaults":[],"commandOptions":[],"commandOptionsDefaults":[],"commandExitCode":null,"commandOutput":null,"jobName":null,"jobDescription":null,"jobStatus":null,"jobPayload":[],"jobQueue":null,"jobConnection":null,"jobOptions":[],"testName":null,"testStatus":null,"testStatusMessage":null,"testAsserts":[],"clientMetrics":[],"webVitals":[],"parent":null,"updateToken":"518cf782"}
