{"__meta":{"id":"X504ce94aaf1d7f44a5417cef5beed506","datetime":"2025-08-05 17:29:59","utime":1754389799.855622,"method":"GET","uri":"\/report\/branch-sources","ip":"14.224.171.92"},"php":{"version":"7.2.24","interface":"apache2handler"},"messages":{"count":0,"messages":[]},"time":{"start":1754389798.281,"end":1754389799.855672,"duration":1.574671983718872,"duration_str":"1.57s","measures":[{"label":"Booting","start":1754389798.281,"relative_start":0,"end":1754389798.34991,"relative_end":1754389798.34991,"duration":0.06891012191772461,"duration_str":"68.91ms","params":[],"collector":null},{"label":"Application","start":1754389798.350481,"relative_start":0.06948113441467285,"end":1754389799.855683,"relative_end":1.1205673217773438e-5,"duration":1.505202054977417,"duration_str":"1.51s","params":[],"collector":null}]},"memory":{"peak_usage":8987576,"peak_usage_str":"9MB"},"exceptions":{"count":0,"exceptions":[]},"views":{"nb_templates":10,"templates":[{"name":"branch.source.index (resources\/views\/branch\/source\/index.blade.php)","param_count":1,"params":["users"],"type":"blade"},{"name":"branch.source.ajax (resources\/views\/branch\/source\/ajax.blade.php)","param_count":7,"params":["obLevel","__env","app","location","branch","errors","users"],"type":"blade"},{"name":"layout.app (resources\/views\/layout\/app.blade.php)","param_count":7,"params":["obLevel","__env","app","location","branch","errors","users"],"type":"blade"},{"name":"layout.assets_head (resources\/views\/layout\/assets_head.blade.php)","param_count":7,"params":["obLevel","__env","app","location","branch","errors","users"],"type":"blade"},{"name":"menu.navbar (resources\/views\/menu\/navbar.blade.php)","param_count":9,"params":["obLevel","__env","app","location","branch","errors","users","permissions","roleGlobal"],"type":"blade"},{"name":"menu.horizantal (resources\/views\/menu\/horizantal.blade.php)","param_count":9,"params":["obLevel","__env","app","location","branch","errors","users","permissions","roleGlobal"],"type":"blade"},{"name":"menu.menu_left (resources\/views\/menu\/menu_left.blade.php)","param_count":9,"params":["obLevel","__env","app","location","branch","errors","users","permissions","roleGlobal"],"type":"blade"},{"name":"layout.footer (resources\/views\/layout\/footer.blade.php)","param_count":9,"params":["obLevel","__env","app","location","branch","errors","users","permissions","roleGlobal"],"type":"blade"},{"name":"layout.assets_script (resources\/views\/layout\/assets_script.blade.php)","param_count":9,"params":["obLevel","__env","app","location","branch","errors","users","permissions","roleGlobal"],"type":"blade"},{"name":"layout._script (resources\/views\/layout\/_script.blade.php)","param_count":9,"params":["obLevel","__env","app","location","branch","errors","users","permissions","roleGlobal"],"type":"blade"}]},"route":{"uri":"GET report\/branch-sources","middleware":"web, auth, check.server","controller":"App\\Http\\Controllers\\BE\\Branch\\BranchController@source","namespace":"App\\Http\\Controllers\\BE","prefix":"\/report","where":[],"as":"report.branch-source","file":"app\/Http\/Controllers\/BE\/Branch\/BranchController.php:141-238"},"queries":{"nb_statements":447,"nb_failed_statements":0,"accumulated_duration":0.98817,"accumulated_duration_str":"988ms","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.01399,"duration_str":"13.99ms","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.00074,"duration_str":"740\u03bcs","stmt_id":"\/vendor\/laravel\/framework\/src\/Illuminate\/Support\/Traits\/ForwardsCalls.php:23","connection":"tintam"},{"sql":"select * from`users` where `id` = 111 and `users`.`deleted_at` is null limit 1","type":"query","params":[],"bindings":["111"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/EloquentUserProvider.php","line":52},{"index":16,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/SessionGuard.php","line":131},{"index":17,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/GuardHelpers.php","line":60},{"index":18,"namespace":"middleware","name":"auth","line":62},{"index":19,"namespace":"middleware","name":"auth","line":41}],"duration":0.00147,"duration_str":"1.47ms","stmt_id":"\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/EloquentUserProvider.php:52","connection":"tintam"},{"sql":"select * from`roles` where `roles`.`id` in (1)","type":"query","params":[],"bindings":[],"hints":null,"backtrace":[{"index":19,"namespace":"middleware","name":"permission","line":19},{"index":20,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":163},{"index":21,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":53},{"index":22,"namespace":"middleware","name":"check.server","line":21},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":163}],"duration":0.001,"duration_str":"1ms","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.0008100000000000001,"duration_str":"810\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:149","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 21 and `schedules`.`date` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["21","2025-08-05 00:00:00","2025-08-05 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.02325,"duration_str":"23.25ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["21","2025-08-05 00:00:00","2025-08-05 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.01008,"duration_str":"10.08ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:185","connection":"tintam"},{"sql":"select sum(`payment_wallets`.`price`) as aggregate from`payment_wallets` inner join `wallet_histories` as `wh` on `wh`.`id` = `payment_wallets`.`order_wallet_id` inner join `customers` as `c` on `wh`.`customer_id` = `c`.`id` where `payment_wallets`.`payment_date` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 21","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.0018,"duration_str":"1.8ms","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-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.00377,"duration_str":"3.77ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `source_id` = 21 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00316,"duration_str":"3.16ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["21","2025-08-05 00:00:00","2025-08-05 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.00186,"duration_str":"1.86ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["21","2025-08-05 00:00:00","2025-08-05 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.00133,"duration_str":"1.33ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["21","2025-08-05 00:00:00","2025-08-05 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.00164,"duration_str":"1.64ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["21","2025-08-05 00:00:00","2025-08-05 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.00131,"duration_str":"1.31ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["21","2025-08-05 00:00:00","2025-08-05 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.0011200000000000001,"duration_str":"1.12ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["21","2025-08-05 00:00:00","2025-08-05 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.00158,"duration_str":"1.58ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["21","2025-08-05 00:00:00","2025-08-05 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.0010400000000000001,"duration_str":"1.04ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["21","2025-08-05 00:00:00","2025-08-05 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.00158,"duration_str":"1.58ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["21","2025-08-05 00:00:00","2025-08-05 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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 21 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00073,"duration_str":"730\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 21 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00123,"duration_str":"1.23ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:229","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.00102,"duration_str":"1.02ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:231","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 23 and `schedules`.`date` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["23","2025-08-05 00:00:00","2025-08-05 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.02156,"duration_str":"21.56ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["23","2025-08-05 00:00:00","2025-08-05 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.01563,"duration_str":"15.63ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 23","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00121,"duration_str":"1.21ms","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-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.0011,"duration_str":"1.1ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `source_id` = 23 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00121,"duration_str":"1.21ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["23","2025-08-05 00:00:00","2025-08-05 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` = 23 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["23","2025-08-05 00:00:00","2025-08-05 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":222},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00087,"duration_str":"870\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 23 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["23","2025-08-05 00:00:00","2025-08-05 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` = 23 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["23","2025-08-05 00:00:00","2025-08-05 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.00183,"duration_str":"1.83ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["23","2025-08-05 00:00:00","2025-08-05 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` = 23 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["23","2025-08-05 00:00:00","2025-08-05 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` = 23 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["23","2025-08-05 00:00:00","2025-08-05 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.0007099999999999999,"duration_str":"710\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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["23","2025-08-05 00:00:00","2025-08-05 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.00093,"duration_str":"930\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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["23","2025-08-05 00:00:00","2025-08-05 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.0009599999999999999,"duration_str":"960\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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 23 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00074,"duration_str":"740\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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 23 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.0009599999999999999,"duration_str":"960\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-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.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` = 29 and `schedules`.`date` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["29","2025-08-05 00:00:00","2025-08-05 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.00174,"duration_str":"1.74ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["29","2025-08-05 00:00:00","2025-08-05 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.00066,"duration_str":"660\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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 29","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.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-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.0011,"duration_str":"1.1ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `source_id` = 29 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00111,"duration_str":"1.11ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["29","2025-08-05 00:00:00","2025-08-05 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` = 29 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["29","2025-08-05 00:00:00","2025-08-05 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.00109,"duration_str":"1.09ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["29","2025-08-05 00:00:00","2025-08-05 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` = 29 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["29","2025-08-05 00:00:00","2025-08-05 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":224},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00114,"duration_str":"1.14ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 29 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["29","2025-08-05 00:00:00","2025-08-05 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.00131,"duration_str":"1.31ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["29","2025-08-05 00:00:00","2025-08-05 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` = 29 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["29","2025-08-05 00:00:00","2025-08-05 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.00107,"duration_str":"1.07ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["29","2025-08-05 00:00:00","2025-08-05 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00095,"duration_str":"950\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 29 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["29","2025-08-05 00:00:00","2025-08-05 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.00199,"duration_str":"1.99ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 29 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.0010500000000000002,"duration_str":"1.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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 29 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.0009,"duration_str":"900\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:229","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.00075,"duration_str":"750\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:231","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 39 and `schedules`.`date` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["39","2025-08-05 00:00:00","2025-08-05 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.00495,"duration_str":"4.95ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["39","2025-08-05 00:00:00","2025-08-05 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.0038,"duration_str":"3.8ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 39","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.0009699999999999999,"duration_str":"970\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-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.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-05 00:00:00' and '2025-08-05 23:59:59' and `source_id` = 39 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.0015400000000000001,"duration_str":"1.54ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["39","2025-08-05 00:00:00","2025-08-05 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":221},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0010400000000000001,"duration_str":"1.04ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 39 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["39","2025-08-05 00:00:00","2025-08-05 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.00092,"duration_str":"920\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` = 39 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["39","2025-08-05 00:00:00","2025-08-05 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` = 39 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["39","2025-08-05 00:00:00","2025-08-05 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":224},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0009699999999999999,"duration_str":"970\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 39 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["39","2025-08-05 00:00:00","2025-08-05 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.00131,"duration_str":"1.31ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["39","2025-08-05 00:00:00","2025-08-05 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` = 39 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["39","2025-08-05 00:00:00","2025-08-05 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.00058,"duration_str":"580\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:227","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 39 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["39","2025-08-05 00:00:00","2025-08-05 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.0007199999999999999,"duration_str":"720\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 39 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["39","2025-08-05 00:00:00","2025-08-05 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00078,"duration_str":"780\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`wallet_histories`.`order_price`) as aggregate from`wallet_histories` inner join `customers` as `c` on `wallet_histories`.`customer_id` = `c`.`id` where `wallet_histories`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 39 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00058,"duration_str":"580\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 39 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.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-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.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` = 40 and `schedules`.`date` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["40","2025-08-05 00:00:00","2025-08-05 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.014960000000000001,"duration_str":"14.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` = 40 and `schedules`.`date` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["40","2025-08-05 00:00:00","2025-08-05 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.014839999999999999,"duration_str":"14.84ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 40","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.0009699999999999999,"duration_str":"970\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-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.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-05 00:00:00' and '2025-08-05 23:59:59' and `source_id` = 40 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00108,"duration_str":"1.08ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["40","2025-08-05 00:00:00","2025-08-05 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.0014399999999999999,"duration_str":"1.44ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["40","2025-08-05 00:00:00","2025-08-05 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.00086,"duration_str":"860\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` = 40 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["40","2025-08-05 00:00:00","2025-08-05 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":223},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0008100000000000001,"duration_str":"810\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 40 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["40","2025-08-05 00:00:00","2025-08-05 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.00093,"duration_str":"930\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` = 40 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["40","2025-08-05 00:00:00","2025-08-05 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` = 40 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["40","2025-08-05 00:00:00","2025-08-05 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.00085,"duration_str":"850\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` = 40 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["40","2025-08-05 00:00:00","2025-08-05 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` = 40 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["40","2025-08-05 00:00:00","2025-08-05 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0007700000000000001,"duration_str":"770\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 40 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["40","2025-08-05 00:00:00","2025-08-05 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00079,"duration_str":"790\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`wallet_histories`.`order_price`) as aggregate from`wallet_histories` inner join `customers` as `c` on `wallet_histories`.`customer_id` = `c`.`id` where `wallet_histories`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 40 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00086,"duration_str":"860\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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 40 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00103,"duration_str":"1.03ms","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-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.00103,"duration_str":"1.03ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["51","2025-08-05 00:00:00","2025-08-05 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.01636,"duration_str":"16.36ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:184","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 51 and `schedules`.`date` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["51","2025-08-05 00:00:00","2025-08-05 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.01253,"duration_str":"12.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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 51","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00083,"duration_str":"830\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-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.0008399999999999999,"duration_str":"840\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-05 00:00:00' and '2025-08-05 23:59:59' and `source_id` = 51 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00085,"duration_str":"850\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:220","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 51 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["51","2025-08-05 00:00:00","2025-08-05 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.00078,"duration_str":"780\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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["51","2025-08-05 00:00:00","2025-08-05 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` = 51 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["51","2025-08-05 00:00:00","2025-08-05 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.00076,"duration_str":"760\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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["51","2025-08-05 00:00:00","2025-08-05 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.00085,"duration_str":"850\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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["51","2025-08-05 00:00:00","2025-08-05 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` = 51 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["51","2025-08-05 00:00:00","2025-08-05 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":226},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0009599999999999999,"duration_str":"960\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:226","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 51 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["51","2025-08-05 00:00:00","2025-08-05 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.0011799999999999998,"duration_str":"1.18ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["51","2025-08-05 00:00:00","2025-08-05 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.00082,"duration_str":"820\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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["51","2025-08-05 00:00:00","2025-08-05 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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 51 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00075,"duration_str":"750\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 51 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.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-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.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` = 54 and `schedules`.`date` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["54","2025-08-05 00:00:00","2025-08-05 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.0106,"duration_str":"10.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` = 54 and `schedules`.`date` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["54","2025-08-05 00:00:00","2025-08-05 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.01035,"duration_str":"10.35ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 54","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00101,"duration_str":"1.01ms","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-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.0011,"duration_str":"1.1ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `source_id` = 54 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00109,"duration_str":"1.09ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:220","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 54 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["54","2025-08-05 00:00:00","2025-08-05 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.00099,"duration_str":"990\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` = 54 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["54","2025-08-05 00:00:00","2025-08-05 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.0009699999999999999,"duration_str":"970\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 54 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["54","2025-08-05 00:00:00","2025-08-05 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":223},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00108,"duration_str":"1.08ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 54 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["54","2025-08-05 00:00:00","2025-08-05 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.00115,"duration_str":"1.15ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["54","2025-08-05 00:00:00","2025-08-05 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` = 54 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["54","2025-08-05 00:00:00","2025-08-05 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":226},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0008399999999999999,"duration_str":"840\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:226","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 54 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["54","2025-08-05 00:00:00","2025-08-05 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":227},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00087,"duration_str":"870\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:227","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 54 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["54","2025-08-05 00:00:00","2025-08-05 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00086,"duration_str":"860\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 54 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["54","2025-08-05 00:00:00","2025-08-05 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.00095,"duration_str":"950\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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 54 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 54 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00125,"duration_str":"1.25ms","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-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.00093,"duration_str":"930\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:231","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 55 and `schedules`.`date` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["55","2025-08-05 00:00:00","2025-08-05 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.01812,"duration_str":"18.12ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:184","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 55 and `schedules`.`date` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["55","2025-08-05 00:00:00","2025-08-05 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.00899,"duration_str":"8.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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 55","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00088,"duration_str":"880\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-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.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-05 00:00:00' and '2025-08-05 23:59:59' and `source_id` = 55 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00078,"duration_str":"780\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:220","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 55 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["55","2025-08-05 00:00:00","2025-08-05 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.00073,"duration_str":"730\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 55 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["55","2025-08-05 00:00:00","2025-08-05 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` = 55 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["55","2025-08-05 00:00:00","2025-08-05 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.00062,"duration_str":"620\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 55 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["55","2025-08-05 00:00:00","2025-08-05 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.00069,"duration_str":"690\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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["55","2025-08-05 00:00:00","2025-08-05 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":225},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0007,"duration_str":"700\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:225","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 55 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["55","2025-08-05 00:00:00","2025-08-05 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.00087,"duration_str":"870\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:226","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 55 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["55","2025-08-05 00:00:00","2025-08-05 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":227},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0008100000000000001,"duration_str":"810\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:227","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 55 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["55","2025-08-05 00:00:00","2025-08-05 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` = 55 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["55","2025-08-05 00:00:00","2025-08-05 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.0008100000000000001,"duration_str":"810\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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 55 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00064,"duration_str":"640\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 55 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00076,"duration_str":"760\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-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.00075,"duration_str":"750\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-05 00:00:00' and '2025-08-05 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["57","2025-08-05 00:00:00","2025-08-05 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.00157,"duration_str":"1.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` = 57 and `schedules`.`date` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["57","2025-08-05 00:00:00","2025-08-05 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.0008900000000000001,"duration_str":"890\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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 57","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.0009,"duration_str":"900\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-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.00163,"duration_str":"1.63ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `source_id` = 57 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00091,"duration_str":"910\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:220","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 57 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["57","2025-08-05 00:00:00","2025-08-05 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.00107,"duration_str":"1.07ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["57","2025-08-05 00:00:00","2025-08-05 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":222},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00087,"duration_str":"870\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 57 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["57","2025-08-05 00:00:00","2025-08-05 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.00106,"duration_str":"1.06ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["57","2025-08-05 00:00:00","2025-08-05 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.00098,"duration_str":"980\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 57 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["57","2025-08-05 00:00:00","2025-08-05 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.00127,"duration_str":"1.27ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["57","2025-08-05 00:00:00","2025-08-05 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":226},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00101,"duration_str":"1.01ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:226","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 57 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["57","2025-08-05 00:00:00","2025-08-05 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.00141,"duration_str":"1.41ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["57","2025-08-05 00:00:00","2025-08-05 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.0015300000000000001,"duration_str":"1.53ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["57","2025-08-05 00:00:00","2025-08-05 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.00133,"duration_str":"1.33ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 57 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00085,"duration_str":"850\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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 57 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00079,"duration_str":"790\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-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.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` = 60 and `schedules`.`date` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["60","2025-08-05 00:00:00","2025-08-05 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.011720000000000001,"duration_str":"11.72ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["60","2025-08-05 00:00:00","2025-08-05 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.012199999999999999,"duration_str":"12.2ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:185","connection":"tintam"},{"sql":"select sum(`payment_wallets`.`price`) as aggregate from`payment_wallets` inner join `wallet_histories` as `wh` on `wh`.`id` = `payment_wallets`.`order_wallet_id` inner join `customers` as `c` on `wh`.`customer_id` = `c`.`id` where `payment_wallets`.`payment_date` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 60","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.0011,"duration_str":"1.1ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:208","connection":"tintam"},{"sql":"select sum(`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.0010500000000000002,"duration_str":"1.05ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `source_id` = 60 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.001,"duration_str":"1ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["60","2025-08-05 00:00:00","2025-08-05 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.0008100000000000001,"duration_str":"810\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 60 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["60","2025-08-05 00:00:00","2025-08-05 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.0008900000000000001,"duration_str":"890\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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["60","2025-08-05 00:00:00","2025-08-05 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.0010500000000000002,"duration_str":"1.05ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["60","2025-08-05 00:00:00","2025-08-05 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":224},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00076,"duration_str":"760\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 60 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["60","2025-08-05 00:00:00","2025-08-05 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.00065,"duration_str":"650\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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["60","2025-08-05 00:00:00","2025-08-05 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` = 60 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["60","2025-08-05 00:00:00","2025-08-05 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.0007199999999999999,"duration_str":"720\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:227","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 60 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["60","2025-08-05 00:00:00","2025-08-05 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00075,"duration_str":"750\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 60 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["60","2025-08-05 00:00:00","2025-08-05 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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 60 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.0007199999999999999,"duration_str":"720\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 60 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00113,"duration_str":"1.13ms","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-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.001,"duration_str":"1ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["61","2025-08-05 00:00:00","2025-08-05 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.011439999999999999,"duration_str":"11.44ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["61","2025-08-05 00:00:00","2025-08-05 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.006730000000000001,"duration_str":"6.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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 61","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.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-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.00126,"duration_str":"1.26ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `source_id` = 61 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00121,"duration_str":"1.21ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["61","2025-08-05 00:00:00","2025-08-05 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` = 61 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["61","2025-08-05 00:00:00","2025-08-05 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.0013700000000000001,"duration_str":"1.37ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["61","2025-08-05 00:00:00","2025-08-05 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.00098,"duration_str":"980\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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["61","2025-08-05 00:00:00","2025-08-05 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` = 61 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["61","2025-08-05 00:00:00","2025-08-05 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` = 61 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["61","2025-08-05 00:00:00","2025-08-05 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":226},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00099,"duration_str":"990\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:226","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 61 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["61","2025-08-05 00:00:00","2025-08-05 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":227},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00087,"duration_str":"870\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:227","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 61 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["61","2025-08-05 00:00:00","2025-08-05 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.0008900000000000001,"duration_str":"890\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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["61","2025-08-05 00:00:00","2025-08-05 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.00098,"duration_str":"980\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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 61 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00099,"duration_str":"990\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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 61 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00095,"duration_str":"950\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:229","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.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` = 62 and `schedules`.`date` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["62","2025-08-05 00:00:00","2025-08-05 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.00087,"duration_str":"870\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:184","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 62 and `schedules`.`date` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["62","2025-08-05 00:00:00","2025-08-05 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":185},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00068,"duration_str":"680\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:185","connection":"tintam"},{"sql":"select sum(`payment_wallets`.`price`) as aggregate from`payment_wallets` inner join `wallet_histories` as `wh` on `wh`.`id` = `payment_wallets`.`order_wallet_id` inner join `customers` as `c` on `wh`.`customer_id` = `c`.`id` where `payment_wallets`.`payment_date` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 62","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00148,"duration_str":"1.48ms","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-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.00113,"duration_str":"1.13ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `source_id` = 62 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.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` = 62 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["62","2025-08-05 00:00:00","2025-08-05 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.00092,"duration_str":"920\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 62 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["62","2025-08-05 00:00:00","2025-08-05 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` = 62 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["62","2025-08-05 00:00:00","2025-08-05 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":223},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0007099999999999999,"duration_str":"710\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 62 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["62","2025-08-05 00:00:00","2025-08-05 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` = 62 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["62","2025-08-05 00:00:00","2025-08-05 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.00085,"duration_str":"850\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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["62","2025-08-05 00:00:00","2025-08-05 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` = 62 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["62","2025-08-05 00:00:00","2025-08-05 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` = 62 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["62","2025-08-05 00:00:00","2025-08-05 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.0009699999999999999,"duration_str":"970\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 62 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["62","2025-08-05 00:00:00","2025-08-05 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.00086,"duration_str":"860\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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 62 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00091,"duration_str":"910\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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 62 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00106,"duration_str":"1.06ms","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-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.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` = 63 and `schedules`.`date` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["63","2025-08-05 00:00:00","2025-08-05 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.01462,"duration_str":"14.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` = 63 and `schedules`.`date` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["63","2025-08-05 00:00:00","2025-08-05 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.0158,"duration_str":"15.8ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 63","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.0011799999999999998,"duration_str":"1.18ms","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-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.00151,"duration_str":"1.51ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `source_id` = 63 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.0011799999999999998,"duration_str":"1.18ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["63","2025-08-05 00:00:00","2025-08-05 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` = 63 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["63","2025-08-05 00:00:00","2025-08-05 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` = 63 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["63","2025-08-05 00:00:00","2025-08-05 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.0007700000000000001,"duration_str":"770\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 63 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["63","2025-08-05 00:00:00","2025-08-05 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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["63","2025-08-05 00:00:00","2025-08-05 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.00093,"duration_str":"930\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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["63","2025-08-05 00:00:00","2025-08-05 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":226},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00086,"duration_str":"860\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:226","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 63 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["63","2025-08-05 00:00:00","2025-08-05 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` = 63 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["63","2025-08-05 00:00:00","2025-08-05 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` = 63 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["63","2025-08-05 00:00:00","2025-08-05 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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 63 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00057,"duration_str":"570\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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 63 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.0011899999999999999,"duration_str":"1.19ms","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-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.00103,"duration_str":"1.03ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["65","2025-08-05 00:00:00","2025-08-05 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.00677,"duration_str":"6.77ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["65","2025-08-05 00:00:00","2025-08-05 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.0060999999999999995,"duration_str":"6.1ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 65","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00111,"duration_str":"1.11ms","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-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.00117,"duration_str":"1.17ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `source_id` = 65 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00136,"duration_str":"1.36ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["65","2025-08-05 00:00:00","2025-08-05 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.00123,"duration_str":"1.23ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["65","2025-08-05 00:00:00","2025-08-05 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.00116,"duration_str":"1.16ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["65","2025-08-05 00:00:00","2025-08-05 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.00078,"duration_str":"780\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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["65","2025-08-05 00:00:00","2025-08-05 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":224},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0007700000000000001,"duration_str":"770\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 65 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["65","2025-08-05 00:00:00","2025-08-05 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` = 65 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["65","2025-08-05 00:00:00","2025-08-05 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` = 65 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["65","2025-08-05 00:00:00","2025-08-05 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.00108,"duration_str":"1.08ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["65","2025-08-05 00:00:00","2025-08-05 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.0009,"duration_str":"900\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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["65","2025-08-05 00:00:00","2025-08-05 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.00093,"duration_str":"930\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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 65 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00116,"duration_str":"1.16ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 65 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00107,"duration_str":"1.07ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:229","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.0010400000000000001,"duration_str":"1.04ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:231","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 66 and `schedules`.`date` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["66","2025-08-05 00:00:00","2025-08-05 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.0011899999999999999,"duration_str":"1.19ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["66","2025-08-05 00:00:00","2025-08-05 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.00094,"duration_str":"940\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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 66","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00101,"duration_str":"1.01ms","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-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.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-05 00:00:00' and '2025-08-05 23:59:59' and `source_id` = 66 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.0006,"duration_str":"600\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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["66","2025-08-05 00:00:00","2025-08-05 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":221},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00067,"duration_str":"670\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 66 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["66","2025-08-05 00:00:00","2025-08-05 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.00067,"duration_str":"670\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 66 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["66","2025-08-05 00:00:00","2025-08-05 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.0010400000000000001,"duration_str":"1.04ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["66","2025-08-05 00:00:00","2025-08-05 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.0010500000000000002,"duration_str":"1.05ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["66","2025-08-05 00:00:00","2025-08-05 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.0019299999999999999,"duration_str":"1.93ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["66","2025-08-05 00:00:00","2025-08-05 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.0018,"duration_str":"1.8ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["66","2025-08-05 00:00:00","2025-08-05 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.00171,"duration_str":"1.71ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["66","2025-08-05 00:00:00","2025-08-05 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.00173,"duration_str":"1.73ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["66","2025-08-05 00:00:00","2025-08-05 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.00491,"duration_str":"4.91ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 66 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00133,"duration_str":"1.33ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 66 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.0009699999999999999,"duration_str":"970\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-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.00085,"duration_str":"850\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:231","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 67 and `schedules`.`date` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["67","2025-08-05 00:00:00","2025-08-05 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.01776,"duration_str":"17.76ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["67","2025-08-05 00:00:00","2025-08-05 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.01801,"duration_str":"18.01ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 67","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.0011,"duration_str":"1.1ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:208","connection":"tintam"},{"sql":"select sum(`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.0014299999999999998,"duration_str":"1.43ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `source_id` = 67 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.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` = 67 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["67","2025-08-05 00:00:00","2025-08-05 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.00125,"duration_str":"1.25ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["67","2025-08-05 00:00:00","2025-08-05 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.00123,"duration_str":"1.23ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["67","2025-08-05 00:00:00","2025-08-05 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.0016899999999999999,"duration_str":"1.69ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["67","2025-08-05 00:00:00","2025-08-05 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.00148,"duration_str":"1.48ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["67","2025-08-05 00:00:00","2025-08-05 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.00171,"duration_str":"1.71ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["67","2025-08-05 00:00:00","2025-08-05 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.00108,"duration_str":"1.08ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["67","2025-08-05 00:00:00","2025-08-05 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.0011799999999999998,"duration_str":"1.18ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["67","2025-08-05 00:00:00","2025-08-05 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` = 67 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["67","2025-08-05 00:00:00","2025-08-05 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.0030299999999999997,"duration_str":"3.03ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 67 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00141,"duration_str":"1.41ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 67 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00121,"duration_str":"1.21ms","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-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.0015300000000000001,"duration_str":"1.53ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["68","2025-08-05 00:00:00","2025-08-05 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.012320000000000001,"duration_str":"12.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` = 68 and `schedules`.`date` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["68","2025-08-05 00:00:00","2025-08-05 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.011640000000000001,"duration_str":"11.64ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 68","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00165,"duration_str":"1.65ms","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-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.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-05 00:00:00' and '2025-08-05 23:59:59' and `source_id` = 68 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00248,"duration_str":"2.48ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["68","2025-08-05 00:00:00","2025-08-05 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.00149,"duration_str":"1.49ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["68","2025-08-05 00:00:00","2025-08-05 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":222},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00151,"duration_str":"1.51ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 68 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["68","2025-08-05 00:00:00","2025-08-05 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.00171,"duration_str":"1.71ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["68","2025-08-05 00:00:00","2025-08-05 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` = 68 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["68","2025-08-05 00:00:00","2025-08-05 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.00111,"duration_str":"1.11ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["68","2025-08-05 00:00:00","2025-08-05 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":226},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0009599999999999999,"duration_str":"960\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:226","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 68 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["68","2025-08-05 00:00:00","2025-08-05 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.0009699999999999999,"duration_str":"970\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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["68","2025-08-05 00:00:00","2025-08-05 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00075,"duration_str":"750\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 68 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["68","2025-08-05 00:00:00","2025-08-05 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00099,"duration_str":"990\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`wallet_histories`.`order_price`) as aggregate from`wallet_histories` inner join `customers` as `c` on `wallet_histories`.`customer_id` = `c`.`id` where `wallet_histories`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 68 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 68 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.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-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.00083,"duration_str":"830\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:231","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 69 and `schedules`.`date` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["69","2025-08-05 00:00:00","2025-08-05 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.046979999999999994,"duration_str":"46.98ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:184","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 69 and `schedules`.`date` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["69","2025-08-05 00:00:00","2025-08-05 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.02429,"duration_str":"24.29ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 69","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00139,"duration_str":"1.39ms","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-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.00156,"duration_str":"1.56ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `source_id` = 69 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00152,"duration_str":"1.52ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["69","2025-08-05 00:00:00","2025-08-05 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.00123,"duration_str":"1.23ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["69","2025-08-05 00:00:00","2025-08-05 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.0009699999999999999,"duration_str":"970\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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["69","2025-08-05 00:00:00","2025-08-05 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.0010400000000000001,"duration_str":"1.04ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["69","2025-08-05 00:00:00","2025-08-05 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":224},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00086,"duration_str":"860\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 69 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["69","2025-08-05 00:00:00","2025-08-05 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` = 69 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["69","2025-08-05 00:00:00","2025-08-05 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":226},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00082,"duration_str":"820\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:226","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 69 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["69","2025-08-05 00:00:00","2025-08-05 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.00135,"duration_str":"1.35ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["69","2025-08-05 00:00:00","2025-08-05 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.001,"duration_str":"1ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["69","2025-08-05 00:00:00","2025-08-05 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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 69 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00073,"duration_str":"730\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 69 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00093,"duration_str":"930\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-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.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` = 70 and `schedules`.`date` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["70","2025-08-05 00:00:00","2025-08-05 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.0008900000000000001,"duration_str":"890\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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["70","2025-08-05 00:00:00","2025-08-05 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.0007099999999999999,"duration_str":"710\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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 70","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00114,"duration_str":"1.14ms","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-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.0011,"duration_str":"1.1ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `source_id` = 70 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00082,"duration_str":"820\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:220","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 70 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["70","2025-08-05 00:00:00","2025-08-05 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":221},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00086,"duration_str":"860\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 70 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["70","2025-08-05 00:00:00","2025-08-05 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.00093,"duration_str":"930\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 70 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["70","2025-08-05 00:00:00","2025-08-05 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.00082,"duration_str":"820\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 70 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["70","2025-08-05 00:00:00","2025-08-05 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.00093,"duration_str":"930\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 70 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["70","2025-08-05 00:00:00","2025-08-05 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.00068,"duration_str":"680\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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["70","2025-08-05 00:00:00","2025-08-05 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.00057,"duration_str":"570\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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["70","2025-08-05 00:00:00","2025-08-05 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.0006,"duration_str":"600\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:227","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 70 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["70","2025-08-05 00:00:00","2025-08-05 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0007,"duration_str":"700\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 70 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["70","2025-08-05 00:00:00","2025-08-05 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.00058,"duration_str":"580\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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 70 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00051,"duration_str":"510\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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 70 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00079,"duration_str":"790\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-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.00053,"duration_str":"530\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-05 00:00:00' and '2025-08-05 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["73","2025-08-05 00:00:00","2025-08-05 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.00797,"duration_str":"7.97ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:184","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 73 and `schedules`.`date` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["73","2025-08-05 00:00:00","2025-08-05 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.00827,"duration_str":"8.27ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 73","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00095,"duration_str":"950\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:208","connection":"tintam"},{"sql":"select sum(`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.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-05 00:00:00' and '2025-08-05 23:59:59' and `source_id` = 73 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.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` = 73 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["73","2025-08-05 00:00:00","2025-08-05 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.00064,"duration_str":"640\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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["73","2025-08-05 00:00:00","2025-08-05 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.00066,"duration_str":"660\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 73 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["73","2025-08-05 00:00:00","2025-08-05 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.00067,"duration_str":"670\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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["73","2025-08-05 00:00:00","2025-08-05 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":224},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00058,"duration_str":"580\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 73 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["73","2025-08-05 00:00:00","2025-08-05 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.00061,"duration_str":"610\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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["73","2025-08-05 00:00:00","2025-08-05 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":226},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0005899999999999999,"duration_str":"590\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:226","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 73 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["73","2025-08-05 00:00:00","2025-08-05 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` = 73 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["73","2025-08-05 00:00:00","2025-08-05 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.0005899999999999999,"duration_str":"590\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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["73","2025-08-05 00:00:00","2025-08-05 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0006,"duration_str":"600\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`wallet_histories`.`order_price`) as aggregate from`wallet_histories` inner join `customers` as `c` on `wallet_histories`.`customer_id` = `c`.`id` where `wallet_histories`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 73 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00053,"duration_str":"530\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 73 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00064,"duration_str":"640\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-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.0006,"duration_str":"600\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-05 00:00:00' and '2025-08-05 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["76","2025-08-05 00:00:00","2025-08-05 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.00113,"duration_str":"1.13ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:184","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 76 and `schedules`.`date` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["76","2025-08-05 00:00:00","2025-08-05 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.0009,"duration_str":"900\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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 76","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00166,"duration_str":"1.66ms","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-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.0014,"duration_str":"1.4ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `source_id` = 76 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00085,"duration_str":"850\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:220","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 76 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["76","2025-08-05 00:00:00","2025-08-05 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.0009,"duration_str":"900\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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["76","2025-08-05 00:00:00","2025-08-05 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":222},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0009599999999999999,"duration_str":"960\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 76 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["76","2025-08-05 00:00:00","2025-08-05 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.00131,"duration_str":"1.31ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["76","2025-08-05 00:00:00","2025-08-05 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":224},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00102,"duration_str":"1.02ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 76 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["76","2025-08-05 00:00:00","2025-08-05 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` = 76 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["76","2025-08-05 00:00:00","2025-08-05 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":226},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0007700000000000001,"duration_str":"770\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:226","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 76 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["76","2025-08-05 00:00:00","2025-08-05 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.00067,"duration_str":"670\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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["76","2025-08-05 00:00:00","2025-08-05 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.00172,"duration_str":"1.72ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["76","2025-08-05 00:00:00","2025-08-05 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0009,"duration_str":"900\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`wallet_histories`.`order_price`) as aggregate from`wallet_histories` inner join `customers` as `c` on `wallet_histories`.`customer_id` = `c`.`id` where `wallet_histories`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 76 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.0007099999999999999,"duration_str":"710\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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 76 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00103,"duration_str":"1.03ms","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-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.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` = 77 and `schedules`.`date` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["77","2025-08-05 00:00:00","2025-08-05 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.02375,"duration_str":"23.75ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["77","2025-08-05 00:00:00","2025-08-05 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.01847,"duration_str":"18.47ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 77","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.0009699999999999999,"duration_str":"970\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-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.0013,"duration_str":"1.3ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `source_id` = 77 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00106,"duration_str":"1.06ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:220","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 77 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["77","2025-08-05 00:00:00","2025-08-05 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.00098,"duration_str":"980\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 77 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["77","2025-08-05 00:00:00","2025-08-05 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.00079,"duration_str":"790\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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["77","2025-08-05 00:00:00","2025-08-05 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` = 77 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["77","2025-08-05 00:00:00","2025-08-05 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.00067,"duration_str":"670\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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["77","2025-08-05 00:00:00","2025-08-05 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":225},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00087,"duration_str":"870\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:225","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 77 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["77","2025-08-05 00:00:00","2025-08-05 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` = 77 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["77","2025-08-05 00:00:00","2025-08-05 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` = 77 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["77","2025-08-05 00:00:00","2025-08-05 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.00074,"duration_str":"740\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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["77","2025-08-05 00:00:00","2025-08-05 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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 77 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00073,"duration_str":"730\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 77 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.0009,"duration_str":"900\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:229","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.0008399999999999999,"duration_str":"840\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:231","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 78 and `schedules`.`date` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["78","2025-08-05 00:00:00","2025-08-05 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.027,"duration_str":"27ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["78","2025-08-05 00:00:00","2025-08-05 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.01643,"duration_str":"16.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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 78","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00098,"duration_str":"980\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-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.00102,"duration_str":"1.02ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `source_id` = 78 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00115,"duration_str":"1.15ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["78","2025-08-05 00:00:00","2025-08-05 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.0008,"duration_str":"800\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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["78","2025-08-05 00:00:00","2025-08-05 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` = 78 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["78","2025-08-05 00:00:00","2025-08-05 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.00127,"duration_str":"1.27ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["78","2025-08-05 00:00:00","2025-08-05 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.0007099999999999999,"duration_str":"710\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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["78","2025-08-05 00:00:00","2025-08-05 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":225},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00074,"duration_str":"740\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:225","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 78 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["78","2025-08-05 00:00:00","2025-08-05 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.0007099999999999999,"duration_str":"710\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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["78","2025-08-05 00:00:00","2025-08-05 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` = 78 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["78","2025-08-05 00:00:00","2025-08-05 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.00069,"duration_str":"690\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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["78","2025-08-05 00:00:00","2025-08-05 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.00075,"duration_str":"750\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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 78 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 78 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.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-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.00065,"duration_str":"650\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-05 00:00:00' and '2025-08-05 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["79","2025-08-05 00:00:00","2025-08-05 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.00951,"duration_str":"9.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` = 79 and `schedules`.`date` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["79","2025-08-05 00:00:00","2025-08-05 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.00899,"duration_str":"8.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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 79","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.0020299999999999997,"duration_str":"2.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-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.00133,"duration_str":"1.33ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `source_id` = 79 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00156,"duration_str":"1.56ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["79","2025-08-05 00:00:00","2025-08-05 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.00102,"duration_str":"1.02ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["79","2025-08-05 00:00:00","2025-08-05 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` = 79 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["79","2025-08-05 00:00:00","2025-08-05 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` = 79 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["79","2025-08-05 00:00:00","2025-08-05 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.00078,"duration_str":"780\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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["79","2025-08-05 00:00:00","2025-08-05 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":225},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00074,"duration_str":"740\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:225","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 79 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["79","2025-08-05 00:00:00","2025-08-05 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.00122,"duration_str":"1.22ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["79","2025-08-05 00:00:00","2025-08-05 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.00229,"duration_str":"2.29ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:227","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 79 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["79","2025-08-05 00:00:00","2025-08-05 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.00125,"duration_str":"1.25ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["79","2025-08-05 00:00:00","2025-08-05 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.00117,"duration_str":"1.17ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 79 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00069,"duration_str":"690\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 79 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.0011,"duration_str":"1.1ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:229","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.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` = 80 and `schedules`.`date` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["80","2025-08-05 00:00:00","2025-08-05 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.00941,"duration_str":"9.41ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["80","2025-08-05 00:00:00","2025-08-05 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.009689999999999999,"duration_str":"9.69ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 80","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00085,"duration_str":"850\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-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.001,"duration_str":"1ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `source_id` = 80 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00099,"duration_str":"990\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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["80","2025-08-05 00:00:00","2025-08-05 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":221},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00086,"duration_str":"860\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 80 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["80","2025-08-05 00:00:00","2025-08-05 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.0008,"duration_str":"800\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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["80","2025-08-05 00:00:00","2025-08-05 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.00148,"duration_str":"1.48ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["80","2025-08-05 00:00:00","2025-08-05 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":224},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00094,"duration_str":"940\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 80 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["80","2025-08-05 00:00:00","2025-08-05 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.00076,"duration_str":"760\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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["80","2025-08-05 00:00:00","2025-08-05 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":226},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0007700000000000001,"duration_str":"770\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:226","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 80 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["80","2025-08-05 00:00:00","2025-08-05 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.00106,"duration_str":"1.06ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["80","2025-08-05 00:00:00","2025-08-05 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.0009,"duration_str":"900\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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["80","2025-08-05 00:00:00","2025-08-05 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.00085,"duration_str":"850\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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 80 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.0007199999999999999,"duration_str":"720\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 80 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.0010500000000000002,"duration_str":"1.05ms","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-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.00083,"duration_str":"830\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-05 00:00:00' and '2025-08-05 23:59:59' and `status` in (3, 4) and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["82","2025-08-05 00:00:00","2025-08-05 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.01052,"duration_str":"10.52ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["82","2025-08-05 00:00:00","2025-08-05 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.009710000000000002,"duration_str":"9.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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 82","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.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-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.00099,"duration_str":"990\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-05 00:00:00' and '2025-08-05 23:59:59' and `source_id` = 82 and `customers`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00191,"duration_str":"1.91ms","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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["82","2025-08-05 00:00:00","2025-08-05 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":221},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0010400000000000001,"duration_str":"1.04ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 82 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["82","2025-08-05 00:00:00","2025-08-05 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":222},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00095,"duration_str":"950\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 82 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["82","2025-08-05 00:00:00","2025-08-05 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.00082,"duration_str":"820\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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["82","2025-08-05 00:00:00","2025-08-05 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` = 82 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["82","2025-08-05 00:00:00","2025-08-05 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.00057,"duration_str":"570\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-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["82","2025-08-05 00:00:00","2025-08-05 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":226},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00064,"duration_str":"640\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:226","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 82 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["82","2025-08-05 00:00:00","2025-08-05 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` = 82 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 0 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["82","2025-08-05 00:00:00","2025-08-05 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` = 82 and `orders`.`created_at` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `orders`.`is_upsale` = 1 and `orders`.`deleted_at` is null","type":"query","params":[],"bindings":["82","2025-08-05 00:00:00","2025-08-05 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-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 82 and `wallet_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.00076,"duration_str":"760\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-05 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 82 and `payment_histories`.`deleted_at` is null","type":"query","params":[],"bindings":["2025-08-05 00:00:00","2025-08-05 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.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-05 00:00:00' and '2025-08-05 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-05 00:00:00","2025-08-05 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.00074,"duration_str":"740\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":"XpsXm4n6Cisi2wSpHR6xOWOL5n6p26TvBjm24uO9","_flash":"array:2 [\n  \"old\" => []\n  \"new\" => []\n]","url":"array:1 [\n  \"intended\" => \"https:\/\/tintam.flyspa.vn\/customers\"\n]","_previous":"array:1 [\n  \"url\" => \"https:\/\/tintam.flyspa.vn\/report\/branch-sources\"\n]","login_web_59ba36addc2b2f9401580f014c7f58ea4e30989d":"111","PHPDEBUGBAR_STACK_DATA":"[]"},"request":{"path_info":"\/report\/branch-sources","status_code":"<pre class=sf-dump id=sf-dump-1103284051 data-indent-pad=\"  \"><span class=sf-dump-num>200<\/span>\n<\/pre><script>Sfdump(\"sf-dump-1103284051\", {\"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-1761481142 data-indent-pad=\"  \">[]\n<\/pre><script>Sfdump(\"sf-dump-1761481142\", {\"maxDepth\":0})<\/script>\n","request_request":"<pre class=sf-dump id=sf-dump-972193448 data-indent-pad=\"  \">[]\n<\/pre><script>Sfdump(\"sf-dump-972193448\", {\"maxDepth\":0})<\/script>\n","request_headers":"<pre class=sf-dump id=sf-dump-1668400379 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>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=\"9 characters\">max-age=0<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>sec-ch-ua<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"65 characters\">&quot;Google Chrome&quot;;v=&quot;137&quot;, &quot;Chromium&quot;;v=&quot;137&quot;, &quot;Not\/A)Brand&quot;;v=&quot;24&quot;<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>sec-ch-ua-mobile<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"2 characters\">?0<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>sec-ch-ua-platform<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"9 characters\">&quot;Windows&quot;<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>upgrade-insecure-requests<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str>1<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>user-agent<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"111 characters\">Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/137.0.0.0 Safari\/537.36<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>accept<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"135 characters\">text\/html,application\/xhtml+xml,application\/xml;q=0.9,image\/avif,image\/webp,image\/apng,*\/*;q=0.8,application\/signed-exchange;v=b3;q=0.7<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>sec-fetch-site<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"11 characters\">same-origin<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>sec-fetch-mode<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"8 characters\">navigate<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>sec-fetch-dest<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"8 characters\">document<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>referer<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"34 characters\">https:\/\/tintam.flyspa.vn\/customers<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>accept-encoding<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"23 characters\">gzip, deflate, br, zstd<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>accept-language<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"44 characters\">vi,en-US;q=0.9,en;q=0.8,fr-FR;q=0.7,fr;q=0.6<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>cookie<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"523 characters\">XSRF-TOKEN=eyJpdiI6ImZHQlVPVXR1MW1ib21uZVZlRmZlZEE9PSIsInZhbHVlIjoiVWUxZU1adncrM1pIVjRzTlpXQnlHWTNvelI5T09USXRpQmtxRW5yb0ZUa016WmZTSWQzRERRVHFxcHBJYjM4cyIsIm1hYyI6Ijc0Zjk2NjRhOTZlNDViNDQ0OWUyNTA2NTUxNGQ3MzQ5YjQ0Zjk3NmNiYjBjYzAxZTUxZWVjNWE0M2UyNGQ1ZjUifQ%3D%3D; laravel_session=eyJpdiI6IlIwVHNDN1lZanNoOGNSSHRkS3dZXC9RPT0iLCJ2YWx1ZSI6Imh1Qkx6bjU0WWZON1p6Yk5FS2JzR3lKRmo3clp1TnhVK3g4YWRiYnRvU1lWQUlwYkY1YjlQTkhKUVRSUERIUVUiLCJtYWMiOiJmM2ZmOTFlYjlhNTFjZDM2ZjVlN2VkYzBlZDg2ODUzMzFiNjkzOWYyYzQyYmJiZjBlZjZiMzQ3YzcxNWFiMWU2In0%3D<\/span>\"\n  <\/samp>]\n<\/samp>]\n<\/pre><script>Sfdump(\"sf-dump-1668400379\", {\"maxDepth\":0})<\/script>\n","request_server":"<pre class=sf-dump id=sf-dump-1501628542 data-indent-pad=\"  \"><span class=sf-dump-note>array:45<\/span> [<samp>\n  \"<span class=sf-dump-key>REDIRECT_HTTPS<\/span>\" => \"<span class=sf-dump-str title=\"2 characters\">on<\/span>\"\n  \"<span class=sf-dump-key>REDIRECT_SSL_TLS_SNI<\/span>\" => \"<span class=sf-dump-str title=\"16 characters\">tintam.flyspa.vn<\/span>\"\n  \"<span class=sf-dump-key>REDIRECT_STATUS<\/span>\" => \"<span class=sf-dump-str title=\"3 characters\">200<\/span>\"\n  \"<span class=sf-dump-key>HTTPS<\/span>\" => \"<span class=sf-dump-str title=\"2 characters\">on<\/span>\"\n  \"<span class=sf-dump-key>SSL_TLS_SNI<\/span>\" => \"<span class=sf-dump-str title=\"16 characters\">tintam.flyspa.vn<\/span>\"\n  \"<span class=sf-dump-key>HTTP_HOST<\/span>\" => \"<span class=sf-dump-str title=\"16 characters\">tintam.flyspa.vn<\/span>\"\n  \"<span class=sf-dump-key>HTTP_CONNECTION<\/span>\" => \"<span class=sf-dump-str title=\"10 characters\">keep-alive<\/span>\"\n  \"<span class=sf-dump-key>HTTP_CACHE_CONTROL<\/span>\" => \"<span class=sf-dump-str title=\"9 characters\">max-age=0<\/span>\"\n  \"<span class=sf-dump-key>HTTP_SEC_CH_UA<\/span>\" => \"<span class=sf-dump-str title=\"65 characters\">&quot;Google Chrome&quot;;v=&quot;137&quot;, &quot;Chromium&quot;;v=&quot;137&quot;, &quot;Not\/A)Brand&quot;;v=&quot;24&quot;<\/span>\"\n  \"<span class=sf-dump-key>HTTP_SEC_CH_UA_MOBILE<\/span>\" => \"<span class=sf-dump-str title=\"2 characters\">?0<\/span>\"\n  \"<span class=sf-dump-key>HTTP_SEC_CH_UA_PLATFORM<\/span>\" => \"<span class=sf-dump-str title=\"9 characters\">&quot;Windows&quot;<\/span>\"\n  \"<span class=sf-dump-key>HTTP_UPGRADE_INSECURE_REQUESTS<\/span>\" => \"<span class=sf-dump-str>1<\/span>\"\n  \"<span class=sf-dump-key>HTTP_USER_AGENT<\/span>\" => \"<span class=sf-dump-str title=\"111 characters\">Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/137.0.0.0 Safari\/537.36<\/span>\"\n  \"<span class=sf-dump-key>HTTP_ACCEPT<\/span>\" => \"<span class=sf-dump-str title=\"135 characters\">text\/html,application\/xhtml+xml,application\/xml;q=0.9,image\/avif,image\/webp,image\/apng,*\/*;q=0.8,application\/signed-exchange;v=b3;q=0.7<\/span>\"\n  \"<span class=sf-dump-key>HTTP_SEC_FETCH_SITE<\/span>\" => \"<span class=sf-dump-str title=\"11 characters\">same-origin<\/span>\"\n  \"<span class=sf-dump-key>HTTP_SEC_FETCH_MODE<\/span>\" => \"<span class=sf-dump-str title=\"8 characters\">navigate<\/span>\"\n  \"<span class=sf-dump-key>HTTP_SEC_FETCH_DEST<\/span>\" => \"<span class=sf-dump-str title=\"8 characters\">document<\/span>\"\n  \"<span class=sf-dump-key>HTTP_REFERER<\/span>\" => \"<span class=sf-dump-str title=\"34 characters\">https:\/\/tintam.flyspa.vn\/customers<\/span>\"\n  \"<span class=sf-dump-key>HTTP_ACCEPT_ENCODING<\/span>\" => \"<span class=sf-dump-str title=\"23 characters\">gzip, deflate, br, zstd<\/span>\"\n  \"<span class=sf-dump-key>HTTP_ACCEPT_LANGUAGE<\/span>\" => \"<span class=sf-dump-str title=\"44 characters\">vi,en-US;q=0.9,en;q=0.8,fr-FR;q=0.7,fr;q=0.6<\/span>\"\n  \"<span class=sf-dump-key>HTTP_COOKIE<\/span>\" => \"<span class=sf-dump-str title=\"523 characters\">XSRF-TOKEN=eyJpdiI6ImZHQlVPVXR1MW1ib21uZVZlRmZlZEE9PSIsInZhbHVlIjoiVWUxZU1adncrM1pIVjRzTlpXQnlHWTNvelI5T09USXRpQmtxRW5yb0ZUa016WmZTSWQzRERRVHFxcHBJYjM4cyIsIm1hYyI6Ijc0Zjk2NjRhOTZlNDViNDQ0OWUyNTA2NTUxNGQ3MzQ5YjQ0Zjk3NmNiYjBjYzAxZTUxZWVjNWE0M2UyNGQ1ZjUifQ%3D%3D; laravel_session=eyJpdiI6IlIwVHNDN1lZanNoOGNSSHRkS3dZXC9RPT0iLCJ2YWx1ZSI6Imh1Qkx6bjU0WWZON1p6Yk5FS2JzR3lKRmo3clp1TnhVK3g4YWRiYnRvU1lWQUlwYkY1YjlQTkhKUVRSUERIUVUiLCJtYWMiOiJmM2ZmOTFlYjlhNTFjZDM2ZjVlN2VkYzBlZDg2ODUzMzFiNjkzOWYyYzQyYmJiZjBlZjZiMzQ3YzcxNWFiMWU2In0%3D<\/span>\"\n  \"<span class=sf-dump-key>PATH<\/span>\" => \"<span class=sf-dump-str title=\"70 characters\">\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin:\/snap\/bin<\/span>\"\n  \"<span class=sf-dump-key>SERVER_SIGNATURE<\/span>\" => \"<span class=sf-dump-str title=\"78 characters\">&lt;address&gt;Apache\/2.4.29 (Ubuntu) Server at tintam.flyspa.vn Port 443&lt;\/address&gt;<span class=\"sf-dump-default sf-dump-ns\">\\n<\/span><\/span>\"\n  \"<span class=sf-dump-key>SERVER_SOFTWARE<\/span>\" => \"<span class=sf-dump-str title=\"22 characters\">Apache\/2.4.29 (Ubuntu)<\/span>\"\n  \"<span class=sf-dump-key>SERVER_NAME<\/span>\" => \"<span class=sf-dump-str title=\"16 characters\">tintam.flyspa.vn<\/span>\"\n  \"<span class=sf-dump-key>SERVER_ADDR<\/span>\" => \"<span class=sf-dump-str title=\"12 characters\">202.92.6.198<\/span>\"\n  \"<span class=sf-dump-key>SERVER_PORT<\/span>\" => \"<span class=sf-dump-str title=\"3 characters\">443<\/span>\"\n  \"<span class=sf-dump-key>REMOTE_ADDR<\/span>\" => \"<span class=sf-dump-str title=\"13 characters\">14.224.171.92<\/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=\"5 characters\">56784<\/span>\"\n  \"<span class=sf-dump-key>REDIRECT_URL<\/span>\" => \"<span class=sf-dump-str title=\"22 characters\">\/report\/branch-sources<\/span>\"\n  \"<span class=sf-dump-key>GATEWAY_INTERFACE<\/span>\" => \"<span class=sf-dump-str title=\"7 characters\">CGI\/1.1<\/span>\"\n  \"<span class=sf-dump-key>SERVER_PROTOCOL<\/span>\" => \"<span class=sf-dump-str title=\"8 characters\">HTTP\/1.1<\/span>\"\n  \"<span class=sf-dump-key>REQUEST_METHOD<\/span>\" => \"<span class=sf-dump-str title=\"3 characters\">GET<\/span>\"\n  \"<span class=sf-dump-key>QUERY_STRING<\/span>\" => \"\"\n  \"<span class=sf-dump-key>REQUEST_URI<\/span>\" => \"<span class=sf-dump-str title=\"22 characters\">\/report\/branch-sources<\/span>\"\n  \"<span class=sf-dump-key>SCRIPT_NAME<\/span>\" => \"<span class=sf-dump-str title=\"10 characters\">\/index.php<\/span>\"\n  \"<span class=sf-dump-key>PHP_SELF<\/span>\" => \"<span class=sf-dump-str title=\"10 characters\">\/index.php<\/span>\"\n  \"<span class=sf-dump-key>REQUEST_TIME_FLOAT<\/span>\" => <span class=sf-dump-num>1754389798.281<\/span>\n  \"<span class=sf-dump-key>REQUEST_TIME<\/span>\" => <span class=sf-dump-num>1754389798<\/span>\n<\/samp>]\n<\/pre><script>Sfdump(\"sf-dump-1501628542\", {\"maxDepth\":0})<\/script>\n","request_cookies":"<pre class=sf-dump id=sf-dump-441411737 data-indent-pad=\"  \"><span class=sf-dump-note>array:2<\/span> [<samp>\n  \"<span class=sf-dump-key>XSRF-TOKEN<\/span>\" => \"<span class=sf-dump-str title=\"40 characters\">XpsXm4n6Cisi2wSpHR6xOWOL5n6p26TvBjm24uO9<\/span>\"\n  \"<span class=sf-dump-key>laravel_session<\/span>\" => \"<span class=sf-dump-str title=\"40 characters\">Y6H9WJ7RlGiRK3Lg9zTC1OvoHtqZBoxXSUj59UO7<\/span>\"\n<\/samp>]\n<\/pre><script>Sfdump(\"sf-dump-441411737\", {\"maxDepth\":0})<\/script>\n","response_headers":"<pre class=sf-dump id=sf-dump-1664868584 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\">Tue, 05 Aug 2025 10:29:59 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=\"328 characters\">XSRF-TOKEN=eyJpdiI6IlwvSlFzcTRhM3krNEVYcWIwQncwWmt3PT0iLCJ2YWx1ZSI6Imw3Q2tRb2N4bDFDMmI1bEZSMFhMb29MOEd3QmgrXC9uWHJucWRTRTA5K1VxXC9BbFZRdFQwV1lTSWx5QmR3dVg5diIsIm1hYyI6IjIzNWNlODQ3N2Y1ZmY4MmJiYWNkNzA2YTkxNTFhNDRhOGJmMmY2YTdlYzYwNWMwOWYyODZmOWYxZjVlNjFmNzgifQ%3D%3D; expires=Wed, 05-Aug-2026 10:29:59 GMT; Max-Age=31536000; path=\/<\/span>\"\n    <span class=sf-dump-index>1<\/span> => \"<span class=sf-dump-str title=\"282 characters\">laravel_session=eyJpdiI6IkxQWXpNZksxcWhXdkVtOVFrblFYUEE9PSIsInZhbHVlIjoiVWdkTGRqRTNUbWs4YllYSnp6cWRweHl0bWhIa3owSlZkTlhhQ2pQTlAwTFgrZUs4Nk9la25JUVdla1RXMXFwVyIsIm1hYyI6ImJmMjc0MGQ2ZDk4ZjBhZmY2NjUwNDk5NmUwZGQ5NDg3YzU2YzE3YThmZmRhYmU2Mzc2MmMxMDg0NzBlZDE5MDMifQ%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=\"310 characters\">XSRF-TOKEN=eyJpdiI6IlwvSlFzcTRhM3krNEVYcWIwQncwWmt3PT0iLCJ2YWx1ZSI6Imw3Q2tRb2N4bDFDMmI1bEZSMFhMb29MOEd3QmgrXC9uWHJucWRTRTA5K1VxXC9BbFZRdFQwV1lTSWx5QmR3dVg5diIsIm1hYyI6IjIzNWNlODQ3N2Y1ZmY4MmJiYWNkNzA2YTkxNTFhNDRhOGJmMmY2YTdlYzYwNWMwOWYyODZmOWYxZjVlNjFmNzgifQ%3D%3D; expires=Wed, 05-Aug-2026 10:29:59 GMT; path=\/<\/span>\"\n    <span class=sf-dump-index>1<\/span> => \"<span class=sf-dump-str title=\"282 characters\">laravel_session=eyJpdiI6IkxQWXpNZksxcWhXdkVtOVFrblFYUEE9PSIsInZhbHVlIjoiVWdkTGRqRTNUbWs4YllYSnp6cWRweHl0bWhIa3owSlZkTlhhQ2pQTlAwTFgrZUs4Nk9la25JUVdla1RXMXFwVyIsIm1hYyI6ImJmMjc0MGQ2ZDk4ZjBhZmY2NjUwNDk5NmUwZGQ5NDg3YzU2YzE3YThmZmRhYmU2Mzc2MmMxMDg0NzBlZDE5MDMifQ%3D%3D; path=\/; httponly<\/span>\"\n  <\/samp>]\n<\/samp>]\n<\/pre><script>Sfdump(\"sf-dump-1664868584\", {\"maxDepth\":0})<\/script>\n","session_attributes":"<pre class=sf-dump id=sf-dump-117750977 data-indent-pad=\"  \"><span class=sf-dump-note>array:6<\/span> [<samp>\n  \"<span class=sf-dump-key>_token<\/span>\" => \"<span class=sf-dump-str title=\"40 characters\">XpsXm4n6Cisi2wSpHR6xOWOL5n6p26TvBjm24uO9<\/span>\"\n  \"<span class=sf-dump-key>_flash<\/span>\" => <span class=sf-dump-note>array:2<\/span> [<samp>\n    \"<span class=sf-dump-key>old<\/span>\" => []\n    \"<span class=sf-dump-key>new<\/span>\" => []\n  <\/samp>]\n  \"<span class=sf-dump-key>url<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    \"<span class=sf-dump-key>intended<\/span>\" => \"<span class=sf-dump-str title=\"34 characters\">https:\/\/tintam.flyspa.vn\/customers<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>_previous<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    \"<span class=sf-dump-key>url<\/span>\" => \"<span class=sf-dump-str title=\"46 characters\">https:\/\/tintam.flyspa.vn\/report\/branch-sources<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>login_web_59ba36addc2b2f9401580f014c7f58ea4e30989d<\/span>\" => <span class=sf-dump-num>111<\/span>\n  \"<span class=sf-dump-key>PHPDEBUGBAR_STACK_DATA<\/span>\" => []\n<\/samp>]\n<\/pre><script>Sfdump(\"sf-dump-117750977\", {\"maxDepth\":0})<\/script>\n"}}