{"id":"1754074666-9673-1383111130","version":1,"type":"request","time":1754074665.506823,"method":"GET","url":"http:\/\/localhost\/dinex\/public\/api\/v1\/dashboard\/charts\/list?branches%5B0%5D=2","uri":"\/dinex\/public\/api\/v1\/dashboard\/charts\/list?branches[]=2","headers":{"authorization":["Bearer eyJpdiI6InhFVC8rSWgvN3E3OTEvRWhvMGhKUmc9PSIsInZhbHVlIjoiZnpqUVNpbkhWOWlUUkx0aldHZzB1K25jTHNBRHZZYXd6Z3RwN2JRei9PZVhPTHhJVW5HbmhQeDRoTkR4RzlaUCIsIm1hYyI6ImNiZGZlOTFjNTFiZWZiMDAyYzczZTQ4OWFmM2UyNGEyOTZiNWRmOGQzOTRhOTJhYzAxMjk3OTIwOWZmN2VjOTYiLCJ0YWciOiIifQ=="],"accept":["application\/json"],"user-agent":["PostmanRuntime\/7.45.0"],"postman-token":["65915d73-1764-4cfe-bac2-19e98c263e17"],"host":["localhost"],"accept-encoding":["gzip, deflate, br"],"connection":["keep-alive"],"cookie":["laravel_session=OCRfm47kvQj8lFeDTPcwn77ZPHewkliHPqqicGBR"]},"controller":"App\\Http\\Controllers\\Dashboard\\DashboardChartsController@index","getData":{"branches":{"__type__":"array","0":"2"}},"postData":[],"requestData":"","sessionData":{"_token":"OSz1i1GZwVnOOWH6LqUuhpEn76QZANpYv68Mgs87","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"}},"authenticatedUser":{"id":1,"username":"admin@dinex.com","email":"admin@dinex.com","name":"Admin Dinex"},"cookies":{"laravel_session":"OCRfm47kvQj8lFeDTPcwn77ZPHewkliHPqqicGBR"},"responseTime":1754074679.011676,"responseStatus":200,"responseDuration":13504.853010177612,"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":14.36,"connection":"mysql","time":1754074667.973545,"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.53,"connection":"mysql","time":1754074667.994772,"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":119.5,"connection":"mysql","time":1754074668.166294,"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` = '80f49678-d4aa-4988-8f2e-8ddbdca99f22' and `expire_date` > '2025-08-01 22:57:48') ORDER BY `created_at` DESC LIMIT 1","duration":107.8,"connection":"mysql","time":1754074668.309705,"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":118.06,"connection":"mysql","time":1754074668.4217,"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":71.76,"connection":"mysql","time":1754074668.560724,"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":64.06,"connection":"mysql","time":1754074668.638036,"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 (month(`orders`.`related_date`) = '08') and (`branches`.`id` in ('2')) LIMIT 1","duration":1884.25,"connection":"mysql","time":1754074668.712068,"trace":[{"call":"Illuminate\\Database\\Query\\Builder->first()","file":"C:\\xampp2\\htdocs\\dinex\\app\\Http\\Repositories\\Dashboard\\DashboardChartsRepository.php","line":144,"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 \"month\" = \"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 \"month\" = \"week\" THEN CONCAT(DAYOFWEEK(orders.related_date), \" \", DATE_FORMAT(orders.related_date, \"%W\"))\n                    WHEN \"month\" = \"month\" THEN CONCAT(\"Week \", WEEK(orders.related_date) - WEEK(DATE_FORMAT(orders.related_date, \"%Y-%m-01\")) + 1)\n                    WHEN \"month\" = \"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 \"month\" = \"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 (month(`orders`.`related_date`) = '08') and (`branches`.`id` in ('2')) and `status` = 2 GROUP BY WEEK(orders.related_date) - WEEK(DATE_FORMAT(orders.related_date, \"%Y-%m-01\")) + 1","duration":1451.52,"connection":"mysql","time":1754074670.598397,"trace":[{"call":"Illuminate\\Database\\Query\\Builder->get()","file":"C:\\xampp2\\htdocs\\dinex\\app\\Http\\Repositories\\Dashboard\\DashboardChartsRepository.php","line":319,"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 \"month\" = \"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 \"month\" = \"week\" THEN CONCAT(DAYOFWEEK(orders.related_date), \" \", DATE_FORMAT(orders.related_date, \"%W\"))\n                    WHEN \"month\" = \"month\" THEN CONCAT(\"Week \", WEEK(orders.related_date) - WEEK(DATE_FORMAT(orders.related_date, \"%Y-%m-01\")) + 1)\n                   WHEN \"month\" = \"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 \"month\" = \"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 (month(`orders`.`related_date`) = '08') and (`branches`.`id` in ('2')) and `status` = 2 GROUP BY WEEK(orders.related_date) - WEEK(DATE_FORMAT(orders.related_date, \"%Y-%m-01\")) + 1","duration":1580.6,"connection":"mysql","time":1754074672.051326,"trace":[{"call":"Illuminate\\Database\\Query\\Builder->get()","file":"C:\\xampp2\\htdocs\\dinex\\app\\Http\\Repositories\\Dashboard\\DashboardChartsRepository.php","line":386,"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":3985.96,"connection":"mysql","time":1754074673.633397,"trace":[{"call":"Illuminate\\Database\\Query\\Builder->get()","file":"C:\\xampp2\\htdocs\\dinex\\app\\Http\\Repositories\\Dashboard\\DashboardChartsRepository.php","line":263,"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":[]},{"query":"SELECT `branch_id`, SUM(final_price) as total_sales, COUNT(*) as total_orders FROM `orders` WHERE `orders`.`branch_id` != '0' and (month(`orders`.`related_date`) = '08') and (`orders`.`status` != 3) GROUP BY `branch_id` ORDER BY `total_sales` DESC LIMIT 1","duration":1352.11,"connection":"mysql","time":1754074677.620994,"trace":[{"call":"Illuminate\\Database\\Query\\Builder->first()","file":"C:\\xampp2\\htdocs\\dinex\\app\\Http\\Repositories\\Dashboard\\DashboardChartsRepository.php","line":451,"isVendor":false},{"call":"App\\Http\\Repositories\\Dashboard\\DashboardChartsRepository->topBranchSelling()","file":"C:\\xampp2\\htdocs\\dinex\\app\\Http\\Controllers\\Dashboard\\DashboardChartsController.php","line":45,"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":12,"databaseSlowQueries":0,"databaseSelects":12,"databaseInserts":0,"databaseUpdates":0,"databaseDeletes":0,"databaseOthers":0,"databaseDuration":10750.510000000002,"cacheQueries":[{"type":"hit","key":"f1f70ec40aaa556905d4a030501c0ba4","expiration":null,"time":1754074668.289385,"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":1754074679.008354,"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":1754074667.645288,"end":1754074679.011516,"duration":11366.228103637695,"color":null,"data":null}],"log":[{"message":"Creation of dynamic property App\\Http\\Repositories\\Dashboard\\DashboardChartsRepository::$NotCancelledQuery is deprecated in C:\\xampp2\\htdocs\\dinex\\app\\Http\\Repositories\\Dashboard\\DashboardChartsRepository.php on line 111","exception":null,"context":{"__type__":"array"},"level":"warning","time":1754074668.004181,"trace":[{"call":"Illuminate\\Foundation\\Bootstrap\\HandleExceptions->Illuminate\\Foundation\\Bootstrap\\{closure}()","file":"C:\\xampp2\\htdocs\\dinex\\app\\Http\\Repositories\\Dashboard\\DashboardChartsRepository.php","line":111,"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}]}],"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":"2c1be073"}
