{"id":"1749705615-4356-935508114","version":1,"type":"request","time":1749705614.813693,"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 eyJpdiI6IloxRURYSUQzODM0NEVManhoNFlONlE9PSIsInZhbHVlIjoidlRWaUcvdGo0Ums2YjNya1VESSt2YUdLR3l2blZCMXE2dGRWbUFnb2dVTGd0cUZPQ09wY1ZyMk5hZk01dDloeiIsIm1hYyI6IjRlYzVhY2E1ZmEyOTgwYjhjNWI1OTY2MWExOGVhNTQ4NDJkODNlNTFkOGRhZDY0ZjI2N2M1MDdiNzA2YjQ0M2UiLCJ0YWciOiIifQ=="],"accept":["application\/json"],"user-agent":["PostmanRuntime\/7.43.4"],"postman-token":["e5fd70b7-8c80-4c65-8b64-7cc1b38d99a9"],"host":["localhost"],"accept-encoding":["gzip, deflate, br"],"connection":["keep-alive"],"cookie":["laravel_session=xawDh17uR7gnSUP8Zm3rG4xMLVlFhpJyfs1hFZe9"]},"controller":"App\\Http\\Controllers\\Dashboard\\DashboardChartsController@index","getData":{"branches":{"__type__":"array","0":"2"},"period":"6month"},"postData":[],"requestData":"","sessionData":{"_token":"buRmDsqvu4t5wL6fgOGfG7XAFef97Yx1Sq3BmgjS","_previous":{"__type__":"array","url":"http:\/\/localhost\/dinex\/public\/api\/v1\/dashboard\/charts\/list?branches%5B0%5D=2&period=6month"},"_flash":{"__type__":"array","old":{"__type__":"array"},"new":{"__type__":"array"}},"login_web_59ba36addc2b2f9401580f014c7f58ea4e30989d":1,"password_hash_web":"*removed*"},"authenticatedUser":{"id":1,"username":"admin@dinex.com","email":"admin@dinex.com","name":"Admin Dinex"},"cookies":{"laravel_session":"xawDh17uR7gnSUP8Zm3rG4xMLVlFhpJyfs1hFZe9"},"responseTime":1749705624.699826,"responseStatus":200,"responseDuration":9886.132955551147,"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":312.87,"connection":"mysql","time":1749705616.612355,"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":79.13,"connection":"mysql","time":1749705616.931592,"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":17.64,"connection":"mysql","time":1749705617.14098,"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` = 'b6f00b0e-9edb-4d39-9523-67585e830a6a' and `expire_date` > '2025-06-12 09:20:17') ORDER BY `created_at` DESC LIMIT 1","duration":204.51,"connection":"mysql","time":1749705617.203028,"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":11.17,"connection":"mysql","time":1749705617.411803,"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":19.83,"connection":"mysql","time":1749705617.440882,"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":23.37,"connection":"mysql","time":1749705617.467886,"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 FROM `orders` inner join `branches` on `orders`.`branch_id` = `branches`.`id` WHERE ((date(`orders`.`related_date`) >= '2025-01-01' and date(`orders`.`related_date`) <= '2025-06-12')) and (`branches`.`id` in ('2')) LIMIT 1","duration":2276.19,"connection":"mysql","time":1749705617.505308,"trace":[{"call":"Illuminate\\Database\\Query\\Builder->first()","file":"C:\\xampp2\\htdocs\\dinex\\app\\Http\\Repositories\\Dashboard\\DashboardChartsRepository.php","line":136,"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.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(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 ((date(`orders`.`related_date`) >= '2025-01-01' and date(`orders`.`related_date`) <= '2025-06-12')) and (`branches`.`id` in ('2')) and `status` = 2 GROUP BY DATE_FORMAT(orders.related_date, \"%b %Y\")","duration":2260.86,"connection":"mysql","time":1749705619.783469,"trace":[{"call":"Illuminate\\Database\\Query\\Builder->get()","file":"C:\\xampp2\\htdocs\\dinex\\app\\Http\\Repositories\\Dashboard\\DashboardChartsRepository.php","line":308,"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 ((date(`orders`.`related_date`) >= '2025-01-01' and date(`orders`.`related_date`) <= '2025-06-12')) and (`branches`.`id` in ('2')) and `status` = 2 GROUP BY DATE_FORMAT(orders.related_date, \"%b %Y\")","duration":1552.58,"connection":"mysql","time":1749705622.045831,"trace":[{"call":"Illuminate\\Database\\Query\\Builder->get()","file":"C:\\xampp2\\htdocs\\dinex\\app\\Http\\Repositories\\Dashboard\\DashboardChartsRepository.php","line":375,"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":1057.36,"connection":"mysql","time":1749705623.600176,"trace":[{"call":"Illuminate\\Database\\Query\\Builder->get()","file":"C:\\xampp2\\htdocs\\dinex\\app\\Http\\Repositories\\Dashboard\\DashboardChartsRepository.php","line":252,"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":7815.509999999999,"cacheQueries":[{"type":"hit","key":"f1f70ec40aaa556905d4a030501c0ba4","expiration":null,"time":1749705617.166757,"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":1749705624.696009,"connection":null,"trace":[{"call":"Illuminate\\Foundation\\Http\\Kernel->handle()","file":"C:\\xampp2\\htdocs\\dinex\\public\\index.php","line":51,"isVendor":false}]}],"cacheReads":2,"cacheHits":2,"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":1749705616.134119,"end":1749705624.699595,"duration":8565.475940704346,"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":"01d4af1f"}
