{"__meta":{"id":"Xbf1b2ad30f1b21c95f7a4be6fbbbf605","datetime":"2025-08-06 08:56:23","utime":1754445383.588793,"method":"GET","uri":"\/report\/branch-sources","ip":"113.23.103.21"},"php":{"version":"7.2.24","interface":"apache2handler"},"messages":{"count":0,"messages":[]},"time":{"start":1754445382.145,"end":1754445383.588838,"duration":1.443838119506836,"duration_str":"1.44s","measures":[{"label":"Booting","start":1754445382.145,"relative_start":0,"end":1754445382.17756,"relative_end":1754445382.17756,"duration":0.032560110092163086,"duration_str":"32.56ms","params":[],"collector":null},{"label":"Application","start":1754445382.177754,"relative_start":0.032753944396972656,"end":1754445383.588844,"relative_end":5.9604644775390625e-6,"duration":1.4110901355743408,"duration_str":"1.41s","params":[],"collector":null}]},"memory":{"peak_usage":8977904,"peak_usage_str":"9MB"},"exceptions":{"count":0,"exceptions":[]},"views":{"nb_templates":10,"templates":[{"name":"branch.source.index (resources\/views\/branch\/source\/index.blade.php)","param_count":1,"params":["users"],"type":"blade"},{"name":"branch.source.ajax (resources\/views\/branch\/source\/ajax.blade.php)","param_count":7,"params":["obLevel","__env","app","location","branch","errors","users"],"type":"blade"},{"name":"layout.app (resources\/views\/layout\/app.blade.php)","param_count":7,"params":["obLevel","__env","app","location","branch","errors","users"],"type":"blade"},{"name":"layout.assets_head (resources\/views\/layout\/assets_head.blade.php)","param_count":7,"params":["obLevel","__env","app","location","branch","errors","users"],"type":"blade"},{"name":"menu.navbar (resources\/views\/menu\/navbar.blade.php)","param_count":9,"params":["obLevel","__env","app","location","branch","errors","users","permissions","roleGlobal"],"type":"blade"},{"name":"menu.horizantal (resources\/views\/menu\/horizantal.blade.php)","param_count":9,"params":["obLevel","__env","app","location","branch","errors","users","permissions","roleGlobal"],"type":"blade"},{"name":"menu.menu_left (resources\/views\/menu\/menu_left.blade.php)","param_count":9,"params":["obLevel","__env","app","location","branch","errors","users","permissions","roleGlobal"],"type":"blade"},{"name":"layout.footer (resources\/views\/layout\/footer.blade.php)","param_count":9,"params":["obLevel","__env","app","location","branch","errors","users","permissions","roleGlobal"],"type":"blade"},{"name":"layout.assets_script (resources\/views\/layout\/assets_script.blade.php)","param_count":9,"params":["obLevel","__env","app","location","branch","errors","users","permissions","roleGlobal"],"type":"blade"},{"name":"layout._script (resources\/views\/layout\/_script.blade.php)","param_count":9,"params":["obLevel","__env","app","location","branch","errors","users","permissions","roleGlobal"],"type":"blade"}]},"route":{"uri":"GET report\/branch-sources","middleware":"web, auth, check.server","controller":"App\\Http\\Controllers\\BE\\Branch\\BranchController@source","namespace":"App\\Http\\Controllers\\BE","prefix":"\/report","where":[],"as":"report.branch-source","file":"app\/Http\/Controllers\/BE\/Branch\/BranchController.php:141-238"},"queries":{"nb_statements":447,"nb_failed_statements":0,"accumulated_duration":0.9560100000000008,"accumulated_duration_str":"956ms","statements":[{"sql":"select `id`, `name` from`branchs`","type":"query","params":[],"bindings":[],"hints":null,"backtrace":[{"index":13,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":30},{"index":15,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php","line":825},{"index":16,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php","line":667},{"index":17,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php","line":615},{"index":18,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Application.php","line":767}],"duration":0.0037099999999999998,"duration_str":"3.71ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:30","connection":"tintam"},{"sql":"select * from`locations`","type":"query","params":[],"bindings":[],"hints":null,"backtrace":[{"index":14,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Support\/Traits\/ForwardsCalls.php","line":23},{"index":17,"namespace":null,"name":"\/app\/Models\/Branch.php","line":22},{"index":18,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":31},{"index":20,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php","line":825},{"index":21,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php","line":667}],"duration":0.00085,"duration_str":"850\u03bcs","stmt_id":"\/vendor\/laravel\/framework\/src\/Illuminate\/Support\/Traits\/ForwardsCalls.php:23","connection":"tintam"},{"sql":"select * from`users` where `id` = 111 and `users`.`deleted_at` is null limit 1","type":"query","params":[],"bindings":["111"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/EloquentUserProvider.php","line":52},{"index":16,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/SessionGuard.php","line":131},{"index":17,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/GuardHelpers.php","line":60},{"index":18,"namespace":"middleware","name":"auth","line":62},{"index":19,"namespace":"middleware","name":"auth","line":41}],"duration":0.0014,"duration_str":"1.4ms","stmt_id":"\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/EloquentUserProvider.php:52","connection":"tintam"},{"sql":"select * from`roles` where `roles`.`id` in (1)","type":"query","params":[],"bindings":[],"hints":null,"backtrace":[{"index":19,"namespace":"middleware","name":"permission","line":19},{"index":20,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":163},{"index":21,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":53},{"index":22,"namespace":"middleware","name":"check.server","line":21},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":163}],"duration":0.00094,"duration_str":"940\u03bcs","stmt_id":"middleware::permission:19","connection":"tintam"},{"sql":"select `id`, `name` from`status` where `type` = 2","type":"query","params":[],"bindings":["2"],"hints":null,"backtrace":[{"index":14,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":149},{"index":17,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":18,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":19,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176},{"index":20,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php","line":680}],"duration":0.0009,"duration_str":"900\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:149","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 21 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["21","2025-08-06 00:00:00","2025-08-06 23:59:59","3","4","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":184},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.022850000000000002,"duration_str":"22.85ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:184","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 21 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["21","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":185},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.009810000000000001,"duration_str":"9.81ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:185","connection":"tintam"},{"sql":"select sum(`payment_wallets`.`price`) as aggregate from`payment_wallets` inner join `wallet_histories` as `wh` on `wh`.`id` = `payment_wallets`.`order_wallet_id` inner join `customers` as `c` on `wh`.`customer_id` = `c`.`id` where `payment_wallets`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 21","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","21"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":208},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0011899999999999999,"duration_str":"1.19ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:208","connection":"tintam"},{"sql":"select sum(`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 21 and `o`.`is_upsale` = 0 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","21","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":219},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00139,"duration_str":"1.39ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `source_id` = 21 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","21"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":220},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0008399999999999999,"duration_str":"840\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:220","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 21 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["21","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":221},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00083,"duration_str":"830\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 21 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["21","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":222},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00158,"duration_str":"1.58ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 21 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["21","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":223},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00079,"duration_str":"790\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 21 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["21","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":224},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0007700000000000001,"duration_str":"770\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 21 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["21","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":225},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0007700000000000001,"duration_str":"770\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:225","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 21 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["21","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":226},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00086,"duration_str":"860\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:226","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 21 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["21","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":227},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00079,"duration_str":"790\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:227","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 21 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["21","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00062,"duration_str":"620\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 21 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["21","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0010500000000000002,"duration_str":"1.05ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`wallet_histories`.`order_price`) as aggregate from`wallet_histories` inner join `customers` as `c` on `wallet_histories`.`customer_id` = `c`.`id` where `wallet_histories`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 21 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","21"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0007199999999999999,"duration_str":"720\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 21 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","21"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":229},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00068,"duration_str":"680\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:229","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 21 and `payment_histories`.`payment_type` = 3 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","21","3"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":231},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00085,"duration_str":"850\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:231","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 23 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["23","2025-08-06 00:00:00","2025-08-06 23:59:59","3","4","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":184},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.02913,"duration_str":"29.13ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:184","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 23 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["23","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":185},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.02197,"duration_str":"21.97ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:185","connection":"tintam"},{"sql":"select sum(`payment_wallets`.`price`) as aggregate from`payment_wallets` inner join `wallet_histories` as `wh` on `wh`.`id` = `payment_wallets`.`order_wallet_id` inner join `customers` as `c` on `wh`.`customer_id` = `c`.`id` where `payment_wallets`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 23","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","23"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":208},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00099,"duration_str":"990\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:208","connection":"tintam"},{"sql":"select sum(`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 23 and `o`.`is_upsale` = 0 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","23","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":219},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0007199999999999999,"duration_str":"720\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `source_id` = 23 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","23"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":220},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00061,"duration_str":"610\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:220","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 23 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["23","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":221},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0005600000000000001,"duration_str":"560\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 23 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["23","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":222},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00051,"duration_str":"510\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 23 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["23","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":223},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00068,"duration_str":"680\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 23 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["23","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":224},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00066,"duration_str":"660\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 23 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["23","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":225},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00074,"duration_str":"740\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:225","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 23 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["23","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":226},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00083,"duration_str":"830\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:226","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 23 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["23","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":227},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00083,"duration_str":"830\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:227","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 23 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["23","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00073,"duration_str":"730\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 23 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["23","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00099,"duration_str":"990\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`wallet_histories`.`order_price`) as aggregate from`wallet_histories` inner join `customers` as `c` on `wallet_histories`.`customer_id` = `c`.`id` where `wallet_histories`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 23 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","23"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00076,"duration_str":"760\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 23 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","23"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":229},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0011,"duration_str":"1.1ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:229","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 23 and `payment_histories`.`payment_type` = 3 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","23","3"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":231},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00087,"duration_str":"870\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:231","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 29 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["29","2025-08-06 00:00:00","2025-08-06 23:59:59","3","4","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":184},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0009699999999999999,"duration_str":"970\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:184","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 29 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["29","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":185},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0008399999999999999,"duration_str":"840\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:185","connection":"tintam"},{"sql":"select sum(`payment_wallets`.`price`) as aggregate from`payment_wallets` inner join `wallet_histories` as `wh` on `wh`.`id` = `payment_wallets`.`order_wallet_id` inner join `customers` as `c` on `wh`.`customer_id` = `c`.`id` where `payment_wallets`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 29","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","29"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":208},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0008,"duration_str":"800\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:208","connection":"tintam"},{"sql":"select sum(`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 29 and `o`.`is_upsale` = 0 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","29","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":219},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0008900000000000001,"duration_str":"890\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `source_id` = 29 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","29"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":220},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00058,"duration_str":"580\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:220","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 29 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["29","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":221},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00067,"duration_str":"670\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 29 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["29","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":222},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0008100000000000001,"duration_str":"810\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 29 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["29","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":223},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0007,"duration_str":"700\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 29 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["29","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":224},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00064,"duration_str":"640\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 29 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["29","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":225},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0006,"duration_str":"600\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:225","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 29 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["29","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":226},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0009699999999999999,"duration_str":"970\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:226","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 29 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["29","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":227},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00222,"duration_str":"2.22ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:227","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 29 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["29","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00085,"duration_str":"850\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 29 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["29","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00092,"duration_str":"920\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`wallet_histories`.`order_price`) as aggregate from`wallet_histories` inner join `customers` as `c` on `wallet_histories`.`customer_id` = `c`.`id` where `wallet_histories`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 29 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","29"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00069,"duration_str":"690\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 29 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","29"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":229},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00091,"duration_str":"910\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:229","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 29 and `payment_histories`.`payment_type` = 3 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","29","3"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":231},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00087,"duration_str":"870\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:231","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 39 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["39","2025-08-06 00:00:00","2025-08-06 23:59:59","3","4","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":184},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00698,"duration_str":"6.98ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:184","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 39 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["39","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":185},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00671,"duration_str":"6.71ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:185","connection":"tintam"},{"sql":"select sum(`payment_wallets`.`price`) as aggregate from`payment_wallets` inner join `wallet_histories` as `wh` on `wh`.`id` = `payment_wallets`.`order_wallet_id` inner join `customers` as `c` on `wh`.`customer_id` = `c`.`id` where `payment_wallets`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 39","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","39"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":208},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0029,"duration_str":"2.9ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:208","connection":"tintam"},{"sql":"select sum(`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 39 and `o`.`is_upsale` = 0 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","39","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":219},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00165,"duration_str":"1.65ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `source_id` = 39 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","39"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":220},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00128,"duration_str":"1.28ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:220","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 39 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["39","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":221},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0011799999999999998,"duration_str":"1.18ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 39 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["39","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":222},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00151,"duration_str":"1.51ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 39 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["39","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":223},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00117,"duration_str":"1.17ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 39 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["39","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":224},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0013,"duration_str":"1.3ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 39 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["39","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":225},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00087,"duration_str":"870\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:225","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 39 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["39","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":226},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0009599999999999999,"duration_str":"960\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:226","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 39 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["39","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":227},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00092,"duration_str":"920\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:227","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 39 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["39","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0009599999999999999,"duration_str":"960\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 39 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["39","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00078,"duration_str":"780\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`wallet_histories`.`order_price`) as aggregate from`wallet_histories` inner join `customers` as `c` on `wallet_histories`.`customer_id` = `c`.`id` where `wallet_histories`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 39 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","39"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00075,"duration_str":"750\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 39 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","39"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":229},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00095,"duration_str":"950\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:229","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 39 and `payment_histories`.`payment_type` = 3 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","39","3"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":231},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00092,"duration_str":"920\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:231","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 40 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["40","2025-08-06 00:00:00","2025-08-06 23:59:59","3","4","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":184},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0166,"duration_str":"16.6ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:184","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 40 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["40","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":185},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.01257,"duration_str":"12.57ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:185","connection":"tintam"},{"sql":"select sum(`payment_wallets`.`price`) as aggregate from`payment_wallets` inner join `wallet_histories` as `wh` on `wh`.`id` = `payment_wallets`.`order_wallet_id` inner join `customers` as `c` on `wh`.`customer_id` = `c`.`id` where `payment_wallets`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 40","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","40"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":208},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00103,"duration_str":"1.03ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:208","connection":"tintam"},{"sql":"select sum(`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 40 and `o`.`is_upsale` = 0 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","40","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":219},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00126,"duration_str":"1.26ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `source_id` = 40 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","40"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":220},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00085,"duration_str":"850\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:220","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 40 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["40","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":221},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00151,"duration_str":"1.51ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 40 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["40","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":222},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00107,"duration_str":"1.07ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 40 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["40","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":223},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00102,"duration_str":"1.02ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 40 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["40","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":224},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00107,"duration_str":"1.07ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 40 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["40","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":225},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00099,"duration_str":"990\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:225","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 40 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["40","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":226},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0011799999999999998,"duration_str":"1.18ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:226","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 40 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["40","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":227},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00094,"duration_str":"940\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:227","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 40 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["40","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00098,"duration_str":"980\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 40 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["40","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0010400000000000001,"duration_str":"1.04ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`wallet_histories`.`order_price`) as aggregate from`wallet_histories` inner join `customers` as `c` on `wallet_histories`.`customer_id` = `c`.`id` where `wallet_histories`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 40 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","40"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00094,"duration_str":"940\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 40 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","40"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":229},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0010400000000000001,"duration_str":"1.04ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:229","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 40 and `payment_histories`.`payment_type` = 3 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","40","3"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":231},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00102,"duration_str":"1.02ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:231","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 51 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["51","2025-08-06 00:00:00","2025-08-06 23:59:59","3","4","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":184},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.01808,"duration_str":"18.08ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:184","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 51 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["51","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":185},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.01533,"duration_str":"15.33ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:185","connection":"tintam"},{"sql":"select sum(`payment_wallets`.`price`) as aggregate from`payment_wallets` inner join `wallet_histories` as `wh` on `wh`.`id` = `payment_wallets`.`order_wallet_id` inner join `customers` as `c` on `wh`.`customer_id` = `c`.`id` where `payment_wallets`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 51","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","51"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":208},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0014199999999999998,"duration_str":"1.42ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:208","connection":"tintam"},{"sql":"select sum(`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 51 and `o`.`is_upsale` = 0 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","51","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":219},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00102,"duration_str":"1.02ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `source_id` = 51 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","51"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":220},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00098,"duration_str":"980\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:220","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 51 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["51","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":221},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0007700000000000001,"duration_str":"770\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 51 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["51","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":222},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00064,"duration_str":"640\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 51 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["51","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":223},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0007199999999999999,"duration_str":"720\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 51 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["51","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":224},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00108,"duration_str":"1.08ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 51 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["51","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":225},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0008100000000000001,"duration_str":"810\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:225","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 51 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["51","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":226},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00076,"duration_str":"760\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:226","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 51 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["51","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":227},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00073,"duration_str":"730\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:227","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 51 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["51","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00095,"duration_str":"950\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 51 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["51","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0008,"duration_str":"800\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`wallet_histories`.`order_price`) as aggregate from`wallet_histories` inner join `customers` as `c` on `wallet_histories`.`customer_id` = `c`.`id` where `wallet_histories`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 51 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","51"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00066,"duration_str":"660\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 51 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","51"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":229},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0010400000000000001,"duration_str":"1.04ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:229","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 51 and `payment_histories`.`payment_type` = 3 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","51","3"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":231},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00085,"duration_str":"850\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:231","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 54 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["54","2025-08-06 00:00:00","2025-08-06 23:59:59","3","4","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":184},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.01312,"duration_str":"13.12ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:184","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 54 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["54","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":185},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.01365,"duration_str":"13.65ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:185","connection":"tintam"},{"sql":"select sum(`payment_wallets`.`price`) as aggregate from`payment_wallets` inner join `wallet_histories` as `wh` on `wh`.`id` = `payment_wallets`.`order_wallet_id` inner join `customers` as `c` on `wh`.`customer_id` = `c`.`id` where `payment_wallets`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 54","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","54"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":208},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0010400000000000001,"duration_str":"1.04ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:208","connection":"tintam"},{"sql":"select sum(`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 54 and `o`.`is_upsale` = 0 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","54","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":219},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00106,"duration_str":"1.06ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `source_id` = 54 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","54"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":220},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00085,"duration_str":"850\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:220","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 54 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["54","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":221},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0010400000000000001,"duration_str":"1.04ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 54 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["54","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":222},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0007700000000000001,"duration_str":"770\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 54 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["54","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":223},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00083,"duration_str":"830\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 54 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["54","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":224},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00102,"duration_str":"1.02ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 54 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["54","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":225},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00115,"duration_str":"1.15ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:225","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 54 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["54","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":226},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00065,"duration_str":"650\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:226","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 54 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["54","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":227},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00062,"duration_str":"620\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:227","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 54 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["54","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00067,"duration_str":"670\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 54 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["54","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00067,"duration_str":"670\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`wallet_histories`.`order_price`) as aggregate from`wallet_histories` inner join `customers` as `c` on `wallet_histories`.`customer_id` = `c`.`id` where `wallet_histories`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 54 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","54"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00058,"duration_str":"580\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 54 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","54"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":229},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00066,"duration_str":"660\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:229","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 54 and `payment_histories`.`payment_type` = 3 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","54","3"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":231},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00067,"duration_str":"670\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:231","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 55 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["55","2025-08-06 00:00:00","2025-08-06 23:59:59","3","4","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":184},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00936,"duration_str":"9.36ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:184","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 55 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["55","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":185},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00856,"duration_str":"8.56ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:185","connection":"tintam"},{"sql":"select sum(`payment_wallets`.`price`) as aggregate from`payment_wallets` inner join `wallet_histories` as `wh` on `wh`.`id` = `payment_wallets`.`order_wallet_id` inner join `customers` as `c` on `wh`.`customer_id` = `c`.`id` where `payment_wallets`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 55","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","55"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":208},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00113,"duration_str":"1.13ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:208","connection":"tintam"},{"sql":"select sum(`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 55 and `o`.`is_upsale` = 0 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","55","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":219},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00086,"duration_str":"860\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `source_id` = 55 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","55"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":220},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00076,"duration_str":"760\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:220","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 55 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["55","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":221},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00086,"duration_str":"860\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 55 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["55","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":222},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00088,"duration_str":"880\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 55 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["55","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":223},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00069,"duration_str":"690\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 55 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["55","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":224},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00079,"duration_str":"790\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 55 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["55","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":225},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00082,"duration_str":"820\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:225","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 55 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["55","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":226},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0008900000000000001,"duration_str":"890\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:226","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 55 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["55","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":227},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00098,"duration_str":"980\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:227","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 55 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["55","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0007700000000000001,"duration_str":"770\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 55 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["55","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00079,"duration_str":"790\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`wallet_histories`.`order_price`) as aggregate from`wallet_histories` inner join `customers` as `c` on `wallet_histories`.`customer_id` = `c`.`id` where `wallet_histories`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 55 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","55"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0008399999999999999,"duration_str":"840\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 55 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","55"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":229},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0008900000000000001,"duration_str":"890\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:229","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 55 and `payment_histories`.`payment_type` = 3 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","55","3"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":231},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0010400000000000001,"duration_str":"1.04ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:231","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 57 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["57","2025-08-06 00:00:00","2025-08-06 23:59:59","3","4","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":184},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00076,"duration_str":"760\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:184","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 57 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["57","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":185},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00058,"duration_str":"580\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:185","connection":"tintam"},{"sql":"select sum(`payment_wallets`.`price`) as aggregate from`payment_wallets` inner join `wallet_histories` as `wh` on `wh`.`id` = `payment_wallets`.`order_wallet_id` inner join `customers` as `c` on `wh`.`customer_id` = `c`.`id` where `payment_wallets`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 57","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","57"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":208},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00058,"duration_str":"580\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:208","connection":"tintam"},{"sql":"select sum(`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 57 and `o`.`is_upsale` = 0 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","57","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":219},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00085,"duration_str":"850\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `source_id` = 57 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","57"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":220},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00068,"duration_str":"680\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:220","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 57 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["57","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":221},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00094,"duration_str":"940\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 57 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["57","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":222},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00121,"duration_str":"1.21ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 57 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["57","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":223},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0009,"duration_str":"900\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 57 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["57","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":224},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00087,"duration_str":"870\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 57 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["57","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":225},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00088,"duration_str":"880\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:225","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 57 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["57","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":226},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00101,"duration_str":"1.01ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:226","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 57 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["57","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":227},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00085,"duration_str":"850\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:227","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 57 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["57","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00079,"duration_str":"790\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 57 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["57","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0008399999999999999,"duration_str":"840\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`wallet_histories`.`order_price`) as aggregate from`wallet_histories` inner join `customers` as `c` on `wallet_histories`.`customer_id` = `c`.`id` where `wallet_histories`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 57 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","57"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00076,"duration_str":"760\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 57 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","57"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":229},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00152,"duration_str":"1.52ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:229","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 57 and `payment_histories`.`payment_type` = 3 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","57","3"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":231},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0007099999999999999,"duration_str":"710\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:231","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 60 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["60","2025-08-06 00:00:00","2025-08-06 23:59:59","3","4","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":184},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0105,"duration_str":"10.5ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:184","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 60 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["60","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":185},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.01785,"duration_str":"17.85ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:185","connection":"tintam"},{"sql":"select sum(`payment_wallets`.`price`) as aggregate from`payment_wallets` inner join `wallet_histories` as `wh` on `wh`.`id` = `payment_wallets`.`order_wallet_id` inner join `customers` as `c` on `wh`.`customer_id` = `c`.`id` where `payment_wallets`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 60","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","60"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":208},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00091,"duration_str":"910\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:208","connection":"tintam"},{"sql":"select sum(`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 60 and `o`.`is_upsale` = 0 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","60","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":219},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00083,"duration_str":"830\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `source_id` = 60 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","60"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":220},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0008100000000000001,"duration_str":"810\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:220","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 60 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["60","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":221},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00082,"duration_str":"820\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 60 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["60","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":222},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00095,"duration_str":"950\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 60 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["60","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":223},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00065,"duration_str":"650\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 60 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["60","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":224},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0007,"duration_str":"700\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 60 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["60","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":225},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00079,"duration_str":"790\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:225","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 60 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["60","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":226},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00061,"duration_str":"610\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:226","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 60 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["60","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":227},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00063,"duration_str":"630\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:227","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 60 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["60","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0007,"duration_str":"700\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 60 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["60","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0006,"duration_str":"600\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`wallet_histories`.`order_price`) as aggregate from`wallet_histories` inner join `customers` as `c` on `wallet_histories`.`customer_id` = `c`.`id` where `wallet_histories`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 60 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","60"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00053,"duration_str":"530\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 60 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","60"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":229},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00063,"duration_str":"630\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:229","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 60 and `payment_histories`.`payment_type` = 3 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","60","3"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":231},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00085,"duration_str":"850\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:231","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 61 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["61","2025-08-06 00:00:00","2025-08-06 23:59:59","3","4","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":184},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.01058,"duration_str":"10.58ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:184","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 61 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["61","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":185},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00526,"duration_str":"5.26ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:185","connection":"tintam"},{"sql":"select sum(`payment_wallets`.`price`) as aggregate from`payment_wallets` inner join `wallet_histories` as `wh` on `wh`.`id` = `payment_wallets`.`order_wallet_id` inner join `customers` as `c` on `wh`.`customer_id` = `c`.`id` where `payment_wallets`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 61","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","61"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":208},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00075,"duration_str":"750\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:208","connection":"tintam"},{"sql":"select sum(`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 61 and `o`.`is_upsale` = 0 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","61","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":219},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00074,"duration_str":"740\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `source_id` = 61 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","61"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":220},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00066,"duration_str":"660\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:220","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 61 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["61","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":221},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0007099999999999999,"duration_str":"710\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 61 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["61","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":222},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0008100000000000001,"duration_str":"810\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 61 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["61","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":223},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00065,"duration_str":"650\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 61 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["61","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":224},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00058,"duration_str":"580\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 61 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["61","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":225},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00161,"duration_str":"1.61ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:225","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 61 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["61","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":226},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0008399999999999999,"duration_str":"840\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:226","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 61 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["61","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":227},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00087,"duration_str":"870\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:227","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 61 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["61","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00106,"duration_str":"1.06ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 61 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["61","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0009,"duration_str":"900\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`wallet_histories`.`order_price`) as aggregate from`wallet_histories` inner join `customers` as `c` on `wallet_histories`.`customer_id` = `c`.`id` where `wallet_histories`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 61 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","61"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00076,"duration_str":"760\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 61 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","61"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":229},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00088,"duration_str":"880\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:229","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 61 and `payment_histories`.`payment_type` = 3 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","61","3"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":231},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0008399999999999999,"duration_str":"840\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:231","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 62 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["62","2025-08-06 00:00:00","2025-08-06 23:59:59","3","4","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":184},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00099,"duration_str":"990\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:184","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 62 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["62","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":185},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00086,"duration_str":"860\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:185","connection":"tintam"},{"sql":"select sum(`payment_wallets`.`price`) as aggregate from`payment_wallets` inner join `wallet_histories` as `wh` on `wh`.`id` = `payment_wallets`.`order_wallet_id` inner join `customers` as `c` on `wh`.`customer_id` = `c`.`id` where `payment_wallets`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 62","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","62"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":208},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00069,"duration_str":"690\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:208","connection":"tintam"},{"sql":"select sum(`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 62 and `o`.`is_upsale` = 0 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","62","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":219},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00087,"duration_str":"870\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `source_id` = 62 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","62"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":220},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0008399999999999999,"duration_str":"840\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:220","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 62 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["62","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":221},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00074,"duration_str":"740\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 62 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["62","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":222},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00074,"duration_str":"740\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 62 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["62","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":223},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00066,"duration_str":"660\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 62 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["62","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":224},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00076,"duration_str":"760\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 62 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["62","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":225},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00073,"duration_str":"730\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:225","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 62 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["62","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":226},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00064,"duration_str":"640\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:226","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 62 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["62","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":227},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00066,"duration_str":"660\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:227","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 62 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["62","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00075,"duration_str":"750\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 62 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["62","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0008399999999999999,"duration_str":"840\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`wallet_histories`.`order_price`) as aggregate from`wallet_histories` inner join `customers` as `c` on `wallet_histories`.`customer_id` = `c`.`id` where `wallet_histories`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 62 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","62"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00083,"duration_str":"830\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 62 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","62"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":229},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00101,"duration_str":"1.01ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:229","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 62 and `payment_histories`.`payment_type` = 3 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","62","3"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":231},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00101,"duration_str":"1.01ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:231","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 63 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["63","2025-08-06 00:00:00","2025-08-06 23:59:59","3","4","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":184},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.01428,"duration_str":"14.28ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:184","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 63 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["63","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":185},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.01411,"duration_str":"14.11ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:185","connection":"tintam"},{"sql":"select sum(`payment_wallets`.`price`) as aggregate from`payment_wallets` inner join `wallet_histories` as `wh` on `wh`.`id` = `payment_wallets`.`order_wallet_id` inner join `customers` as `c` on `wh`.`customer_id` = `c`.`id` where `payment_wallets`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 63","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","63"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":208},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0011,"duration_str":"1.1ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:208","connection":"tintam"},{"sql":"select sum(`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 63 and `o`.`is_upsale` = 0 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","63","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":219},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0033599999999999997,"duration_str":"3.36ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `source_id` = 63 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","63"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":220},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00109,"duration_str":"1.09ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:220","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 63 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["63","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":221},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00086,"duration_str":"860\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 63 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["63","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":222},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00083,"duration_str":"830\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 63 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["63","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":223},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00075,"duration_str":"750\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 63 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["63","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":224},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0008900000000000001,"duration_str":"890\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 63 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["63","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":225},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0008,"duration_str":"800\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:225","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 63 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["63","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":226},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00075,"duration_str":"750\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:226","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 63 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["63","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":227},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00085,"duration_str":"850\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:227","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 63 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["63","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00086,"duration_str":"860\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 63 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["63","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00076,"duration_str":"760\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`wallet_histories`.`order_price`) as aggregate from`wallet_histories` inner join `customers` as `c` on `wallet_histories`.`customer_id` = `c`.`id` where `wallet_histories`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 63 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","63"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0007,"duration_str":"700\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 63 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","63"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":229},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00082,"duration_str":"820\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:229","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 63 and `payment_histories`.`payment_type` = 3 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","63","3"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":231},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0009,"duration_str":"900\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:231","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 65 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["65","2025-08-06 00:00:00","2025-08-06 23:59:59","3","4","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":184},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00651,"duration_str":"6.51ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:184","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 65 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["65","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":185},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.008199999999999999,"duration_str":"8.2ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:185","connection":"tintam"},{"sql":"select sum(`payment_wallets`.`price`) as aggregate from`payment_wallets` inner join `wallet_histories` as `wh` on `wh`.`id` = `payment_wallets`.`order_wallet_id` inner join `customers` as `c` on `wh`.`customer_id` = `c`.`id` where `payment_wallets`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 65","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","65"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":208},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.001,"duration_str":"1ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:208","connection":"tintam"},{"sql":"select sum(`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 65 and `o`.`is_upsale` = 0 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","65","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":219},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00079,"duration_str":"790\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `source_id` = 65 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","65"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":220},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0009699999999999999,"duration_str":"970\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:220","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 65 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["65","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":221},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0007199999999999999,"duration_str":"720\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 65 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["65","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":222},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0007199999999999999,"duration_str":"720\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 65 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["65","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":223},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00073,"duration_str":"730\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 65 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["65","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":224},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00086,"duration_str":"860\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 65 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["65","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":225},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0007,"duration_str":"700\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:225","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 65 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["65","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":226},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00061,"duration_str":"610\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:226","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 65 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["65","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":227},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00074,"duration_str":"740\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:227","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 65 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["65","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0008,"duration_str":"800\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 65 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["65","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0009699999999999999,"duration_str":"970\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`wallet_histories`.`order_price`) as aggregate from`wallet_histories` inner join `customers` as `c` on `wallet_histories`.`customer_id` = `c`.`id` where `wallet_histories`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 65 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","65"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00525,"duration_str":"5.25ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 65 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","65"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":229},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00092,"duration_str":"920\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:229","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 65 and `payment_histories`.`payment_type` = 3 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","65","3"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":231},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00079,"duration_str":"790\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:231","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 66 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["66","2025-08-06 00:00:00","2025-08-06 23:59:59","3","4","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":184},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00085,"duration_str":"850\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:184","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 66 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["66","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":185},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00075,"duration_str":"750\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:185","connection":"tintam"},{"sql":"select sum(`payment_wallets`.`price`) as aggregate from`payment_wallets` inner join `wallet_histories` as `wh` on `wh`.`id` = `payment_wallets`.`order_wallet_id` inner join `customers` as `c` on `wh`.`customer_id` = `c`.`id` where `payment_wallets`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 66","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","66"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":208},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00067,"duration_str":"670\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:208","connection":"tintam"},{"sql":"select sum(`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 66 and `o`.`is_upsale` = 0 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","66","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":219},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00076,"duration_str":"760\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `source_id` = 66 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","66"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":220},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00065,"duration_str":"650\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:220","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 66 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["66","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":221},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00074,"duration_str":"740\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 66 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["66","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":222},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0009599999999999999,"duration_str":"960\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 66 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["66","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":223},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0009,"duration_str":"900\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 66 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["66","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":224},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0008,"duration_str":"800\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 66 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["66","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":225},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0008399999999999999,"duration_str":"840\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:225","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 66 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["66","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":226},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00082,"duration_str":"820\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:226","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 66 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["66","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":227},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00086,"duration_str":"860\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:227","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 66 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["66","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00078,"duration_str":"780\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 66 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["66","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0008399999999999999,"duration_str":"840\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`wallet_histories`.`order_price`) as aggregate from`wallet_histories` inner join `customers` as `c` on `wallet_histories`.`customer_id` = `c`.`id` where `wallet_histories`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 66 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","66"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00064,"duration_str":"640\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 66 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","66"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":229},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00132,"duration_str":"1.32ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:229","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 66 and `payment_histories`.`payment_type` = 3 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","66","3"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":231},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0008900000000000001,"duration_str":"890\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:231","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 67 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["67","2025-08-06 00:00:00","2025-08-06 23:59:59","3","4","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":184},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.015009999999999999,"duration_str":"15.01ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:184","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 67 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["67","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":185},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.014150000000000001,"duration_str":"14.15ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:185","connection":"tintam"},{"sql":"select sum(`payment_wallets`.`price`) as aggregate from`payment_wallets` inner join `wallet_histories` as `wh` on `wh`.`id` = `payment_wallets`.`order_wallet_id` inner join `customers` as `c` on `wh`.`customer_id` = `c`.`id` where `payment_wallets`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 67","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","67"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":208},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00141,"duration_str":"1.41ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:208","connection":"tintam"},{"sql":"select sum(`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 67 and `o`.`is_upsale` = 0 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","67","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":219},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00114,"duration_str":"1.14ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `source_id` = 67 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","67"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":220},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0008100000000000001,"duration_str":"810\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:220","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 67 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["67","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":221},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00082,"duration_str":"820\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 67 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["67","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":222},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00087,"duration_str":"870\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 67 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["67","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":223},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0008,"duration_str":"800\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 67 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["67","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":224},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.001,"duration_str":"1ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 67 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["67","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":225},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00078,"duration_str":"780\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:225","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 67 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["67","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":226},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00073,"duration_str":"730\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:226","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 67 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["67","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":227},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00094,"duration_str":"940\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:227","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 67 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["67","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00095,"duration_str":"950\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 67 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["67","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00083,"duration_str":"830\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`wallet_histories`.`order_price`) as aggregate from`wallet_histories` inner join `customers` as `c` on `wallet_histories`.`customer_id` = `c`.`id` where `wallet_histories`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 67 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","67"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0007700000000000001,"duration_str":"770\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 67 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","67"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":229},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0009,"duration_str":"900\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:229","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 67 and `payment_histories`.`payment_type` = 3 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","67","3"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":231},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00101,"duration_str":"1.01ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:231","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 68 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["68","2025-08-06 00:00:00","2025-08-06 23:59:59","3","4","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":184},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0049900000000000005,"duration_str":"4.99ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:184","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 68 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["68","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":185},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00419,"duration_str":"4.19ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:185","connection":"tintam"},{"sql":"select sum(`payment_wallets`.`price`) as aggregate from`payment_wallets` inner join `wallet_histories` as `wh` on `wh`.`id` = `payment_wallets`.`order_wallet_id` inner join `customers` as `c` on `wh`.`customer_id` = `c`.`id` where `payment_wallets`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 68","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","68"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":208},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00095,"duration_str":"950\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:208","connection":"tintam"},{"sql":"select sum(`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 68 and `o`.`is_upsale` = 0 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","68","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":219},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00094,"duration_str":"940\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `source_id` = 68 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","68"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":220},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00088,"duration_str":"880\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:220","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 68 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["68","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":221},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00082,"duration_str":"820\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 68 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["68","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":222},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00075,"duration_str":"750\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 68 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["68","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":223},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0011899999999999999,"duration_str":"1.19ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 68 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["68","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":224},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00079,"duration_str":"790\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 68 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["68","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":225},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00055,"duration_str":"550\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:225","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 68 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["68","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":226},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0005899999999999999,"duration_str":"590\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:226","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 68 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["68","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":227},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0008,"duration_str":"800\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:227","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 68 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["68","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00067,"duration_str":"670\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 68 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["68","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00069,"duration_str":"690\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`wallet_histories`.`order_price`) as aggregate from`wallet_histories` inner join `customers` as `c` on `wallet_histories`.`customer_id` = `c`.`id` where `wallet_histories`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 68 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","68"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00061,"duration_str":"610\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 68 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","68"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":229},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00078,"duration_str":"780\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:229","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 68 and `payment_histories`.`payment_type` = 3 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","68","3"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":231},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00068,"duration_str":"680\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:231","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 69 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["69","2025-08-06 00:00:00","2025-08-06 23:59:59","3","4","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":184},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.02609,"duration_str":"26.09ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:184","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 69 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["69","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":185},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.01814,"duration_str":"18.14ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:185","connection":"tintam"},{"sql":"select sum(`payment_wallets`.`price`) as aggregate from`payment_wallets` inner join `wallet_histories` as `wh` on `wh`.`id` = `payment_wallets`.`order_wallet_id` inner join `customers` as `c` on `wh`.`customer_id` = `c`.`id` where `payment_wallets`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 69","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","69"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":208},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0012900000000000001,"duration_str":"1.29ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:208","connection":"tintam"},{"sql":"select sum(`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 69 and `o`.`is_upsale` = 0 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","69","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":219},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.001,"duration_str":"1ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `source_id` = 69 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","69"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":220},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0009,"duration_str":"900\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:220","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 69 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["69","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":221},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00087,"duration_str":"870\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 69 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["69","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":222},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.001,"duration_str":"1ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 69 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["69","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":223},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00088,"duration_str":"880\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 69 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["69","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":224},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00094,"duration_str":"940\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 69 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["69","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":225},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00078,"duration_str":"780\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:225","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 69 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["69","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":226},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00086,"duration_str":"860\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:226","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 69 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["69","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":227},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00095,"duration_str":"950\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:227","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 69 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["69","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00092,"duration_str":"920\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 69 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["69","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00082,"duration_str":"820\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`wallet_histories`.`order_price`) as aggregate from`wallet_histories` inner join `customers` as `c` on `wallet_histories`.`customer_id` = `c`.`id` where `wallet_histories`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 69 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","69"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00061,"duration_str":"610\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 69 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","69"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":229},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0007099999999999999,"duration_str":"710\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:229","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 69 and `payment_histories`.`payment_type` = 3 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","69","3"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":231},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00068,"duration_str":"680\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:231","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 70 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["70","2025-08-06 00:00:00","2025-08-06 23:59:59","3","4","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":184},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00074,"duration_str":"740\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:184","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 70 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["70","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":185},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00065,"duration_str":"650\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:185","connection":"tintam"},{"sql":"select sum(`payment_wallets`.`price`) as aggregate from`payment_wallets` inner join `wallet_histories` as `wh` on `wh`.`id` = `payment_wallets`.`order_wallet_id` inner join `customers` as `c` on `wh`.`customer_id` = `c`.`id` where `payment_wallets`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 70","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","70"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":208},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00064,"duration_str":"640\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:208","connection":"tintam"},{"sql":"select sum(`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 70 and `o`.`is_upsale` = 0 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","70","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":219},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0007199999999999999,"duration_str":"720\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `source_id` = 70 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","70"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":220},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00065,"duration_str":"650\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:220","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 70 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["70","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":221},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00069,"duration_str":"690\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 70 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["70","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":222},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00068,"duration_str":"680\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 70 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["70","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":223},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0008100000000000001,"duration_str":"810\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 70 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["70","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":224},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00061,"duration_str":"610\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 70 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["70","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":225},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00094,"duration_str":"940\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:225","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 70 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["70","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":226},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0007199999999999999,"duration_str":"720\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:226","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 70 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["70","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":227},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00078,"duration_str":"780\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:227","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 70 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["70","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0007,"duration_str":"700\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 70 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["70","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0005899999999999999,"duration_str":"590\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`wallet_histories`.`order_price`) as aggregate from`wallet_histories` inner join `customers` as `c` on `wallet_histories`.`customer_id` = `c`.`id` where `wallet_histories`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 70 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","70"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00054,"duration_str":"540\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 70 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","70"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":229},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0005899999999999999,"duration_str":"590\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:229","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 70 and `payment_histories`.`payment_type` = 3 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","70","3"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":231},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00063,"duration_str":"630\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:231","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 73 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["73","2025-08-06 00:00:00","2025-08-06 23:59:59","3","4","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":184},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.01208,"duration_str":"12.08ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:184","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 73 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["73","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":185},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00985,"duration_str":"9.85ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:185","connection":"tintam"},{"sql":"select sum(`payment_wallets`.`price`) as aggregate from`payment_wallets` inner join `wallet_histories` as `wh` on `wh`.`id` = `payment_wallets`.`order_wallet_id` inner join `customers` as `c` on `wh`.`customer_id` = `c`.`id` where `payment_wallets`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 73","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","73"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":208},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00075,"duration_str":"750\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:208","connection":"tintam"},{"sql":"select sum(`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 73 and `o`.`is_upsale` = 0 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","73","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":219},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00076,"duration_str":"760\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `source_id` = 73 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","73"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":220},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00067,"duration_str":"670\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:220","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 73 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["73","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":221},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0007,"duration_str":"700\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 73 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["73","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":222},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00068,"duration_str":"680\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 73 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["73","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":223},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00057,"duration_str":"570\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 73 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["73","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":224},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00062,"duration_str":"620\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 73 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["73","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":225},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00073,"duration_str":"730\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:225","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 73 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["73","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":226},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00099,"duration_str":"990\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:226","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 73 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["73","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":227},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00068,"duration_str":"680\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:227","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 73 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["73","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0012900000000000001,"duration_str":"1.29ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 73 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["73","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00091,"duration_str":"910\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`wallet_histories`.`order_price`) as aggregate from`wallet_histories` inner join `customers` as `c` on `wallet_histories`.`customer_id` = `c`.`id` where `wallet_histories`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 73 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","73"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0010400000000000001,"duration_str":"1.04ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 73 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","73"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":229},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0007700000000000001,"duration_str":"770\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:229","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 73 and `payment_histories`.`payment_type` = 3 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","73","3"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":231},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0007199999999999999,"duration_str":"720\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:231","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 76 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["76","2025-08-06 00:00:00","2025-08-06 23:59:59","3","4","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":184},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0008,"duration_str":"800\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:184","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 76 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["76","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":185},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00068,"duration_str":"680\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:185","connection":"tintam"},{"sql":"select sum(`payment_wallets`.`price`) as aggregate from`payment_wallets` inner join `wallet_histories` as `wh` on `wh`.`id` = `payment_wallets`.`order_wallet_id` inner join `customers` as `c` on `wh`.`customer_id` = `c`.`id` where `payment_wallets`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 76","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","76"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":208},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00066,"duration_str":"660\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:208","connection":"tintam"},{"sql":"select sum(`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 76 and `o`.`is_upsale` = 0 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","76","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":219},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0010500000000000002,"duration_str":"1.05ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `source_id` = 76 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","76"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":220},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0007700000000000001,"duration_str":"770\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:220","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 76 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["76","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":221},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00085,"duration_str":"850\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 76 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["76","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":222},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.001,"duration_str":"1ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 76 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["76","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":223},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00073,"duration_str":"730\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 76 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["76","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":224},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0008100000000000001,"duration_str":"810\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 76 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["76","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":225},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00086,"duration_str":"860\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:225","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 76 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["76","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":226},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00086,"duration_str":"860\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:226","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 76 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["76","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":227},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00064,"duration_str":"640\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:227","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 76 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["76","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00076,"duration_str":"760\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 76 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["76","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00068,"duration_str":"680\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`wallet_histories`.`order_price`) as aggregate from`wallet_histories` inner join `customers` as `c` on `wallet_histories`.`customer_id` = `c`.`id` where `wallet_histories`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 76 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","76"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0006,"duration_str":"600\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 76 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","76"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":229},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0007199999999999999,"duration_str":"720\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:229","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 76 and `payment_histories`.`payment_type` = 3 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","76","3"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":231},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00061,"duration_str":"610\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:231","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 77 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["77","2025-08-06 00:00:00","2025-08-06 23:59:59","3","4","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":184},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.01249,"duration_str":"12.49ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:184","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 77 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["77","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":185},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.01108,"duration_str":"11.08ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:185","connection":"tintam"},{"sql":"select sum(`payment_wallets`.`price`) as aggregate from`payment_wallets` inner join `wallet_histories` as `wh` on `wh`.`id` = `payment_wallets`.`order_wallet_id` inner join `customers` as `c` on `wh`.`customer_id` = `c`.`id` where `payment_wallets`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 77","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","77"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":208},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00109,"duration_str":"1.09ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:208","connection":"tintam"},{"sql":"select sum(`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 77 and `o`.`is_upsale` = 0 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","77","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":219},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00087,"duration_str":"870\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `source_id` = 77 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","77"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":220},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00079,"duration_str":"790\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:220","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 77 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["77","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":221},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00086,"duration_str":"860\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 77 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["77","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":222},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00068,"duration_str":"680\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 77 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["77","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":223},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00074,"duration_str":"740\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 77 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["77","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":224},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00079,"duration_str":"790\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 77 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["77","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":225},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0008,"duration_str":"800\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:225","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 77 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["77","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":226},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0008399999999999999,"duration_str":"840\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:226","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 77 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["77","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":227},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00095,"duration_str":"950\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:227","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 77 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["77","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00075,"duration_str":"750\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 77 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["77","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0015300000000000001,"duration_str":"1.53ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`wallet_histories`.`order_price`) as aggregate from`wallet_histories` inner join `customers` as `c` on `wallet_histories`.`customer_id` = `c`.`id` where `wallet_histories`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 77 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","77"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00082,"duration_str":"820\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 77 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","77"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":229},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00088,"duration_str":"880\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:229","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 77 and `payment_histories`.`payment_type` = 3 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","77","3"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":231},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00093,"duration_str":"930\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:231","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 78 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["78","2025-08-06 00:00:00","2025-08-06 23:59:59","3","4","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":184},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.04306,"duration_str":"43.06ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:184","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 78 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["78","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":185},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.02145,"duration_str":"21.45ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:185","connection":"tintam"},{"sql":"select sum(`payment_wallets`.`price`) as aggregate from`payment_wallets` inner join `wallet_histories` as `wh` on `wh`.`id` = `payment_wallets`.`order_wallet_id` inner join `customers` as `c` on `wh`.`customer_id` = `c`.`id` where `payment_wallets`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 78","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","78"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":208},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0010400000000000001,"duration_str":"1.04ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:208","connection":"tintam"},{"sql":"select sum(`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 78 and `o`.`is_upsale` = 0 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","78","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":219},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0009599999999999999,"duration_str":"960\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `source_id` = 78 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","78"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":220},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00075,"duration_str":"750\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:220","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 78 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["78","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":221},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00068,"duration_str":"680\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 78 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["78","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":222},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0007099999999999999,"duration_str":"710\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 78 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["78","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":223},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0007099999999999999,"duration_str":"710\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 78 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["78","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":224},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00088,"duration_str":"880\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 78 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["78","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":225},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00082,"duration_str":"820\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:225","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 78 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["78","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":226},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0007700000000000001,"duration_str":"770\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:226","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 78 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["78","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":227},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0008100000000000001,"duration_str":"810\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:227","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 78 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["78","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00083,"duration_str":"830\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 78 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["78","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00106,"duration_str":"1.06ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`wallet_histories`.`order_price`) as aggregate from`wallet_histories` inner join `customers` as `c` on `wallet_histories`.`customer_id` = `c`.`id` where `wallet_histories`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 78 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","78"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00073,"duration_str":"730\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 78 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","78"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":229},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00083,"duration_str":"830\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:229","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 78 and `payment_histories`.`payment_type` = 3 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","78","3"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":231},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0008399999999999999,"duration_str":"840\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:231","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 79 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["79","2025-08-06 00:00:00","2025-08-06 23:59:59","3","4","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":184},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0152,"duration_str":"15.2ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:184","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 79 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["79","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":185},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.01062,"duration_str":"10.62ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:185","connection":"tintam"},{"sql":"select sum(`payment_wallets`.`price`) as aggregate from`payment_wallets` inner join `wallet_histories` as `wh` on `wh`.`id` = `payment_wallets`.`order_wallet_id` inner join `customers` as `c` on `wh`.`customer_id` = `c`.`id` where `payment_wallets`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 79","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","79"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":208},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0012,"duration_str":"1.2ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:208","connection":"tintam"},{"sql":"select sum(`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 79 and `o`.`is_upsale` = 0 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","79","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":219},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00125,"duration_str":"1.25ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `source_id` = 79 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","79"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":220},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00102,"duration_str":"1.02ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:220","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 79 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["79","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":221},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00086,"duration_str":"860\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 79 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["79","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":222},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00069,"duration_str":"690\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 79 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["79","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":223},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0008900000000000001,"duration_str":"890\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 79 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["79","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":224},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0008900000000000001,"duration_str":"890\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 79 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["79","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":225},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00083,"duration_str":"830\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:225","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 79 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["79","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":226},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0008100000000000001,"duration_str":"810\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:226","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 79 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["79","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":227},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00092,"duration_str":"920\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:227","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 79 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["79","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00113,"duration_str":"1.13ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 79 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["79","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00076,"duration_str":"760\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`wallet_histories`.`order_price`) as aggregate from`wallet_histories` inner join `customers` as `c` on `wallet_histories`.`customer_id` = `c`.`id` where `wallet_histories`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 79 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","79"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00068,"duration_str":"680\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 79 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","79"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":229},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00107,"duration_str":"1.07ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:229","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 79 and `payment_histories`.`payment_type` = 3 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","79","3"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":231},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00094,"duration_str":"940\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:231","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 80 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["80","2025-08-06 00:00:00","2025-08-06 23:59:59","3","4","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":184},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.01568,"duration_str":"15.68ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:184","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 80 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["80","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":185},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.024460000000000003,"duration_str":"24.46ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:185","connection":"tintam"},{"sql":"select sum(`payment_wallets`.`price`) as aggregate from`payment_wallets` inner join `wallet_histories` as `wh` on `wh`.`id` = `payment_wallets`.`order_wallet_id` inner join `customers` as `c` on `wh`.`customer_id` = `c`.`id` where `payment_wallets`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 80","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","80"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":208},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0012,"duration_str":"1.2ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:208","connection":"tintam"},{"sql":"select sum(`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 80 and `o`.`is_upsale` = 0 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","80","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":219},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0013700000000000001,"duration_str":"1.37ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `source_id` = 80 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","80"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":220},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0009,"duration_str":"900\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:220","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 80 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["80","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":221},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0011200000000000001,"duration_str":"1.12ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 80 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["80","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":222},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00094,"duration_str":"940\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 80 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["80","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":223},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00108,"duration_str":"1.08ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 80 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["80","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":224},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00114,"duration_str":"1.14ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 80 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["80","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":225},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00099,"duration_str":"990\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:225","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 80 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["80","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":226},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0010500000000000002,"duration_str":"1.05ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:226","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 80 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["80","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":227},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0012900000000000001,"duration_str":"1.29ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:227","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 80 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["80","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00252,"duration_str":"2.52ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 80 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["80","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00115,"duration_str":"1.15ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`wallet_histories`.`order_price`) as aggregate from`wallet_histories` inner join `customers` as `c` on `wallet_histories`.`customer_id` = `c`.`id` where `wallet_histories`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 80 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","80"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0009699999999999999,"duration_str":"970\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 80 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","80"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":229},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00102,"duration_str":"1.02ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:229","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 80 and `payment_histories`.`payment_type` = 3 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","80","3"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":231},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00109,"duration_str":"1.09ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:231","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 82 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["82","2025-08-06 00:00:00","2025-08-06 23:59:59","3","4","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":184},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.023969999999999998,"duration_str":"23.97ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:184","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 82 and `schedules`.`date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["82","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":185},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.01291,"duration_str":"12.91ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:185","connection":"tintam"},{"sql":"select sum(`payment_wallets`.`price`) as aggregate from`payment_wallets` inner join `wallet_histories` as `wh` on `wh`.`id` = `payment_wallets`.`order_wallet_id` inner join `customers` as `c` on `wh`.`customer_id` = `c`.`id` where `payment_wallets`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 82","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","82"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":208},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00124,"duration_str":"1.24ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:208","connection":"tintam"},{"sql":"select sum(`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 82 and `o`.`is_upsale` = 0 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","82","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":219},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0010500000000000002,"duration_str":"1.05ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `source_id` = 82 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","82"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":220},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00106,"duration_str":"1.06ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:220","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 82 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["82","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":221},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00126,"duration_str":"1.26ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 82 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["82","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":222},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0017,"duration_str":"1.7ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 82 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["82","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":223},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00155,"duration_str":"1.55ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 82 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["82","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":224},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0009699999999999999,"duration_str":"970\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 82 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["82","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":225},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00094,"duration_str":"940\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:225","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 82 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["82","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":226},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0010500000000000002,"duration_str":"1.05ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:226","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 82 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["82","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":227},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00098,"duration_str":"980\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:227","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 82 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["82","2025-08-06 00:00:00","2025-08-06 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00101,"duration_str":"1.01ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 82 and `orders`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["82","2025-08-06 00:00:00","2025-08-06 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00107,"duration_str":"1.07ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`wallet_histories`.`order_price`) as aggregate from`wallet_histories` inner join `customers` as `c` on `wallet_histories`.`customer_id` = `c`.`id` where `wallet_histories`.`created_at` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 82 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","82"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00087,"duration_str":"870\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 82 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","82"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":229},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00123,"duration_str":"1.23ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:229","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-06 00:00:00' and '2025-08-06 23:59:59' and `c`.`source_id` = 82 and `payment_histories`.`payment_type` = 3 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-06 00:00:00","2025-08-06 23:59:59","82","3"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":231},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00123,"duration_str":"1.23ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:231","connection":"tintam"}]},"models":{"data":{"App\\Models\\Status":26,"App\\Models\\Role":1,"App\\User":1,"App\\Models\\Location":2},"count":30},"swiftmailer_mails":{"count":0,"mails":[]},"gate":{"count":0,"messages":[]},"session":{"_token":"XpsXm4n6Cisi2wSpHR6xOWOL5n6p26TvBjm24uO9","_flash":"array:2 [\n  \"old\" => []\n  \"new\" => []\n]","url":"array:1 [\n  \"intended\" => \"https:\/\/tintam.flyspa.vn\/customers\"\n]","_previous":"array:1 [\n  \"url\" => \"https:\/\/tintam.flyspa.vn\/report\/branch-sources\"\n]","login_web_59ba36addc2b2f9401580f014c7f58ea4e30989d":"111","PHPDEBUGBAR_STACK_DATA":"[]"},"request":{"path_info":"\/report\/branch-sources","status_code":"<pre class=sf-dump id=sf-dump-465133596 data-indent-pad=\"  \"><span class=sf-dump-num>200<\/span>\n<\/pre><script>Sfdump(\"sf-dump-465133596\", {\"maxDepth\":0})<\/script>\n","status_text":"OK","format":"html","content_type":"text\/html; charset=UTF-8","request_query":"<pre class=sf-dump id=sf-dump-1499923002 data-indent-pad=\"  \">[]\n<\/pre><script>Sfdump(\"sf-dump-1499923002\", {\"maxDepth\":0})<\/script>\n","request_request":"<pre class=sf-dump id=sf-dump-952614230 data-indent-pad=\"  \">[]\n<\/pre><script>Sfdump(\"sf-dump-952614230\", {\"maxDepth\":0})<\/script>\n","request_headers":"<pre class=sf-dump id=sf-dump-773364242 data-indent-pad=\"  \"><span class=sf-dump-note>array:16<\/span> [<samp>\n  \"<span class=sf-dump-key>host<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"16 characters\">tintam.flyspa.vn<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>connection<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"10 characters\">keep-alive<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>sec-ch-ua<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"65 characters\">&quot;Google Chrome&quot;;v=&quot;137&quot;, &quot;Chromium&quot;;v=&quot;137&quot;, &quot;Not\/A)Brand&quot;;v=&quot;24&quot;<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>sec-ch-ua-mobile<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"2 characters\">?0<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>sec-ch-ua-platform<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"9 characters\">&quot;Windows&quot;<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>upgrade-insecure-requests<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str>1<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>user-agent<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"111 characters\">Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/137.0.0.0 Safari\/537.36<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>accept<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"135 characters\">text\/html,application\/xhtml+xml,application\/xml;q=0.9,image\/avif,image\/webp,image\/apng,*\/*;q=0.8,application\/signed-exchange;v=b3;q=0.7<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>sec-fetch-site<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"11 characters\">same-origin<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>sec-fetch-mode<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"8 characters\">navigate<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>sec-fetch-user<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"2 characters\">?1<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>sec-fetch-dest<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"8 characters\">document<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>referer<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"34 characters\">https:\/\/tintam.flyspa.vn\/customers<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>accept-encoding<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"23 characters\">gzip, deflate, br, zstd<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>accept-language<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"44 characters\">vi,en-US;q=0.9,en;q=0.8,fr-FR;q=0.7,fr;q=0.6<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>cookie<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"525 characters\">XSRF-TOKEN=eyJpdiI6Im1NSTRBc2NMTzZGNXpGRXB4dVU3MXc9PSIsInZhbHVlIjoiY3Z1bHAwMlNWbzZGQ2xwcEk3Mjl4VXBmaEE1Q2FLdkQ1YWJIdmhLMStGNUhwbDJyUGZYaHgxckNhVUhJbzNpTiIsIm1hYyI6IjkzNzYzOTA1OGQ5YTk2NWIwMTJkNjFmNTY0MTZjNDkxOTU0YjY3Y2U1ZDBhNjRmNWNhOTQxNmM3ZGQ4MTI5ODQifQ%3D%3D; laravel_session=eyJpdiI6Ik1zaklXZHN4OEp3WW5pMk4weStiRkE9PSIsInZhbHVlIjoicUhBQThJQjBscUM0R1ZlTktWK0trOVp4MGwreTFLMnRuVXJTMEg2MnlrZkFtYU13S0FRem1ZTDN4YmtSYSs0VCIsIm1hYyI6ImE3Y2FmNWMwNmQ4NjdmYTJmZTc0YWYzOGQxNDRhMjY5M2VlM2M2N2MyNzM1NGM2NmIxNGMyZmExMWExNzcyOGMifQ%3D%3D<\/span>\"\n  <\/samp>]\n<\/samp>]\n<\/pre><script>Sfdump(\"sf-dump-773364242\", {\"maxDepth\":0})<\/script>\n","request_server":"<pre class=sf-dump id=sf-dump-750664716 data-indent-pad=\"  \"><span class=sf-dump-note>array:45<\/span> [<samp>\n  \"<span class=sf-dump-key>REDIRECT_HTTPS<\/span>\" => \"<span class=sf-dump-str title=\"2 characters\">on<\/span>\"\n  \"<span class=sf-dump-key>REDIRECT_SSL_TLS_SNI<\/span>\" => \"<span class=sf-dump-str title=\"16 characters\">tintam.flyspa.vn<\/span>\"\n  \"<span class=sf-dump-key>REDIRECT_STATUS<\/span>\" => \"<span class=sf-dump-str title=\"3 characters\">200<\/span>\"\n  \"<span class=sf-dump-key>HTTPS<\/span>\" => \"<span class=sf-dump-str title=\"2 characters\">on<\/span>\"\n  \"<span class=sf-dump-key>SSL_TLS_SNI<\/span>\" => \"<span class=sf-dump-str title=\"16 characters\">tintam.flyspa.vn<\/span>\"\n  \"<span class=sf-dump-key>HTTP_HOST<\/span>\" => \"<span class=sf-dump-str title=\"16 characters\">tintam.flyspa.vn<\/span>\"\n  \"<span class=sf-dump-key>HTTP_CONNECTION<\/span>\" => \"<span class=sf-dump-str title=\"10 characters\">keep-alive<\/span>\"\n  \"<span class=sf-dump-key>HTTP_SEC_CH_UA<\/span>\" => \"<span class=sf-dump-str title=\"65 characters\">&quot;Google Chrome&quot;;v=&quot;137&quot;, &quot;Chromium&quot;;v=&quot;137&quot;, &quot;Not\/A)Brand&quot;;v=&quot;24&quot;<\/span>\"\n  \"<span class=sf-dump-key>HTTP_SEC_CH_UA_MOBILE<\/span>\" => \"<span class=sf-dump-str title=\"2 characters\">?0<\/span>\"\n  \"<span class=sf-dump-key>HTTP_SEC_CH_UA_PLATFORM<\/span>\" => \"<span class=sf-dump-str title=\"9 characters\">&quot;Windows&quot;<\/span>\"\n  \"<span class=sf-dump-key>HTTP_UPGRADE_INSECURE_REQUESTS<\/span>\" => \"<span class=sf-dump-str>1<\/span>\"\n  \"<span class=sf-dump-key>HTTP_USER_AGENT<\/span>\" => \"<span class=sf-dump-str title=\"111 characters\">Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/137.0.0.0 Safari\/537.36<\/span>\"\n  \"<span class=sf-dump-key>HTTP_ACCEPT<\/span>\" => \"<span class=sf-dump-str title=\"135 characters\">text\/html,application\/xhtml+xml,application\/xml;q=0.9,image\/avif,image\/webp,image\/apng,*\/*;q=0.8,application\/signed-exchange;v=b3;q=0.7<\/span>\"\n  \"<span class=sf-dump-key>HTTP_SEC_FETCH_SITE<\/span>\" => \"<span class=sf-dump-str title=\"11 characters\">same-origin<\/span>\"\n  \"<span class=sf-dump-key>HTTP_SEC_FETCH_MODE<\/span>\" => \"<span class=sf-dump-str title=\"8 characters\">navigate<\/span>\"\n  \"<span class=sf-dump-key>HTTP_SEC_FETCH_USER<\/span>\" => \"<span class=sf-dump-str title=\"2 characters\">?1<\/span>\"\n  \"<span class=sf-dump-key>HTTP_SEC_FETCH_DEST<\/span>\" => \"<span class=sf-dump-str title=\"8 characters\">document<\/span>\"\n  \"<span class=sf-dump-key>HTTP_REFERER<\/span>\" => \"<span class=sf-dump-str title=\"34 characters\">https:\/\/tintam.flyspa.vn\/customers<\/span>\"\n  \"<span class=sf-dump-key>HTTP_ACCEPT_ENCODING<\/span>\" => \"<span class=sf-dump-str title=\"23 characters\">gzip, deflate, br, zstd<\/span>\"\n  \"<span class=sf-dump-key>HTTP_ACCEPT_LANGUAGE<\/span>\" => \"<span class=sf-dump-str title=\"44 characters\">vi,en-US;q=0.9,en;q=0.8,fr-FR;q=0.7,fr;q=0.6<\/span>\"\n  \"<span class=sf-dump-key>HTTP_COOKIE<\/span>\" => \"<span class=sf-dump-str title=\"525 characters\">XSRF-TOKEN=eyJpdiI6Im1NSTRBc2NMTzZGNXpGRXB4dVU3MXc9PSIsInZhbHVlIjoiY3Z1bHAwMlNWbzZGQ2xwcEk3Mjl4VXBmaEE1Q2FLdkQ1YWJIdmhLMStGNUhwbDJyUGZYaHgxckNhVUhJbzNpTiIsIm1hYyI6IjkzNzYzOTA1OGQ5YTk2NWIwMTJkNjFmNTY0MTZjNDkxOTU0YjY3Y2U1ZDBhNjRmNWNhOTQxNmM3ZGQ4MTI5ODQifQ%3D%3D; laravel_session=eyJpdiI6Ik1zaklXZHN4OEp3WW5pMk4weStiRkE9PSIsInZhbHVlIjoicUhBQThJQjBscUM0R1ZlTktWK0trOVp4MGwreTFLMnRuVXJTMEg2MnlrZkFtYU13S0FRem1ZTDN4YmtSYSs0VCIsIm1hYyI6ImE3Y2FmNWMwNmQ4NjdmYTJmZTc0YWYzOGQxNDRhMjY5M2VlM2M2N2MyNzM1NGM2NmIxNGMyZmExMWExNzcyOGMifQ%3D%3D<\/span>\"\n  \"<span class=sf-dump-key>PATH<\/span>\" => \"<span class=sf-dump-str title=\"70 characters\">\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin:\/snap\/bin<\/span>\"\n  \"<span class=sf-dump-key>SERVER_SIGNATURE<\/span>\" => \"<span class=sf-dump-str title=\"78 characters\">&lt;address&gt;Apache\/2.4.29 (Ubuntu) Server at tintam.flyspa.vn Port 443&lt;\/address&gt;<span class=\"sf-dump-default sf-dump-ns\">\\n<\/span><\/span>\"\n  \"<span class=sf-dump-key>SERVER_SOFTWARE<\/span>\" => \"<span class=sf-dump-str title=\"22 characters\">Apache\/2.4.29 (Ubuntu)<\/span>\"\n  \"<span class=sf-dump-key>SERVER_NAME<\/span>\" => \"<span class=sf-dump-str title=\"16 characters\">tintam.flyspa.vn<\/span>\"\n  \"<span class=sf-dump-key>SERVER_ADDR<\/span>\" => \"<span class=sf-dump-str title=\"12 characters\">202.92.6.198<\/span>\"\n  \"<span class=sf-dump-key>SERVER_PORT<\/span>\" => \"<span class=sf-dump-str title=\"3 characters\">443<\/span>\"\n  \"<span class=sf-dump-key>REMOTE_ADDR<\/span>\" => \"<span class=sf-dump-str title=\"13 characters\">113.23.103.21<\/span>\"\n  \"<span class=sf-dump-key>DOCUMENT_ROOT<\/span>\" => \"<span class=sf-dump-str title=\"28 characters\">\/var\/www\/html\/Tintam\/public\/<\/span>\"\n  \"<span class=sf-dump-key>REQUEST_SCHEME<\/span>\" => \"<span class=sf-dump-str title=\"5 characters\">https<\/span>\"\n  \"<span class=sf-dump-key>CONTEXT_PREFIX<\/span>\" => \"\"\n  \"<span class=sf-dump-key>CONTEXT_DOCUMENT_ROOT<\/span>\" => \"<span class=sf-dump-str title=\"28 characters\">\/var\/www\/html\/Tintam\/public\/<\/span>\"\n  \"<span class=sf-dump-key>SERVER_ADMIN<\/span>\" => \"<span class=sf-dump-str title=\"18 characters\">[no address given]<\/span>\"\n  \"<span class=sf-dump-key>SCRIPT_FILENAME<\/span>\" => \"<span class=sf-dump-str title=\"37 characters\">\/var\/www\/html\/Tintam\/public\/index.php<\/span>\"\n  \"<span class=sf-dump-key>REMOTE_PORT<\/span>\" => \"<span class=sf-dump-str title=\"4 characters\">6125<\/span>\"\n  \"<span class=sf-dump-key>REDIRECT_URL<\/span>\" => \"<span class=sf-dump-str title=\"22 characters\">\/report\/branch-sources<\/span>\"\n  \"<span class=sf-dump-key>GATEWAY_INTERFACE<\/span>\" => \"<span class=sf-dump-str title=\"7 characters\">CGI\/1.1<\/span>\"\n  \"<span class=sf-dump-key>SERVER_PROTOCOL<\/span>\" => \"<span class=sf-dump-str title=\"8 characters\">HTTP\/1.1<\/span>\"\n  \"<span class=sf-dump-key>REQUEST_METHOD<\/span>\" => \"<span class=sf-dump-str title=\"3 characters\">GET<\/span>\"\n  \"<span class=sf-dump-key>QUERY_STRING<\/span>\" => \"\"\n  \"<span class=sf-dump-key>REQUEST_URI<\/span>\" => \"<span class=sf-dump-str title=\"22 characters\">\/report\/branch-sources<\/span>\"\n  \"<span class=sf-dump-key>SCRIPT_NAME<\/span>\" => \"<span class=sf-dump-str title=\"10 characters\">\/index.php<\/span>\"\n  \"<span class=sf-dump-key>PHP_SELF<\/span>\" => \"<span class=sf-dump-str title=\"10 characters\">\/index.php<\/span>\"\n  \"<span class=sf-dump-key>REQUEST_TIME_FLOAT<\/span>\" => <span class=sf-dump-num>1754445382.145<\/span>\n  \"<span class=sf-dump-key>REQUEST_TIME<\/span>\" => <span class=sf-dump-num>1754445382<\/span>\n<\/samp>]\n<\/pre><script>Sfdump(\"sf-dump-750664716\", {\"maxDepth\":0})<\/script>\n","request_cookies":"<pre class=sf-dump id=sf-dump-2093834302 data-indent-pad=\"  \"><span class=sf-dump-note>array:2<\/span> [<samp>\n  \"<span class=sf-dump-key>XSRF-TOKEN<\/span>\" => \"<span class=sf-dump-str title=\"40 characters\">XpsXm4n6Cisi2wSpHR6xOWOL5n6p26TvBjm24uO9<\/span>\"\n  \"<span class=sf-dump-key>laravel_session<\/span>\" => \"<span class=sf-dump-str title=\"40 characters\">Y6H9WJ7RlGiRK3Lg9zTC1OvoHtqZBoxXSUj59UO7<\/span>\"\n<\/samp>]\n<\/pre><script>Sfdump(\"sf-dump-2093834302\", {\"maxDepth\":0})<\/script>\n","response_headers":"<pre class=sf-dump id=sf-dump-126804827 data-indent-pad=\"  \"><span class=sf-dump-note>array:5<\/span> [<samp>\n  \"<span class=sf-dump-key>cache-control<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"17 characters\">no-cache, private<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>date<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"29 characters\">Wed, 06 Aug 2025 01:56:23 GMT<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>content-type<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"24 characters\">text\/html; charset=UTF-8<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>set-cookie<\/span>\" => <span class=sf-dump-note>array:2<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"320 characters\">XSRF-TOKEN=eyJpdiI6ImNVa1JDa0p3ZWtRZ1RreHp4eW4xVWc9PSIsInZhbHVlIjoiRVJDbVwvWWZBdXBOcm01RFFGRXpMSVwvczg3T0VER2J0SE8wd1Z5Y0VRRzF4dTZMaGVva2dBN3NvNEphVVNVVU51IiwibWFjIjoiODRiZTEwYWMyOGNjMjVlMmQ1YzQ5NmQ2YmFmNjEwYWY4YWM4NDY4YTEwM2FkM2QyYzU5ZDkwNzk2ZGVkOTRiNSJ9; expires=Thu, 06-Aug-2026 01:56:23 GMT; Max-Age=31536000; path=\/<\/span>\"\n    <span class=sf-dump-index>1<\/span> => \"<span class=sf-dump-str title=\"280 characters\">laravel_session=eyJpdiI6ImVNRXhJSUUxV0ZWbjlZakJVMDRxeUE9PSIsInZhbHVlIjoiaXpFdnc1XC93aWlkUnp3Qkdldkh2K2pScWlOSFd1MmhSeVd4NFFMYXF4SFVCRmFSQ2EzSFdKRWs1U1RnWVV3U1kiLCJtYWMiOiIzNDcyM2QzNDdjNGYwM2E5ZGRmZmUxNTVlNjljNzRlYWVmZDVhOGRlZTcyMTQzYzU1NWMzN2JlNmJjNmViNDFjIn0%3D; path=\/; httponly<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>Set-Cookie<\/span>\" => <span class=sf-dump-note>array:2<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"302 characters\">XSRF-TOKEN=eyJpdiI6ImNVa1JDa0p3ZWtRZ1RreHp4eW4xVWc9PSIsInZhbHVlIjoiRVJDbVwvWWZBdXBOcm01RFFGRXpMSVwvczg3T0VER2J0SE8wd1Z5Y0VRRzF4dTZMaGVva2dBN3NvNEphVVNVVU51IiwibWFjIjoiODRiZTEwYWMyOGNjMjVlMmQ1YzQ5NmQ2YmFmNjEwYWY4YWM4NDY4YTEwM2FkM2QyYzU5ZDkwNzk2ZGVkOTRiNSJ9; expires=Thu, 06-Aug-2026 01:56:23 GMT; path=\/<\/span>\"\n    <span class=sf-dump-index>1<\/span> => \"<span class=sf-dump-str title=\"280 characters\">laravel_session=eyJpdiI6ImVNRXhJSUUxV0ZWbjlZakJVMDRxeUE9PSIsInZhbHVlIjoiaXpFdnc1XC93aWlkUnp3Qkdldkh2K2pScWlOSFd1MmhSeVd4NFFMYXF4SFVCRmFSQ2EzSFdKRWs1U1RnWVV3U1kiLCJtYWMiOiIzNDcyM2QzNDdjNGYwM2E5ZGRmZmUxNTVlNjljNzRlYWVmZDVhOGRlZTcyMTQzYzU1NWMzN2JlNmJjNmViNDFjIn0%3D; path=\/; httponly<\/span>\"\n  <\/samp>]\n<\/samp>]\n<\/pre><script>Sfdump(\"sf-dump-126804827\", {\"maxDepth\":0})<\/script>\n","session_attributes":"<pre class=sf-dump id=sf-dump-1061085612 data-indent-pad=\"  \"><span class=sf-dump-note>array:6<\/span> [<samp>\n  \"<span class=sf-dump-key>_token<\/span>\" => \"<span class=sf-dump-str title=\"40 characters\">XpsXm4n6Cisi2wSpHR6xOWOL5n6p26TvBjm24uO9<\/span>\"\n  \"<span class=sf-dump-key>_flash<\/span>\" => <span class=sf-dump-note>array:2<\/span> [<samp>\n    \"<span class=sf-dump-key>old<\/span>\" => []\n    \"<span class=sf-dump-key>new<\/span>\" => []\n  <\/samp>]\n  \"<span class=sf-dump-key>url<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    \"<span class=sf-dump-key>intended<\/span>\" => \"<span class=sf-dump-str title=\"34 characters\">https:\/\/tintam.flyspa.vn\/customers<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>_previous<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    \"<span class=sf-dump-key>url<\/span>\" => \"<span class=sf-dump-str title=\"46 characters\">https:\/\/tintam.flyspa.vn\/report\/branch-sources<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>login_web_59ba36addc2b2f9401580f014c7f58ea4e30989d<\/span>\" => <span class=sf-dump-num>111<\/span>\n  \"<span class=sf-dump-key>PHPDEBUGBAR_STACK_DATA<\/span>\" => []\n<\/samp>]\n<\/pre><script>Sfdump(\"sf-dump-1061085612\", {\"maxDepth\":0})<\/script>\n"}}