{"__meta":{"id":"X5ae6e364f84332e1828733173ec376eb","datetime":"2025-08-05 14:02:11","utime":1754377331.311881,"method":"GET","uri":"\/report\/branch-sources?start_date=05-08-2025&end_date=05-08-2025&branch_id=","ip":"14.224.171.92"},"php":{"version":"7.2.24","interface":"apache2handler"},"messages":{"count":0,"messages":[]},"time":{"start":1754377329.62,"end":1754377331.311953,"duration":1.691953182220459,"duration_str":"1.69s","measures":[{"label":"Booting","start":1754377329.62,"relative_start":0,"end":1754377329.656387,"relative_end":1754377329.656387,"duration":0.03638720512390137,"duration_str":"36.39ms","params":[],"collector":null},{"label":"Application","start":1754377329.656694,"relative_start":0.03669404983520508,"end":1754377331.311966,"relative_end":1.2874603271484375e-5,"duration":1.6552720069885254,"duration_str":"1.66s","params":[],"collector":null}]},"memory":{"peak_usage":8704024,"peak_usage_str":"8MB"},"exceptions":{"count":0,"exceptions":[]},"views":{"nb_templates":1,"templates":[{"name":"branch.source.ajax (resources\/views\/branch\/source\/ajax.blade.php)","param_count":1,"params":["users"],"type":"blade"}]},"route":{"uri":"GET report\/branch-sources","middleware":"web, auth, check.server","controller":"App\\Http\\Controllers\\BE\\Branch\\BranchController@source","namespace":"App\\Http\\Controllers\\BE","prefix":"\/report","where":[],"as":"report.branch-source","file":"app\/Http\/Controllers\/BE\/Branch\/BranchController.php:141-238"},"queries":{"nb_statements":447,"nb_failed_statements":0,"accumulated_duration":1.1826999999999996,"accumulated_duration_str":"1.18s","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.00623,"duration_str":"6.23ms","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.00061,"duration_str":"610\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.00159,"duration_str":"1.59ms","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.0013,"duration_str":"1.3ms","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.00127,"duration_str":"1.27ms","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.01871,"duration_str":"18.71ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:184","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 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.016149999999999998,"duration_str":"16.15ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:185","connection":"tintam"},{"sql":"select sum(`payment_wallets`.`price`) as aggregate from`payment_wallets` inner join `wallet_histories` as `wh` on `wh`.`id` = `payment_wallets`.`order_wallet_id` inner join `customers` as `c` on `wh`.`customer_id` = `c`.`id` where `payment_wallets`.`payment_date` between '2025-08-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.00147,"duration_str":"1.47ms","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.0018,"duration_str":"1.8ms","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.00132,"duration_str":"1.32ms","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.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` = 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.00094,"duration_str":"940\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.0011899999999999999,"duration_str":"1.19ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.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` = 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.00123,"duration_str":"1.23ms","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.0010500000000000002,"duration_str":"1.05ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:226","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.00113,"duration_str":"1.13ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:227","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.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` = 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.00102,"duration_str":"1.02ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`wallet_histories`.`order_price`) as aggregate from`wallet_histories` inner join `customers` as `c` on `wallet_histories`.`customer_id` = `c`.`id` where `wallet_histories`.`created_at` between '2025-08-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.00109,"duration_str":"1.09ms","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.00145,"duration_str":"1.45ms","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.00172,"duration_str":"1.72ms","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.02898,"duration_str":"28.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` = 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.02878,"duration_str":"28.78ms","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.00127,"duration_str":"1.27ms","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.0009699999999999999,"duration_str":"970\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-08-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.00173,"duration_str":"1.73ms","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.0015400000000000001,"duration_str":"1.54ms","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.00128,"duration_str":"1.28ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.00074,"duration_str":"740\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.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` = 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.00196,"duration_str":"1.96ms","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.0011899999999999999,"duration_str":"1.19ms","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.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` = 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.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` = 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.0010500000000000002,"duration_str":"1.05ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`wallet_histories`.`order_price`) as aggregate from`wallet_histories` inner join `customers` as `c` on `wallet_histories`.`customer_id` = `c`.`id` where `wallet_histories`.`created_at` between '2025-08-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.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` = 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.00115,"duration_str":"1.15ms","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.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` = 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.0012900000000000001,"duration_str":"1.29ms","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.00078,"duration_str":"780\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.0007,"duration_str":"700\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` = 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.0011899999999999999,"duration_str":"1.19ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-08-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.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` = 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.00088,"duration_str":"880\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.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` = 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.0009,"duration_str":"900\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.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` = 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.0008,"duration_str":"800\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:225","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.00074,"duration_str":"740\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.0007700000000000001,"duration_str":"770\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` = 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.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` = 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.0007099999999999999,"duration_str":"710\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`wallet_histories`.`order_price`) as aggregate from`wallet_histories` inner join `customers` as `c` on `wallet_histories`.`customer_id` = `c`.`id` where `wallet_histories`.`created_at` between '2025-08-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.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` = 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.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` = 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.00604,"duration_str":"6.04ms","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.0041600000000000005,"duration_str":"4.16ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:185","connection":"tintam"},{"sql":"select sum(`payment_wallets`.`price`) as aggregate from`payment_wallets` inner join `wallet_histories` as `wh` on `wh`.`id` = `payment_wallets`.`order_wallet_id` inner join `customers` as `c` on `wh`.`customer_id` = `c`.`id` where `payment_wallets`.`payment_date` between '2025-08-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.00128,"duration_str":"1.28ms","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.00088,"duration_str":"880\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` = 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.00103,"duration_str":"1.03ms","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.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` = 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.00076,"duration_str":"760\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.00068,"duration_str":"680\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.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` = 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.00098,"duration_str":"980\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:225","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.0020099999999999996,"duration_str":"2.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` = 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.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` = 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.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` = 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.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` = 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.0008,"duration_str":"800\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-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.00149,"duration_str":"1.49ms","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.00116,"duration_str":"1.16ms","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.0538,"duration_str":"53.8ms","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.044840000000000005,"duration_str":"44.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.00123,"duration_str":"1.23ms","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.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` = 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.0011200000000000001,"duration_str":"1.12ms","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.001,"duration_str":"1ms","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.00138,"duration_str":"1.38ms","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.00128,"duration_str":"1.28ms","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.00127,"duration_str":"1.27ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.0012900000000000001,"duration_str":"1.29ms","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.00161,"duration_str":"1.61ms","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.00138,"duration_str":"1.38ms","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.00152,"duration_str":"1.52ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.00958,"duration_str":"9.58ms","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.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` = 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.00139,"duration_str":"1.39ms","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.00111,"duration_str":"1.11ms","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.04628,"duration_str":"46.28ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:184","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 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.03982,"duration_str":"39.82ms","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.00158,"duration_str":"1.58ms","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.00148,"duration_str":"1.48ms","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.00141,"duration_str":"1.41ms","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.00122,"duration_str":"1.22ms","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.00125,"duration_str":"1.25ms","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.0014199999999999998,"duration_str":"1.42ms","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.0012,"duration_str":"1.2ms","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.0012,"duration_str":"1.2ms","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.00128,"duration_str":"1.28ms","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.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` = 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.0011200000000000001,"duration_str":"1.12ms","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.00113,"duration_str":"1.13ms","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.00098,"duration_str":"980\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.00124,"duration_str":"1.24ms","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.00116,"duration_str":"1.16ms","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.03095,"duration_str":"30.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` = 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.02809,"duration_str":"28.09ms","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.00156,"duration_str":"1.56ms","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.00147,"duration_str":"1.47ms","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.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` = 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.0014,"duration_str":"1.4ms","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.00122,"duration_str":"1.22ms","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.00146,"duration_str":"1.46ms","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.00125,"duration_str":"1.25ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.00139,"duration_str":"1.39ms","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.0013,"duration_str":"1.3ms","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.00125,"duration_str":"1.25ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:227","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.0015400000000000001,"duration_str":"1.54ms","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.00139,"duration_str":"1.39ms","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.0011200000000000001,"duration_str":"1.12ms","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.00134,"duration_str":"1.34ms","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.00126,"duration_str":"1.26ms","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.025929999999999998,"duration_str":"25.93ms","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.016059999999999998,"duration_str":"16.06ms","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.00128,"duration_str":"1.28ms","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.00107,"duration_str":"1.07ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-08-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.0012900000000000001,"duration_str":"1.29ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:220","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 55 and `orders`.`created_at` between '2025-08-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.0010500000000000002,"duration_str":"1.05ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.00103,"duration_str":"1.03ms","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.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` = 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.0011799999999999998,"duration_str":"1.18ms","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.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` = 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.0011,"duration_str":"1.1ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:226","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.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` = 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.0010400000000000001,"duration_str":"1.04ms","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.00146,"duration_str":"1.46ms","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.001,"duration_str":"1ms","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.0013,"duration_str":"1.3ms","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.00121,"duration_str":"1.21ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:231","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 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.00134,"duration_str":"1.34ms","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.001,"duration_str":"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` = 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.0007099999999999999,"duration_str":"710\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:208","connection":"tintam"},{"sql":"select sum(`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-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.00083,"duration_str":"830\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-08-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.00069,"duration_str":"690\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:220","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.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` = 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.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` = 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.00093,"duration_str":"930\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 57 and `orders`.`created_at` between '2025-08-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.00079,"duration_str":"790\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.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` = 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.00074,"duration_str":"740\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` = 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.00063,"duration_str":"630\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:227","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.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` = 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.0008399999999999999,"duration_str":"840\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`wallet_histories`.`order_price`) as aggregate from`wallet_histories` inner join `customers` as `c` on `wallet_histories`.`customer_id` = `c`.`id` where `wallet_histories`.`created_at` between '2025-08-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.00087,"duration_str":"870\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-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.00109,"duration_str":"1.09ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:229","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-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.0007700000000000001,"duration_str":"770\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.019379999999999998,"duration_str":"19.38ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:184","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 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.02825,"duration_str":"28.25ms","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.0010400000000000001,"duration_str":"1.04ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:208","connection":"tintam"},{"sql":"select sum(`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-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.00114,"duration_str":"1.14ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-08-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.00204,"duration_str":"2.04ms","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.00111,"duration_str":"1.11ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.00082,"duration_str":"820\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.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` = 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.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` = 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.00102,"duration_str":"1.02ms","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.0010400000000000001,"duration_str":"1.04ms","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.0010500000000000002,"duration_str":"1.05ms","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.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` = 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.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` = 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.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` = 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.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` = 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.00107,"duration_str":"1.07ms","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.01016,"duration_str":"10.16ms","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.00865,"duration_str":"8.65ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:185","connection":"tintam"},{"sql":"select sum(`payment_wallets`.`price`) as aggregate from`payment_wallets` inner join `wallet_histories` as `wh` on `wh`.`id` = `payment_wallets`.`order_wallet_id` inner join `customers` as `c` on `wh`.`customer_id` = `c`.`id` where `payment_wallets`.`payment_date` between '2025-08-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.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` = 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.00132,"duration_str":"1.32ms","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.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` = 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.00126,"duration_str":"1.26ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.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` = 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.00092,"duration_str":"920\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.0007199999999999999,"duration_str":"720\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.00069,"duration_str":"690\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:225","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 61 and `orders`.`created_at` between '2025-08-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.00095,"duration_str":"950\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.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` = 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.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` = 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.00076,"duration_str":"760\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`wallet_histories`.`order_price`) as aggregate from`wallet_histories` inner join `customers` as `c` on `wallet_histories`.`customer_id` = `c`.`id` where `wallet_histories`.`created_at` between '2025-08-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.00061,"duration_str":"610\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-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.0006,"duration_str":"600\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.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` = 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.00117,"duration_str":"1.17ms","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.00078,"duration_str":"780\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.0015400000000000001,"duration_str":"1.54ms","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.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` = 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.0007,"duration_str":"700\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.00063,"duration_str":"630\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.00063,"duration_str":"630\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.0005899999999999999,"duration_str":"590\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.0008399999999999999,"duration_str":"840\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.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` = 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.00064,"duration_str":"640\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:226","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 62 and `orders`.`created_at` between '2025-08-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.00063,"duration_str":"630\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:227","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.00063,"duration_str":"630\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.00061,"duration_str":"610\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.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` = 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.00067,"duration_str":"670\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` = 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.00062,"duration_str":"620\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.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` = 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.014320000000000001,"duration_str":"14.32ms","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.0007199999999999999,"duration_str":"720\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` = 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.0008,"duration_str":"800\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` = 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.0009699999999999999,"duration_str":"970\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:220","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.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` = 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.00083,"duration_str":"830\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 63 and `orders`.`created_at` between '2025-08-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.00073,"duration_str":"730\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.00088,"duration_str":"880\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.0008900000000000001,"duration_str":"890\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.00095,"duration_str":"950\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.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` = 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.00094,"duration_str":"940\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.00082,"duration_str":"820\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`wallet_histories`.`order_price`) as aggregate from`wallet_histories` inner join `customers` as `c` on `wallet_histories`.`customer_id` = `c`.`id` where `wallet_histories`.`created_at` between '2025-08-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.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` = 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.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` = 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.00128,"duration_str":"1.28ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:231","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 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.00463,"duration_str":"4.63ms","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.00691,"duration_str":"6.91ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:185","connection":"tintam"},{"sql":"select sum(`payment_wallets`.`price`) as aggregate from`payment_wallets` inner join `wallet_histories` as `wh` on `wh`.`id` = `payment_wallets`.`order_wallet_id` inner join `customers` as `c` on `wh`.`customer_id` = `c`.`id` where `payment_wallets`.`payment_date` between '2025-08-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.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` = 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.0009699999999999999,"duration_str":"970\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-08-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.00086,"duration_str":"860\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:220","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 65 and `orders`.`created_at` between '2025-08-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.00165,"duration_str":"1.65ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.0011200000000000001,"duration_str":"1.12ms","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.00092,"duration_str":"920\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.00099,"duration_str":"990\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.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` = 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.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` = 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.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` = 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.0010500000000000002,"duration_str":"1.05ms","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.00083,"duration_str":"830\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`wallet_histories`.`order_price`) as aggregate from`wallet_histories` inner join `customers` as `c` on `wallet_histories`.`customer_id` = `c`.`id` where `wallet_histories`.`created_at` between '2025-08-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.00068,"duration_str":"680\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-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.00069,"duration_str":"690\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` = 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.00058,"duration_str":"580\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:231","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 66 and `schedules`.`date` between '2025-08-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.00067,"duration_str":"670\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:184","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 66 and `schedules`.`date` between '2025-08-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.00058,"duration_str":"580\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:185","connection":"tintam"},{"sql":"select sum(`payment_wallets`.`price`) as aggregate from`payment_wallets` inner join `wallet_histories` as `wh` on `wh`.`id` = `payment_wallets`.`order_wallet_id` inner join `customers` as `c` on `wh`.`customer_id` = `c`.`id` where `payment_wallets`.`payment_date` between '2025-08-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.00054,"duration_str":"540\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` = 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.00068,"duration_str":"680\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.00064,"duration_str":"640\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.00063,"duration_str":"630\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.00061,"duration_str":"610\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.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` = 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.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` = 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.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` = 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.0008100000000000001,"duration_str":"810\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:226","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.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` = 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.00057,"duration_str":"570\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 66 and `orders`.`created_at` between '2025-08-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.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` = 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.00062,"duration_str":"620\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-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.0016699999999999998,"duration_str":"1.67ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:229","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-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.00166,"duration_str":"1.66ms","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.02084,"duration_str":"20.84ms","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.01298,"duration_str":"12.98ms","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.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` = 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.0009599999999999999,"duration_str":"960\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-08-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.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` = 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.0010500000000000002,"duration_str":"1.05ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.00075,"duration_str":"750\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.00066,"duration_str":"660\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.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` = 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.00069,"duration_str":"690\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:225","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.0007,"duration_str":"700\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:226","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.00069,"duration_str":"690\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:227","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 67 and `orders`.`created_at` between '2025-08-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.00064,"duration_str":"640\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.00074,"duration_str":"740\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` = 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.00054,"duration_str":"540\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-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.00062,"duration_str":"620\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` = 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.0008900000000000001,"duration_str":"890\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:231","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 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.0059299999999999995,"duration_str":"5.93ms","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.00658,"duration_str":"6.58ms","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.0011899999999999999,"duration_str":"1.19ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:208","connection":"tintam"},{"sql":"select sum(`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-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.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` = 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.00086,"duration_str":"860\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:220","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 68 and `orders`.`created_at` between '2025-08-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.00083,"duration_str":"830\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 68 and `orders`.`created_at` between '2025-08-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.00074,"duration_str":"740\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.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` = 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.00068,"duration_str":"680\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 68 and `orders`.`created_at` between '2025-08-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.0007700000000000001,"duration_str":"770\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:225","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.00164,"duration_str":"1.64ms","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.0008399999999999999,"duration_str":"840\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:227","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.0008399999999999999,"duration_str":"840\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.0010500000000000002,"duration_str":"1.05ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`wallet_histories`.`order_price`) as aggregate from`wallet_histories` inner join `customers` as `c` on `wallet_histories`.`customer_id` = `c`.`id` where `wallet_histories`.`created_at` between '2025-08-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.0008,"duration_str":"800\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-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.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` = 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.0009699999999999999,"duration_str":"970\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.04439,"duration_str":"44.39ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:184","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 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.016460000000000002,"duration_str":"16.46ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:185","connection":"tintam"},{"sql":"select sum(`payment_wallets`.`price`) as aggregate from`payment_wallets` inner join `wallet_histories` as `wh` on `wh`.`id` = `payment_wallets`.`order_wallet_id` inner join `customers` as `c` on `wh`.`customer_id` = `c`.`id` where `payment_wallets`.`payment_date` between '2025-08-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.0008100000000000001,"duration_str":"810\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:208","connection":"tintam"},{"sql":"select sum(`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-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.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` = 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.0008399999999999999,"duration_str":"840\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:220","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.00053,"duration_str":"530\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 69 and `orders`.`created_at` between '2025-08-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.00053,"duration_str":"530\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.00057,"duration_str":"570\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.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` = 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.0008399999999999999,"duration_str":"840\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:225","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.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` = 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.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` = 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.00058,"duration_str":"580\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 69 and `orders`.`created_at` between '2025-08-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.00055,"duration_str":"550\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.0005200000000000001,"duration_str":"520\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.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` = 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.00076,"duration_str":"760\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.0008100000000000001,"duration_str":"810\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.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` = 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.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` = 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.00103,"duration_str":"1.03ms","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.00074,"duration_str":"740\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:220","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.0007199999999999999,"duration_str":"720\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.00063,"duration_str":"630\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.0005200000000000001,"duration_str":"520\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.0007199999999999999,"duration_str":"720\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.00058,"duration_str":"580\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.00066,"duration_str":"660\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.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` = 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.00063,"duration_str":"630\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.00062,"duration_str":"620\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`wallet_histories`.`order_price`) as aggregate from`wallet_histories` inner join `customers` as `c` on `wallet_histories`.`customer_id` = `c`.`id` where `wallet_histories`.`created_at` between '2025-08-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.00054,"duration_str":"540\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-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.00049,"duration_str":"490\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.009720000000000001,"duration_str":"9.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` = 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.00857,"duration_str":"8.57ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:185","connection":"tintam"},{"sql":"select sum(`payment_wallets`.`price`) as aggregate from`payment_wallets` inner join `wallet_histories` as `wh` on `wh`.`id` = `payment_wallets`.`order_wallet_id` inner join `customers` as `c` on `wh`.`customer_id` = `c`.`id` where `payment_wallets`.`payment_date` between '2025-08-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.00094,"duration_str":"940\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.00079,"duration_str":"790\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-08-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.0007700000000000001,"duration_str":"770\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:220","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.00062,"duration_str":"620\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.00069,"duration_str":"690\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.00064,"duration_str":"640\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.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` = 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.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` = 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.00093,"duration_str":"930\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.00103,"duration_str":"1.03ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:227","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.00092,"duration_str":"920\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.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` = 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.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` = 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.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` = 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.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` = 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.00092,"duration_str":"920\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:184","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 76 and `schedules`.`date` between '2025-08-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.00086,"duration_str":"860\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:185","connection":"tintam"},{"sql":"select sum(`payment_wallets`.`price`) as aggregate from`payment_wallets` inner join `wallet_histories` as `wh` on `wh`.`id` = `payment_wallets`.`order_wallet_id` inner join `customers` as `c` on `wh`.`customer_id` = `c`.`id` where `payment_wallets`.`payment_date` between '2025-08-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.0008399999999999999,"duration_str":"840\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` = 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.00124,"duration_str":"1.24ms","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.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` = 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.00106,"duration_str":"1.06ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.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` = 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.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` = 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.0014299999999999998,"duration_str":"1.43ms","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.00102,"duration_str":"1.02ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:226","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.00085,"duration_str":"850\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:227","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.00078,"duration_str":"780\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.00082,"duration_str":"820\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`wallet_histories`.`order_price`) as aggregate from`wallet_histories` inner join `customers` as `c` on `wallet_histories`.`customer_id` = `c`.`id` where `wallet_histories`.`created_at` between '2025-08-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.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` = 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.00087,"duration_str":"870\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` = 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.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` = 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.0171,"duration_str":"17.1ms","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.01098,"duration_str":"10.98ms","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.00147,"duration_str":"1.47ms","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.0009,"duration_str":"900\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` = 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.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` = 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.00062,"duration_str":"620\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.0007,"duration_str":"700\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.00074,"duration_str":"740\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 77 and `orders`.`created_at` between '2025-08-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.0009,"duration_str":"900\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.00083,"duration_str":"830\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:225","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 77 and `orders`.`created_at` between '2025-08-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.00131,"duration_str":"1.31ms","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.00098,"duration_str":"980\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:227","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.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` = 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.00114,"duration_str":"1.14ms","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.00094,"duration_str":"940\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-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.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` = 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.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` = 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.035859999999999996,"duration_str":"35.86ms","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.024550000000000002,"duration_str":"24.55ms","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.00094,"duration_str":"940\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.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` = 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.00092,"duration_str":"920\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:220","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 78 and `orders`.`created_at` between '2025-08-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.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` = 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.00065,"duration_str":"650\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.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` = 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.00082,"duration_str":"820\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.0009599999999999999,"duration_str":"960\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:225","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.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` = 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.0007700000000000001,"duration_str":"770\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.0013,"duration_str":"1.3ms","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.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` = 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.00113,"duration_str":"1.13ms","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.0010400000000000001,"duration_str":"1.04ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:229","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-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.0010500000000000002,"duration_str":"1.05ms","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.00876,"duration_str":"8.76ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:185","connection":"tintam"},{"sql":"select sum(`payment_wallets`.`price`) as aggregate from`payment_wallets` inner join `wallet_histories` as `wh` on `wh`.`id` = `payment_wallets`.`order_wallet_id` inner join `customers` as `c` on `wh`.`customer_id` = `c`.`id` where `payment_wallets`.`payment_date` between '2025-08-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.00131,"duration_str":"1.31ms","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.00091,"duration_str":"910\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-08-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.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` = 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.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` = 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.00098,"duration_str":"980\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.00086,"duration_str":"860\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.0008900000000000001,"duration_str":"890\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 79 and `orders`.`created_at` between '2025-08-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.00083,"duration_str":"830\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:225","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 79 and `orders`.`created_at` between '2025-08-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.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` = 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.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` = 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.00064,"duration_str":"640\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 79 and `orders`.`created_at` between '2025-08-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.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` = 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.0005600000000000001,"duration_str":"560\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.00075,"duration_str":"750\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:229","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-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.00064,"duration_str":"640\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:231","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 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.016309999999999998,"duration_str":"16.31ms","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.01196,"duration_str":"11.96ms","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.00115,"duration_str":"1.15ms","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.0010400000000000001,"duration_str":"1.04ms","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.00094,"duration_str":"940\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:220","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.00085,"duration_str":"850\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.00108,"duration_str":"1.08ms","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.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` = 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.001,"duration_str":"1ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.00094,"duration_str":"940\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:225","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.0012900000000000001,"duration_str":"1.29ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:226","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.001,"duration_str":"1ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:227","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 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.0011,"duration_str":"1.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` = 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.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` = 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.00079,"duration_str":"790\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-08-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.00127,"duration_str":"1.27ms","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.0011200000000000001,"duration_str":"1.12ms","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.012289999999999999,"duration_str":"12.29ms","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.01109,"duration_str":"11.09ms","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.00134,"duration_str":"1.34ms","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.00131,"duration_str":"1.31ms","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.00116,"duration_str":"1.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` = 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.001,"duration_str":"1ms","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.00148,"duration_str":"1.48ms","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.0011,"duration_str":"1.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` = 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.0010400000000000001,"duration_str":"1.04ms","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.00092,"duration_str":"920\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.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` = 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.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` = 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.0008399999999999999,"duration_str":"840\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.00136,"duration_str":"1.36ms","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.00092,"duration_str":"920\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.00093,"duration_str":"930\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"},"request":{"path_info":"\/report\/branch-sources","status_code":"<pre class=sf-dump id=sf-dump-1516973680 data-indent-pad=\"  \"><span class=sf-dump-num>200<\/span>\n<\/pre><script>Sfdump(\"sf-dump-1516973680\", {\"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-772811803 data-indent-pad=\"  \"><span class=sf-dump-note>array:3<\/span> [<samp>\n  \"<span class=sf-dump-key>start_date<\/span>\" => \"<span class=sf-dump-str title=\"10 characters\">05-08-2025<\/span>\"\n  \"<span class=sf-dump-key>end_date<\/span>\" => \"<span class=sf-dump-str title=\"10 characters\">05-08-2025<\/span>\"\n  \"<span class=sf-dump-key>branch_id<\/span>\" => <span class=sf-dump-const>null<\/span>\n<\/samp>]\n<\/pre><script>Sfdump(\"sf-dump-772811803\", {\"maxDepth\":0})<\/script>\n","request_request":"<pre class=sf-dump id=sf-dump-177872797 data-indent-pad=\"  \"><span class=sf-dump-note>array:3<\/span> [<samp>\n  \"<span class=sf-dump-key>start_date<\/span>\" => \"<span class=sf-dump-str title=\"10 characters\">05-08-2025<\/span>\"\n  \"<span class=sf-dump-key>end_date<\/span>\" => \"<span class=sf-dump-str title=\"10 characters\">05-08-2025<\/span>\"\n  \"<span class=sf-dump-key>branch_id<\/span>\" => <span class=sf-dump-const>null<\/span>\n<\/samp>]\n<\/pre><script>Sfdump(\"sf-dump-177872797\", {\"maxDepth\":0})<\/script>\n","request_headers":"<pre class=sf-dump id=sf-dump-509895609 data-indent-pad=\"  \"><span class=sf-dump-note>array:16<\/span> [<samp>\n  \"<span class=sf-dump-key>host<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"16 characters\">tintam.flyspa.vn<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>connection<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"10 characters\">keep-alive<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>sec-ch-ua-platform<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"9 characters\">&quot;Windows&quot;<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>x-csrf-token<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"40 characters\">XpsXm4n6Cisi2wSpHR6xOWOL5n6p26TvBjm24uO9<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>x-requested-with<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"14 characters\">XMLHttpRequest<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>user-agent<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"111 characters\">Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/137.0.0.0 Safari\/537.36<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>accept<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"3 characters\">*\/*<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>sec-ch-ua<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"65 characters\">&quot;Google Chrome&quot;;v=&quot;137&quot;, &quot;Chromium&quot;;v=&quot;137&quot;, &quot;Not\/A)Brand&quot;;v=&quot;24&quot;<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>sec-ch-ua-mobile<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"2 characters\">?0<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>sec-fetch-site<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"11 characters\">same-origin<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>sec-fetch-mode<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"4 characters\">cors<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>sec-fetch-dest<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"5 characters\">empty<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>referer<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"46 characters\">https:\/\/tintam.flyspa.vn\/report\/branch-sources<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>accept-encoding<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"23 characters\">gzip, deflate, br, zstd<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>accept-language<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"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=eyJpdiI6IkRBRlRkVEJBdjRLa3VHVzl6bmdHOVE9PSIsInZhbHVlIjoibUY3Z01mYVhLVTBZRnBiM1Z2T0N2emhLSlNCcmpCaFFQMHQyU2oyZlwvWUdEd0tDOU9ENXEzczd6VDRreng4MnYiLCJtYWMiOiI5ZDcyNGRlMGIxMjY5ODkzMzE5ZmUxYmZjMTZjNDBjOTUxMzhiMWQ5NTg4M2JmYzc2M2FhZGE5MWY5NWM5YTRjIn0%3D; laravel_session=eyJpdiI6IjB4SjdXQWJGV0NqQ0FiYTdLeTZ2bXc9PSIsInZhbHVlIjoiZ2IxMU5ES2EweE1EcUxaT2dMdzRXRkVERkhtd1hsMHBtUnRsbzA3UHZ4bDZYSUJ6N1B4Tzh3UEUwdjBlUzE4NiIsIm1hYyI6Ijk1YTdmOGZlNWM3ZTdkMjliYWYyYmRiODUxYmY0N2M4NDA5ZmFlNTY2ZTk3MGJmOTA2NTlhNzJlYTdiZTk5Y2EifQ%3D%3D<\/span>\"\n  <\/samp>]\n<\/samp>]\n<\/pre><script>Sfdump(\"sf-dump-509895609\", {\"maxDepth\":0})<\/script>\n","request_server":"<pre class=sf-dump id=sf-dump-2084553095 data-indent-pad=\"  \"><span class=sf-dump-note>array:46<\/span> [<samp>\n  \"<span class=sf-dump-key>REDIRECT_HTTPS<\/span>\" => \"<span class=sf-dump-str title=\"2 characters\">on<\/span>\"\n  \"<span class=sf-dump-key>REDIRECT_SSL_TLS_SNI<\/span>\" => \"<span class=sf-dump-str title=\"16 characters\">tintam.flyspa.vn<\/span>\"\n  \"<span class=sf-dump-key>REDIRECT_STATUS<\/span>\" => \"<span class=sf-dump-str title=\"3 characters\">200<\/span>\"\n  \"<span class=sf-dump-key>HTTPS<\/span>\" => \"<span class=sf-dump-str title=\"2 characters\">on<\/span>\"\n  \"<span class=sf-dump-key>SSL_TLS_SNI<\/span>\" => \"<span class=sf-dump-str title=\"16 characters\">tintam.flyspa.vn<\/span>\"\n  \"<span class=sf-dump-key>HTTP_HOST<\/span>\" => \"<span class=sf-dump-str title=\"16 characters\">tintam.flyspa.vn<\/span>\"\n  \"<span class=sf-dump-key>HTTP_CONNECTION<\/span>\" => \"<span class=sf-dump-str title=\"10 characters\">keep-alive<\/span>\"\n  \"<span class=sf-dump-key>HTTP_SEC_CH_UA_PLATFORM<\/span>\" => \"<span class=sf-dump-str title=\"9 characters\">&quot;Windows&quot;<\/span>\"\n  \"<span class=sf-dump-key>HTTP_X_CSRF_TOKEN<\/span>\" => \"<span class=sf-dump-str title=\"40 characters\">XpsXm4n6Cisi2wSpHR6xOWOL5n6p26TvBjm24uO9<\/span>\"\n  \"<span class=sf-dump-key>HTTP_X_REQUESTED_WITH<\/span>\" => \"<span class=sf-dump-str title=\"14 characters\">XMLHttpRequest<\/span>\"\n  \"<span class=sf-dump-key>HTTP_USER_AGENT<\/span>\" => \"<span class=sf-dump-str title=\"111 characters\">Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/137.0.0.0 Safari\/537.36<\/span>\"\n  \"<span class=sf-dump-key>HTTP_ACCEPT<\/span>\" => \"<span class=sf-dump-str title=\"3 characters\">*\/*<\/span>\"\n  \"<span class=sf-dump-key>HTTP_SEC_CH_UA<\/span>\" => \"<span class=sf-dump-str title=\"65 characters\">&quot;Google Chrome&quot;;v=&quot;137&quot;, &quot;Chromium&quot;;v=&quot;137&quot;, &quot;Not\/A)Brand&quot;;v=&quot;24&quot;<\/span>\"\n  \"<span class=sf-dump-key>HTTP_SEC_CH_UA_MOBILE<\/span>\" => \"<span class=sf-dump-str title=\"2 characters\">?0<\/span>\"\n  \"<span class=sf-dump-key>HTTP_SEC_FETCH_SITE<\/span>\" => \"<span class=sf-dump-str title=\"11 characters\">same-origin<\/span>\"\n  \"<span class=sf-dump-key>HTTP_SEC_FETCH_MODE<\/span>\" => \"<span class=sf-dump-str title=\"4 characters\">cors<\/span>\"\n  \"<span class=sf-dump-key>HTTP_SEC_FETCH_DEST<\/span>\" => \"<span class=sf-dump-str title=\"5 characters\">empty<\/span>\"\n  \"<span class=sf-dump-key>HTTP_REFERER<\/span>\" => \"<span class=sf-dump-str title=\"46 characters\">https:\/\/tintam.flyspa.vn\/report\/branch-sources<\/span>\"\n  \"<span class=sf-dump-key>HTTP_ACCEPT_ENCODING<\/span>\" => \"<span class=sf-dump-str title=\"23 characters\">gzip, deflate, br, zstd<\/span>\"\n  \"<span class=sf-dump-key>HTTP_ACCEPT_LANGUAGE<\/span>\" => \"<span class=sf-dump-str title=\"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=eyJpdiI6IkRBRlRkVEJBdjRLa3VHVzl6bmdHOVE9PSIsInZhbHVlIjoibUY3Z01mYVhLVTBZRnBiM1Z2T0N2emhLSlNCcmpCaFFQMHQyU2oyZlwvWUdEd0tDOU9ENXEzczd6VDRreng4MnYiLCJtYWMiOiI5ZDcyNGRlMGIxMjY5ODkzMzE5ZmUxYmZjMTZjNDBjOTUxMzhiMWQ5NTg4M2JmYzc2M2FhZGE5MWY5NWM5YTRjIn0%3D; laravel_session=eyJpdiI6IjB4SjdXQWJGV0NqQ0FiYTdLeTZ2bXc9PSIsInZhbHVlIjoiZ2IxMU5ES2EweE1EcUxaT2dMdzRXRkVERkhtd1hsMHBtUnRsbzA3UHZ4bDZYSUJ6N1B4Tzh3UEUwdjBlUzE4NiIsIm1hYyI6Ijk1YTdmOGZlNWM3ZTdkMjliYWYyYmRiODUxYmY0N2M4NDA5ZmFlNTY2ZTk3MGJmOTA2NTlhNzJlYTdiZTk5Y2EifQ%3D%3D<\/span>\"\n  \"<span class=sf-dump-key>PATH<\/span>\" => \"<span class=sf-dump-str title=\"70 characters\">\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin:\/snap\/bin<\/span>\"\n  \"<span class=sf-dump-key>SERVER_SIGNATURE<\/span>\" => \"<span class=sf-dump-str title=\"78 characters\">&lt;address&gt;Apache\/2.4.29 (Ubuntu) Server at tintam.flyspa.vn Port 443&lt;\/address&gt;<span class=\"sf-dump-default sf-dump-ns\">\\n<\/span><\/span>\"\n  \"<span class=sf-dump-key>SERVER_SOFTWARE<\/span>\" => \"<span class=sf-dump-str title=\"22 characters\">Apache\/2.4.29 (Ubuntu)<\/span>\"\n  \"<span class=sf-dump-key>SERVER_NAME<\/span>\" => \"<span class=sf-dump-str title=\"16 characters\">tintam.flyspa.vn<\/span>\"\n  \"<span class=sf-dump-key>SERVER_ADDR<\/span>\" => \"<span class=sf-dump-str title=\"12 characters\">202.92.6.198<\/span>\"\n  \"<span class=sf-dump-key>SERVER_PORT<\/span>\" => \"<span class=sf-dump-str title=\"3 characters\">443<\/span>\"\n  \"<span class=sf-dump-key>REMOTE_ADDR<\/span>\" => \"<span class=sf-dump-str title=\"13 characters\">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\">51974<\/span>\"\n  \"<span class=sf-dump-key>REDIRECT_URL<\/span>\" => \"<span class=sf-dump-str title=\"22 characters\">\/report\/branch-sources<\/span>\"\n  \"<span class=sf-dump-key>REDIRECT_QUERY_STRING<\/span>\" => \"<span class=sf-dump-str title=\"52 characters\">start_date=05-08-2025&amp;end_date=05-08-2025&amp;branch_id=<\/span>\"\n  \"<span class=sf-dump-key>GATEWAY_INTERFACE<\/span>\" => \"<span class=sf-dump-str title=\"7 characters\">CGI\/1.1<\/span>\"\n  \"<span class=sf-dump-key>SERVER_PROTOCOL<\/span>\" => \"<span class=sf-dump-str title=\"8 characters\">HTTP\/1.1<\/span>\"\n  \"<span class=sf-dump-key>REQUEST_METHOD<\/span>\" => \"<span class=sf-dump-str title=\"3 characters\">GET<\/span>\"\n  \"<span class=sf-dump-key>QUERY_STRING<\/span>\" => \"<span class=sf-dump-str title=\"52 characters\">start_date=05-08-2025&amp;end_date=05-08-2025&amp;branch_id=<\/span>\"\n  \"<span class=sf-dump-key>REQUEST_URI<\/span>\" => \"<span class=sf-dump-str title=\"75 characters\">\/report\/branch-sources?start_date=05-08-2025&amp;end_date=05-08-2025&amp;branch_id=<\/span>\"\n  \"<span class=sf-dump-key>SCRIPT_NAME<\/span>\" => \"<span class=sf-dump-str title=\"10 characters\">\/index.php<\/span>\"\n  \"<span class=sf-dump-key>PHP_SELF<\/span>\" => \"<span class=sf-dump-str title=\"10 characters\">\/index.php<\/span>\"\n  \"<span class=sf-dump-key>REQUEST_TIME_FLOAT<\/span>\" => <span class=sf-dump-num>1754377329.62<\/span>\n  \"<span class=sf-dump-key>REQUEST_TIME<\/span>\" => <span class=sf-dump-num>1754377329<\/span>\n<\/samp>]\n<\/pre><script>Sfdump(\"sf-dump-2084553095\", {\"maxDepth\":0})<\/script>\n","request_cookies":"<pre class=sf-dump id=sf-dump-1883082122 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-1883082122\", {\"maxDepth\":0})<\/script>\n","response_headers":"<pre class=sf-dump id=sf-dump-1733810256 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 07:02:11 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=\"322 characters\">XSRF-TOKEN=eyJpdiI6ImlqTkpNSFpVWVNpOGxQZzFobDZnR0E9PSIsInZhbHVlIjoiWFwvRjRhbjZ0YUdpZVp4Z2MwU3JiRTFCcHFNYVhXTk5BTVl4eHpjQUNuSGR0YU1lS2ZkdzVEZHpITWhGWURJSTYiLCJtYWMiOiIwNjVhZjYxN2Y3YmFmZDY5OWI5ZTg5ODI1NDg5MDM4NWYzY2UyMTE2N2I2ODI1ZjE1YmNkOGI2YTZhY2JkNmE0In0%3D; expires=Wed, 05-Aug-2026 07:02:11 GMT; Max-Age=31536000; path=\/<\/span>\"\n    <span class=sf-dump-index>1<\/span> => \"<span class=sf-dump-str title=\"280 characters\">laravel_session=eyJpdiI6IlkzQVVWSll4RWNxVXU3dFVyMGpncnc9PSIsInZhbHVlIjoiaHFSOE8zbXAwWFdBVVd2YytseUh4amlXOE9SXC9zTzhzMG5kZWM2blJMUEpnc2xJQ0J3VkQ4Rkx3ZFNHZGdUME8iLCJtYWMiOiI4OGM0MWNhZDBiMGVmMTk2YmViODM5MzBlM2QzMjdmOGQ5ZmY1ZTNlZjA4MmNmYjVhMDI5YjRmODk3M2Y5NzM5In0%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=\"304 characters\">XSRF-TOKEN=eyJpdiI6ImlqTkpNSFpVWVNpOGxQZzFobDZnR0E9PSIsInZhbHVlIjoiWFwvRjRhbjZ0YUdpZVp4Z2MwU3JiRTFCcHFNYVhXTk5BTVl4eHpjQUNuSGR0YU1lS2ZkdzVEZHpITWhGWURJSTYiLCJtYWMiOiIwNjVhZjYxN2Y3YmFmZDY5OWI5ZTg5ODI1NDg5MDM4NWYzY2UyMTE2N2I2ODI1ZjE1YmNkOGI2YTZhY2JkNmE0In0%3D; expires=Wed, 05-Aug-2026 07:02:11 GMT; path=\/<\/span>\"\n    <span class=sf-dump-index>1<\/span> => \"<span class=sf-dump-str title=\"280 characters\">laravel_session=eyJpdiI6IlkzQVVWSll4RWNxVXU3dFVyMGpncnc9PSIsInZhbHVlIjoiaHFSOE8zbXAwWFdBVVd2YytseUh4amlXOE9SXC9zTzhzMG5kZWM2blJMUEpnc2xJQ0J3VkQ4Rkx3ZFNHZGdUME8iLCJtYWMiOiI4OGM0MWNhZDBiMGVmMTk2YmViODM5MzBlM2QzMjdmOGQ5ZmY1ZTNlZjA4MmNmYjVhMDI5YjRmODk3M2Y5NzM5In0%3D; path=\/; httponly<\/span>\"\n  <\/samp>]\n<\/samp>]\n<\/pre><script>Sfdump(\"sf-dump-1733810256\", {\"maxDepth\":0})<\/script>\n","session_attributes":"<pre class=sf-dump id=sf-dump-177089621 data-indent-pad=\"  \"><span class=sf-dump-note>array:5<\/span> [<samp>\n  \"<span class=sf-dump-key>_token<\/span>\" => \"<span class=sf-dump-str title=\"40 characters\">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<\/samp>]\n<\/pre><script>Sfdump(\"sf-dump-177089621\", {\"maxDepth\":0})<\/script>\n"}}