{"__meta":{"id":"Xb7736d4eb7e4dc9a756b3ace6d74bd74","datetime":"2025-08-06 09:58:27","utime":1754449107.10182,"method":"GET","uri":"\/report\/branch-sources?start_date=06-08-2025&end_date=06-08-2025&branch_id=","ip":"118.71.223.68"},"php":{"version":"7.2.24","interface":"apache2handler"},"messages":{"count":0,"messages":[]},"time":{"start":1754449105.406,"end":1754449107.101849,"duration":1.6958491802215576,"duration_str":"1.7s","measures":[{"label":"Booting","start":1754449105.406,"relative_start":0,"end":1754449105.45904,"relative_end":1754449105.45904,"duration":0.0530400276184082,"duration_str":"53.04ms","params":[],"collector":null},{"label":"Application","start":1754449105.459595,"relative_start":0.05359506607055664,"end":1754449107.101853,"relative_end":3.814697265625e-6,"duration":1.6422579288482666,"duration_str":"1.64s","params":[],"collector":null}]},"memory":{"peak_usage":8699000,"peak_usage_str":"8MB"},"exceptions":{"count":0,"exceptions":[]},"views":{"nb_templates":1,"templates":[{"name":"branch.source.ajax (resources\/views\/branch\/source\/ajax.blade.php)","param_count":1,"params":["users"],"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":1.1300699999999997,"accumulated_duration_str":"1.13s","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.01192,"duration_str":"11.92ms","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.00094,"duration_str":"940\u03bcs","stmt_id":"\/vendor\/laravel\/framework\/src\/Illuminate\/Support\/Traits\/ForwardsCalls.php:23","connection":"tintam"},{"sql":"select * from`users` where `id` = 211 and `users`.`deleted_at` is null limit 1","type":"query","params":[],"bindings":["211"],"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.00235,"duration_str":"2.35ms","stmt_id":"\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/EloquentUserProvider.php:52","connection":"tintam"},{"sql":"select * from`roles` where `roles`.`id` in (2)","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.0012900000000000001,"duration_str":"1.29ms","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.0027,"duration_str":"2.7ms","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.024390000000000002,"duration_str":"24.39ms","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.01819,"duration_str":"18.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` = 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.0018700000000000001,"duration_str":"1.87ms","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.00266,"duration_str":"2.66ms","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.0016899999999999999,"duration_str":"1.69ms","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.00134,"duration_str":"1.34ms","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.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` = 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.0012,"duration_str":"1.2ms","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.00171,"duration_str":"1.71ms","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.00106,"duration_str":"1.06ms","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.0012900000000000001,"duration_str":"1.29ms","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.00103,"duration_str":"1.03ms","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.00151,"duration_str":"1.51ms","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.0017900000000000001,"duration_str":"1.79ms","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.00117,"duration_str":"1.17ms","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.00128,"duration_str":"1.28ms","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.0017900000000000001,"duration_str":"1.79ms","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.03469,"duration_str":"34.69ms","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.02828,"duration_str":"28.28ms","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.00145,"duration_str":"1.45ms","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.0015400000000000001,"duration_str":"1.54ms","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.0017,"duration_str":"1.7ms","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.0011899999999999999,"duration_str":"1.19ms","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.0015,"duration_str":"1.5ms","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.001,"duration_str":"1ms","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.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` = 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.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` = 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.00127,"duration_str":"1.27ms","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.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` = 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.0008100000000000001,"duration_str":"810\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.0007199999999999999,"duration_str":"720\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.00062,"duration_str":"620\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.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` = 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.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` = 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.0015400000000000001,"duration_str":"1.54ms","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.00076,"duration_str":"760\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.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` = 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.0011200000000000001,"duration_str":"1.12ms","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.00074,"duration_str":"740\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.00093,"duration_str":"930\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.00085,"duration_str":"850\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.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` = 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.00073,"duration_str":"730\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.00098,"duration_str":"980\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.00114,"duration_str":"1.14ms","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.00113,"duration_str":"1.13ms","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.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` = 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.0017900000000000001,"duration_str":"1.79ms","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.00177,"duration_str":"1.77ms","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.0016699999999999998,"duration_str":"1.67ms","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.00148,"duration_str":"1.48ms","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.009880000000000002,"duration_str":"9.88ms","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.00718,"duration_str":"7.18ms","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.0016699999999999998,"duration_str":"1.67ms","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.00166,"duration_str":"1.66ms","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.0015300000000000001,"duration_str":"1.53ms","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.00127,"duration_str":"1.27ms","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.0016200000000000001,"duration_str":"1.62ms","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.0016699999999999998,"duration_str":"1.67ms","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.00136,"duration_str":"1.36ms","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.00117,"duration_str":"1.17ms","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.00117,"duration_str":"1.17ms","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.00125,"duration_str":"1.25ms","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.00141,"duration_str":"1.41ms","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.001,"duration_str":"1ms","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.00125,"duration_str":"1.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` = 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.00161,"duration_str":"1.61ms","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.00117,"duration_str":"1.17ms","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.022010000000000002,"duration_str":"22.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` = 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.02062,"duration_str":"20.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` = 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.00135,"duration_str":"1.35ms","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.0016899999999999999,"duration_str":"1.69ms","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.0011899999999999999,"duration_str":"1.19ms","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.00113,"duration_str":"1.13ms","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.00113,"duration_str":"1.13ms","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.00125,"duration_str":"1.25ms","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.00117,"duration_str":"1.17ms","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.0013,"duration_str":"1.3ms","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.00134,"duration_str":"1.34ms","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.00109,"duration_str":"1.09ms","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.00135,"duration_str":"1.35ms","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.00102,"duration_str":"1.02ms","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.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` = 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.00151,"duration_str":"1.51ms","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.00108,"duration_str":"1.08ms","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.04138,"duration_str":"41.38ms","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.024730000000000002,"duration_str":"24.73ms","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.00108,"duration_str":"1.08ms","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.00107,"duration_str":"1.07ms","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.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` = 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.00095,"duration_str":"950\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.0008399999999999999,"duration_str":"840\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.00092,"duration_str":"920\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.00083,"duration_str":"830\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` = 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.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` = 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.00078,"duration_str":"780\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.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` = 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.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` = 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.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` = 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.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` = 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.00121,"duration_str":"1.21ms","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.0207,"duration_str":"20.7ms","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.019649999999999997,"duration_str":"19.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.00135,"duration_str":"1.35ms","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.0015400000000000001,"duration_str":"1.54ms","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.00172,"duration_str":"1.72ms","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.0012900000000000001,"duration_str":"1.29ms","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.0011899999999999999,"duration_str":"1.19ms","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.00107,"duration_str":"1.07ms","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.0012900000000000001,"duration_str":"1.29ms","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.00116,"duration_str":"1.16ms","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.00102,"duration_str":"1.02ms","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.0011200000000000001,"duration_str":"1.12ms","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.00088,"duration_str":"880\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.0008900000000000001,"duration_str":"890\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.00108,"duration_str":"1.08ms","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.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` = 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.00128,"duration_str":"1.28ms","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.01635,"duration_str":"16.35ms","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.0149,"duration_str":"14.9ms","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.00122,"duration_str":"1.22ms","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.00145,"duration_str":"1.45ms","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.0012900000000000001,"duration_str":"1.29ms","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.00114,"duration_str":"1.14ms","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.00111,"duration_str":"1.11ms","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.00125,"duration_str":"1.25ms","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.00092,"duration_str":"920\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.0015300000000000001,"duration_str":"1.53ms","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.0032,"duration_str":"3.2ms","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.00887,"duration_str":"8.87ms","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.00283,"duration_str":"2.83ms","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.00254,"duration_str":"2.54ms","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.00292,"duration_str":"2.92ms","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.00109,"duration_str":"1.09ms","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.00086,"duration_str":"860\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` = 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.00164,"duration_str":"1.64ms","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.00085,"duration_str":"850\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.0007099999999999999,"duration_str":"710\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.00123,"duration_str":"1.23ms","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.00246,"duration_str":"2.46ms","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.00165,"duration_str":"1.65ms","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.0025499999999999997,"duration_str":"2.55ms","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.00219,"duration_str":"2.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` = 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.00125,"duration_str":"1.25ms","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.00121,"duration_str":"1.21ms","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.0014299999999999998,"duration_str":"1.43ms","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.00174,"duration_str":"1.74ms","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.00131,"duration_str":"1.31ms","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.00108,"duration_str":"1.08ms","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.00107,"duration_str":"1.07ms","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.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` = 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.00138,"duration_str":"1.38ms","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.02951,"duration_str":"29.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` = 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.01834,"duration_str":"18.34ms","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.00122,"duration_str":"1.22ms","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.0009699999999999999,"duration_str":"970\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.00074,"duration_str":"740\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.0014199999999999998,"duration_str":"1.42ms","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.00076,"duration_str":"760\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.00086,"duration_str":"860\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.0007199999999999999,"duration_str":"720\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.00067,"duration_str":"670\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.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` = 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.0011899999999999999,"duration_str":"1.19ms","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.00068,"duration_str":"680\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.0007,"duration_str":"700\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.00065,"duration_str":"650\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.00073,"duration_str":"730\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.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` = 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.010320000000000001,"duration_str":"10.32ms","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.00553,"duration_str":"5.53ms","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.00126,"duration_str":"1.26ms","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.00242,"duration_str":"2.42ms","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.00124,"duration_str":"1.24ms","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.00128,"duration_str":"1.28ms","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.00117,"duration_str":"1.17ms","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.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` = 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.00074,"duration_str":"740\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.00069,"duration_str":"690\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` = 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.00106,"duration_str":"1.06ms","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.0008399999999999999,"duration_str":"840\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.00099,"duration_str":"990\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` = 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.00065,"duration_str":"650\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.0020499999999999997,"duration_str":"2.05ms","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.00099,"duration_str":"990\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.00196,"duration_str":"1.96ms","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.0009599999999999999,"duration_str":"960\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.0008100000000000001,"duration_str":"810\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.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` = 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.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` = 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.00103,"duration_str":"1.03ms","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.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` = 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.0019399999999999999,"duration_str":"1.94ms","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.00127,"duration_str":"1.27ms","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.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` = 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.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` = 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.001,"duration_str":"1ms","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.00107,"duration_str":"1.07ms","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.00124,"duration_str":"1.24ms","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.00222,"duration_str":"2.22ms","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.0038,"duration_str":"3.8ms","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.0009599999999999999,"duration_str":"960\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` = 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.018600000000000002,"duration_str":"18.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` = 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.01211,"duration_str":"12.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.00164,"duration_str":"1.64ms","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.00152,"duration_str":"1.52ms","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.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` = 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.00088,"duration_str":"880\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.00106,"duration_str":"1.06ms","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.00103,"duration_str":"1.03ms","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.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` = 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.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` = 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.0019299999999999999,"duration_str":"1.93ms","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.0057599999999999995,"duration_str":"5.76ms","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.00126,"duration_str":"1.26ms","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.00079,"duration_str":"790\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.00111,"duration_str":"1.11ms","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.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` = 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.00653,"duration_str":"6.53ms","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.0049900000000000005,"duration_str":"4.99ms","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.0019,"duration_str":"1.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` = 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.00134,"duration_str":"1.34ms","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.0008900000000000001,"duration_str":"890\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.00079,"duration_str":"790\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.00115,"duration_str":"1.15ms","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.00091,"duration_str":"910\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.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` = 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.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` = 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.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` = 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.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` = 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.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` = 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.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` = 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.0008100000000000001,"duration_str":"810\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` = 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.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` = 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.00082,"duration_str":"820\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.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` = 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.0009599999999999999,"duration_str":"960\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.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` = 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.00164,"duration_str":"1.64ms","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.0008900000000000001,"duration_str":"890\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.0010500000000000002,"duration_str":"1.05ms","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.0010400000000000001,"duration_str":"1.04ms","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.001,"duration_str":"1ms","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.0011200000000000001,"duration_str":"1.12ms","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.0009599999999999999,"duration_str":"960\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.00079,"duration_str":"790\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.0009,"duration_str":"900\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.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` = 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.00094,"duration_str":"940\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.00175,"duration_str":"1.75ms","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.0011799999999999998,"duration_str":"1.18ms","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.00082,"duration_str":"820\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.019710000000000002,"duration_str":"19.71ms","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.022109999999999998,"duration_str":"22.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` = 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.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` = 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.0012,"duration_str":"1.2ms","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.00595,"duration_str":"5.95ms","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.0013,"duration_str":"1.3ms","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.0011899999999999999,"duration_str":"1.19ms","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.00115,"duration_str":"1.15ms","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.00145,"duration_str":"1.45ms","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.00103,"duration_str":"1.03ms","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.00133,"duration_str":"1.33ms","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.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` = 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.00065,"duration_str":"650\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.00063,"duration_str":"630\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.00062,"duration_str":"620\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.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` = 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.00064,"duration_str":"640\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` = 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.00357,"duration_str":"3.57ms","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.00443,"duration_str":"4.43ms","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.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` = 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.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` = 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.00094,"duration_str":"940\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.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` = 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.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` = 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.00068,"duration_str":"680\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.00069,"duration_str":"690\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.0006,"duration_str":"600\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.00055,"duration_str":"550\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.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` = 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.00062,"duration_str":"620\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.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` = 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.0008,"duration_str":"800\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.00108,"duration_str":"1.08ms","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.018510000000000002,"duration_str":"18.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` = 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.01923,"duration_str":"19.23ms","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.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` = 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.00091,"duration_str":"910\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` = 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.00094,"duration_str":"940\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.00076,"duration_str":"760\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.0008399999999999999,"duration_str":"840\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` = 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.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` = 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.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` = 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.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` = 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.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` = 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.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` = 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.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` = 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.00067,"duration_str":"670\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.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` = 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.00066,"duration_str":"660\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.00064,"duration_str":"640\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.0007700000000000001,"duration_str":"770\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.00093,"duration_str":"930\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.0011899999999999999,"duration_str":"1.19ms","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.0012,"duration_str":"1.2ms","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.0025,"duration_str":"2.5ms","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.00128,"duration_str":"1.28ms","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.0011799999999999998,"duration_str":"1.18ms","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.00111,"duration_str":"1.11ms","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.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` = 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.00091,"duration_str":"910\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.001,"duration_str":"1ms","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.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` = 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.00073,"duration_str":"730\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.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` = 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.00108,"duration_str":"1.08ms","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.00078,"duration_str":"780\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.019620000000000002,"duration_str":"19.62ms","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.01316,"duration_str":"13.16ms","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.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` = 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.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` = 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.00093,"duration_str":"930\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.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` = 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.00114,"duration_str":"1.14ms","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.00091,"duration_str":"910\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.00083,"duration_str":"830\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.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` = 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.0008,"duration_str":"800\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.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` = 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.0007099999999999999,"duration_str":"710\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` = 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.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` = 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.00063,"duration_str":"630\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` = 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.0007,"duration_str":"700\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.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` = 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.00101,"duration_str":"1.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` = 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.00073,"duration_str":"730\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.00079,"duration_str":"790\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.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` = 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.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` = 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.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` = 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.00062,"duration_str":"620\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` = 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.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` = 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.00083,"duration_str":"830\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.00064,"duration_str":"640\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.00063,"duration_str":"630\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.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` = 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.00064,"duration_str":"640\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.0005,"duration_str":"500\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.0008399999999999999,"duration_str":"840\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.00073,"duration_str":"730\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.011550000000000001,"duration_str":"11.55ms","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.01076,"duration_str":"10.76ms","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.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` = 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.00091,"duration_str":"910\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.00083,"duration_str":"830\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.00111,"duration_str":"1.11ms","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.00078,"duration_str":"780\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.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` = 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.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` = 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.0011,"duration_str":"1.1ms","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.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` = 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.00088,"duration_str":"880\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.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` = 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.0008,"duration_str":"800\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.0008,"duration_str":"800\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.0007,"duration_str":"700\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.0297,"duration_str":"29.7ms","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.022609999999999998,"duration_str":"22.61ms","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.0007700000000000001,"duration_str":"770\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` = 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.00078,"duration_str":"780\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.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` = 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.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` = 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.0007,"duration_str":"700\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.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` = 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.00083,"duration_str":"830\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.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` = 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.00088,"duration_str":"880\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.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` = 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.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` = 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.00062,"duration_str":"620\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` = 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.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` = 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.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` = 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.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` = 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.01014,"duration_str":"10.14ms","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.011710000000000002,"duration_str":"11.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` = 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.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` = 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.00109,"duration_str":"1.09ms","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.00113,"duration_str":"1.13ms","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.00091,"duration_str":"910\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.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` = 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.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` = 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.00068,"duration_str":"680\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.00062,"duration_str":"620\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.0007,"duration_str":"700\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.0007,"duration_str":"700\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.00064,"duration_str":"640\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` = 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.0007099999999999999,"duration_str":"710\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.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` = 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.0008,"duration_str":"800\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` = 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.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` = 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.01028,"duration_str":"10.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` = 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.01018,"duration_str":"10.18ms","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.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` = 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.00075,"duration_str":"750\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` = 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.00069,"duration_str":"690\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.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` = 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.00073,"duration_str":"730\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.00058,"duration_str":"580\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` = 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.00057,"duration_str":"570\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` = 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.00066,"duration_str":"660\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.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` = 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.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` = 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.00066,"duration_str":"660\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` = 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.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` = 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.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` = 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.00075,"duration_str":"750\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` = 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.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` = 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.009869999999999999,"duration_str":"9.87ms","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.01768,"duration_str":"17.68ms","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.00106,"duration_str":"1.06ms","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.00108,"duration_str":"1.08ms","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.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` = 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.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` = 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.0008399999999999999,"duration_str":"840\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` = 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.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` = 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.00092,"duration_str":"920\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.00067,"duration_str":"670\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.00062,"duration_str":"620\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` = 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.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` = 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.00063,"duration_str":"630\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` = 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.00065,"duration_str":"650\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` = 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.00062,"duration_str":"620\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.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` = 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.00069,"duration_str":"690\u03bcs","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":"S6deYl5LDXeJxvnVxuaoov8s9Wvt6DcPqsjVB97D","_flash":"array:2 [\n  \"old\" => []\n  \"new\" => []\n]","_previous":"array:1 [\n  \"url\" => \"https:\/\/tintam.flyspa.vn\/report\/branch-sources\"\n]","url":"array:1 [\n  \"intended\" => \"https:\/\/tintam.flyspa.vn\/report\/branch-sources\"\n]","login_web_59ba36addc2b2f9401580f014c7f58ea4e30989d":"211"},"request":{"path_info":"\/report\/branch-sources","status_code":"<pre class=sf-dump id=sf-dump-1198993148 data-indent-pad=\"  \"><span class=sf-dump-num>200<\/span>\n<\/pre><script>Sfdump(\"sf-dump-1198993148\", {\"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-1824393078 data-indent-pad=\"  \"><span class=sf-dump-note>array:3<\/span> [<samp>\n  \"<span class=sf-dump-key>start_date<\/span>\" => \"<span class=sf-dump-str title=\"10 characters\">06-08-2025<\/span>\"\n  \"<span class=sf-dump-key>end_date<\/span>\" => \"<span class=sf-dump-str title=\"10 characters\">06-08-2025<\/span>\"\n  \"<span class=sf-dump-key>branch_id<\/span>\" => <span class=sf-dump-const>null<\/span>\n<\/samp>]\n<\/pre><script>Sfdump(\"sf-dump-1824393078\", {\"maxDepth\":0})<\/script>\n","request_request":"<pre class=sf-dump id=sf-dump-175443014 data-indent-pad=\"  \"><span class=sf-dump-note>array:3<\/span> [<samp>\n  \"<span class=sf-dump-key>start_date<\/span>\" => \"<span class=sf-dump-str title=\"10 characters\">06-08-2025<\/span>\"\n  \"<span class=sf-dump-key>end_date<\/span>\" => \"<span class=sf-dump-str title=\"10 characters\">06-08-2025<\/span>\"\n  \"<span class=sf-dump-key>branch_id<\/span>\" => <span class=sf-dump-const>null<\/span>\n<\/samp>]\n<\/pre><script>Sfdump(\"sf-dump-175443014\", {\"maxDepth\":0})<\/script>\n","request_headers":"<pre class=sf-dump id=sf-dump-1781537783 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-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>x-csrf-token<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"40 characters\">S6deYl5LDXeJxvnVxuaoov8s9Wvt6DcPqsjVB97D<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>x-requested-with<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"14 characters\">XMLHttpRequest<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>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=\"3 characters\">*\/*<\/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-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=\"4 characters\">cors<\/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=\"5 characters\">empty<\/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=\"46 characters\">https:\/\/tintam.flyspa.vn\/report\/branch-sources<\/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=\"2 characters\">vi<\/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=\"519 characters\">XSRF-TOKEN=eyJpdiI6IldlXC9EQUQxdFFEdTRHbGdRU0VGeGxRPT0iLCJ2YWx1ZSI6Im1FOEE4SXJsa1gzR2lYUENlckRoZGUzeSt2RXlaY3p3VGUxMEZmWnNjNDhkSXVVd3B5c0N5VjFxTHc2dGxqWUUiLCJtYWMiOiIxZWQ1YmE2MDRlYTE2NjQ5OTdjMDBmY2I1MDc0MGFmZTA4N2U1N2MxNTFhMGNkNTkxMGNhM2M2NWExYTIzNzBkIn0%3D; laravel_session=eyJpdiI6Imc0Wlk5b3JxVGJOZURIXC92M0pPekdRPT0iLCJ2YWx1ZSI6ImxrWm1oZGZvajB3aUt4b1Q3XC9PZ2tJcDlVcnAxS3hpUUhqV01oK1RRYXViMkFMV2szNVlFWkFBZmluR08rYkErIiwibWFjIjoiOGE0OTg1NTliY2FiNWQ4NjU2YzkzZTA4YzI2MTRiZWVlZGM3ZjM5ZTkxZTM1NWZiN2E3YzBlY2I2NmNmOWU1NyJ9<\/span>\"\n  <\/samp>]\n<\/samp>]\n<\/pre><script>Sfdump(\"sf-dump-1781537783\", {\"maxDepth\":0})<\/script>\n","request_server":"<pre class=sf-dump id=sf-dump-1996710725 data-indent-pad=\"  \"><span class=sf-dump-note>array:46<\/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_PLATFORM<\/span>\" => \"<span class=sf-dump-str title=\"9 characters\">&quot;Windows&quot;<\/span>\"\n  \"<span class=sf-dump-key>HTTP_X_CSRF_TOKEN<\/span>\" => \"<span class=sf-dump-str title=\"40 characters\">S6deYl5LDXeJxvnVxuaoov8s9Wvt6DcPqsjVB97D<\/span>\"\n  \"<span class=sf-dump-key>HTTP_X_REQUESTED_WITH<\/span>\" => \"<span class=sf-dump-str title=\"14 characters\">XMLHttpRequest<\/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=\"3 characters\">*\/*<\/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_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=\"4 characters\">cors<\/span>\"\n  \"<span class=sf-dump-key>HTTP_SEC_FETCH_DEST<\/span>\" => \"<span class=sf-dump-str title=\"5 characters\">empty<\/span>\"\n  \"<span class=sf-dump-key>HTTP_REFERER<\/span>\" => \"<span class=sf-dump-str title=\"46 characters\">https:\/\/tintam.flyspa.vn\/report\/branch-sources<\/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=\"2 characters\">vi<\/span>\"\n  \"<span class=sf-dump-key>HTTP_COOKIE<\/span>\" => \"<span class=sf-dump-str title=\"519 characters\">XSRF-TOKEN=eyJpdiI6IldlXC9EQUQxdFFEdTRHbGdRU0VGeGxRPT0iLCJ2YWx1ZSI6Im1FOEE4SXJsa1gzR2lYUENlckRoZGUzeSt2RXlaY3p3VGUxMEZmWnNjNDhkSXVVd3B5c0N5VjFxTHc2dGxqWUUiLCJtYWMiOiIxZWQ1YmE2MDRlYTE2NjQ5OTdjMDBmY2I1MDc0MGFmZTA4N2U1N2MxNTFhMGNkNTkxMGNhM2M2NWExYTIzNzBkIn0%3D; laravel_session=eyJpdiI6Imc0Wlk5b3JxVGJOZURIXC92M0pPekdRPT0iLCJ2YWx1ZSI6ImxrWm1oZGZvajB3aUt4b1Q3XC9PZ2tJcDlVcnAxS3hpUUhqV01oK1RRYXViMkFMV2szNVlFWkFBZmluR08rYkErIiwibWFjIjoiOGE0OTg1NTliY2FiNWQ4NjU2YzkzZTA4YzI2MTRiZWVlZGM3ZjM5ZTkxZTM1NWZiN2E3YzBlY2I2NmNmOWU1NyJ9<\/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\">118.71.223.68<\/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\">3953<\/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>REDIRECT_QUERY_STRING<\/span>\" => \"<span class=sf-dump-str title=\"52 characters\">start_date=06-08-2025&amp;end_date=06-08-2025&amp;branch_id=<\/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>\" => \"<span class=sf-dump-str title=\"52 characters\">start_date=06-08-2025&amp;end_date=06-08-2025&amp;branch_id=<\/span>\"\n  \"<span class=sf-dump-key>REQUEST_URI<\/span>\" => \"<span class=sf-dump-str title=\"75 characters\">\/report\/branch-sources?start_date=06-08-2025&amp;end_date=06-08-2025&amp;branch_id=<\/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>1754449105.406<\/span>\n  \"<span class=sf-dump-key>REQUEST_TIME<\/span>\" => <span class=sf-dump-num>1754449105<\/span>\n<\/samp>]\n<\/pre><script>Sfdump(\"sf-dump-1996710725\", {\"maxDepth\":0})<\/script>\n","request_cookies":"<pre class=sf-dump id=sf-dump-1567242298 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\">S6deYl5LDXeJxvnVxuaoov8s9Wvt6DcPqsjVB97D<\/span>\"\n  \"<span class=sf-dump-key>laravel_session<\/span>\" => \"<span class=sf-dump-str title=\"40 characters\">IyUEeRUMgJa0TuLuBdsV3iHGqJiI0T3WPNS9LU8f<\/span>\"\n<\/samp>]\n<\/pre><script>Sfdump(\"sf-dump-1567242298\", {\"maxDepth\":0})<\/script>\n","response_headers":"<pre class=sf-dump id=sf-dump-59870290 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 02:58:27 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=\"324 characters\">XSRF-TOKEN=eyJpdiI6Im9uMElEVmV1bU9WWTZqNDM4VUJXS0E9PSIsInZhbHVlIjoibG1BOGJLa0h5Slk2OTFkQjhNKzUrYWlXNUZCZ3FNM2srOHJnSE5QOTRMYVdqZXZtYW9jbEs3a2ZLeFhDTlE0ayIsIm1hYyI6IjU4ZWM1NDZlZDlmMTQxZDc1OTAxMzEyYmVkNjRiYzQwZGJiNjU3NjI4ZjUwZDg1ZjI1MDZlYTljZThkMWVjYjEifQ%3D%3D; expires=Thu, 06-Aug-2026 02:58:27 GMT; Max-Age=31536000; path=\/<\/span>\"\n    <span class=sf-dump-index>1<\/span> => \"<span class=sf-dump-str title=\"282 characters\">laravel_session=eyJpdiI6IjVXVWhycjV1aXVmWE8xOUwwcEVUblE9PSIsInZhbHVlIjoiMTA0Z1JXb1ZZN015UEdjZmdIZjg2VHZhc1E5QnowQlYyaVRGaTJqYk8wZE9EM0QxUmNXNEpRRmhKYWtYTWRzYiIsIm1hYyI6ImY0MmM4OTI4YTU5NzEwYjhmNTQ4MzNlZDUyYjk5NjhkODJkOTE0NjhjMDI2YzllZmI4ZTc2YTZiOThiODBkYmQifQ%3D%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=\"306 characters\">XSRF-TOKEN=eyJpdiI6Im9uMElEVmV1bU9WWTZqNDM4VUJXS0E9PSIsInZhbHVlIjoibG1BOGJLa0h5Slk2OTFkQjhNKzUrYWlXNUZCZ3FNM2srOHJnSE5QOTRMYVdqZXZtYW9jbEs3a2ZLeFhDTlE0ayIsIm1hYyI6IjU4ZWM1NDZlZDlmMTQxZDc1OTAxMzEyYmVkNjRiYzQwZGJiNjU3NjI4ZjUwZDg1ZjI1MDZlYTljZThkMWVjYjEifQ%3D%3D; expires=Thu, 06-Aug-2026 02:58:27 GMT; path=\/<\/span>\"\n    <span class=sf-dump-index>1<\/span> => \"<span class=sf-dump-str title=\"282 characters\">laravel_session=eyJpdiI6IjVXVWhycjV1aXVmWE8xOUwwcEVUblE9PSIsInZhbHVlIjoiMTA0Z1JXb1ZZN015UEdjZmdIZjg2VHZhc1E5QnowQlYyaVRGaTJqYk8wZE9EM0QxUmNXNEpRRmhKYWtYTWRzYiIsIm1hYyI6ImY0MmM4OTI4YTU5NzEwYjhmNTQ4MzNlZDUyYjk5NjhkODJkOTE0NjhjMDI2YzllZmI4ZTc2YTZiOThiODBkYmQifQ%3D%3D; path=\/; httponly<\/span>\"\n  <\/samp>]\n<\/samp>]\n<\/pre><script>Sfdump(\"sf-dump-59870290\", {\"maxDepth\":0})<\/script>\n","session_attributes":"<pre class=sf-dump id=sf-dump-876560155 data-indent-pad=\"  \"><span class=sf-dump-note>array:5<\/span> [<samp>\n  \"<span class=sf-dump-key>_token<\/span>\" => \"<span class=sf-dump-str title=\"40 characters\">S6deYl5LDXeJxvnVxuaoov8s9Wvt6DcPqsjVB97D<\/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>_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>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=\"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>211<\/span>\n<\/samp>]\n<\/pre><script>Sfdump(\"sf-dump-876560155\", {\"maxDepth\":0})<\/script>\n"}}