{"__meta":{"id":"Xa7360ab05401f40f5556f052eab234ce","datetime":"2025-08-05 19:55:00","utime":1754398500.255003,"method":"GET","uri":"\/report\/branch-sources?start_date=07-07-2025&end_date=05-08-2025","ip":"171.224.178.45"},"php":{"version":"7.2.24","interface":"apache2handler"},"messages":{"count":0,"messages":[]},"time":{"start":1754398497.818,"end":1754398500.255066,"duration":2.437065839767456,"duration_str":"2.44s","measures":[{"label":"Booting","start":1754398497.818,"relative_start":0,"end":1754398497.875705,"relative_end":1754398497.875705,"duration":0.057704925537109375,"duration_str":"57.7ms","params":[],"collector":null},{"label":"Application","start":1754398497.8764,"relative_start":0.05839991569519043,"end":1754398500.255074,"relative_end":8.106231689453125e-6,"duration":2.378674030303955,"duration_str":"2.38s","params":[],"collector":null}]},"memory":{"peak_usage":8702144,"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.8370399999999996,"accumulated_duration_str":"1.84s","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.01071,"duration_str":"10.71ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:30","connection":"tintam"},{"sql":"select * from`locations`","type":"query","params":[],"bindings":[],"hints":null,"backtrace":[{"index":14,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Support\/Traits\/ForwardsCalls.php","line":23},{"index":17,"namespace":null,"name":"\/app\/Models\/Branch.php","line":22},{"index":18,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":31},{"index":20,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php","line":825},{"index":21,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php","line":667}],"duration":0.00101,"duration_str":"1.01ms","stmt_id":"\/vendor\/laravel\/framework\/src\/Illuminate\/Support\/Traits\/ForwardsCalls.php:23","connection":"tintam"},{"sql":"select * from`users` where `id` = 202 and `users`.`deleted_at` is null limit 1","type":"query","params":[],"bindings":["202"],"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.00185,"duration_str":"1.85ms","stmt_id":"\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/EloquentUserProvider.php:52","connection":"tintam"},{"sql":"select * from`roles` where `roles`.`id` in (2)","type":"query","params":[],"bindings":[],"hints":null,"backtrace":[{"index":19,"namespace":"middleware","name":"permission","line":19},{"index":20,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":163},{"index":21,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":53},{"index":22,"namespace":"middleware","name":"check.server","line":21},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":163}],"duration":0.00171,"duration_str":"1.71ms","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.0014,"duration_str":"1.4ms","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-07-07 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-07-07 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.03642,"duration_str":"36.42ms","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-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["21","2025-07-07 00:00: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.017,"duration_str":"17ms","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-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 21","type":"query","params":[],"bindings":["2025-07-07 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.00244,"duration_str":"2.44ms","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-07-07 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-07-07 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.01375,"duration_str":"13.75ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-07-07 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-07-07 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.00609,"duration_str":"6.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` = 21 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00: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.00234,"duration_str":"2.34ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 21 and `orders`.`created_at` between '2025-07-07 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-07-07 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.00207,"duration_str":"2.07ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 21 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00: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.0019299999999999999,"duration_str":"1.93ms","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-07-07 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-07-07 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.00217,"duration_str":"2.17ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 21 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00: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.00189,"duration_str":"1.89ms","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-07-07 00: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-07-07 00:00: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.00218,"duration_str":"2.18ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:226","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 21 and `orders`.`created_at` between '2025-07-07 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-07-07 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.00185,"duration_str":"1.85ms","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-07-07 00: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-07-07 00:00: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.0028,"duration_str":"2.8ms","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-07-07 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-07-07 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.00189,"duration_str":"1.89ms","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-07-07 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-07-07 00:00:00","2025-08-05 23:59:59","21"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00073,"duration_str":"730\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-07-07 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-07-07 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.00213,"duration_str":"2.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-07-07 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-07-07 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.00091,"duration_str":"910\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:231","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 23 and `schedules`.`date` between '2025-07-07 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-07-07 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.016640000000000002,"duration_str":"16.64ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:184","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 23 and `schedules`.`date` between '2025-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["23","2025-07-07 00:00: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.01307,"duration_str":"13.07ms","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-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 23","type":"query","params":[],"bindings":["2025-07-07 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.0011799999999999998,"duration_str":"1.18ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:208","connection":"tintam"},{"sql":"select sum(`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-07-07 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-07-07 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.01732,"duration_str":"17.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-07-07 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-07-07 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.00694,"duration_str":"6.94ms","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-07-07 00: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-07-07 00:00: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.008199999999999999,"duration_str":"8.2ms","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-07-07 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-07-07 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.00664,"duration_str":"6.64ms","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-07-07 00: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-07-07 00:00: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.00852,"duration_str":"8.52ms","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-07-07 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-07-07 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.00394,"duration_str":"3.94ms","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-07-07 00: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-07-07 00:00: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.00907,"duration_str":"9.07ms","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-07-07 00: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-07-07 00:00: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.0074800000000000005,"duration_str":"7.48ms","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-07-07 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-07-07 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.00453,"duration_str":"4.53ms","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-07-07 00: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-07-07 00:00: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.00785,"duration_str":"7.85ms","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-07-07 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-07-07 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.00424,"duration_str":"4.24ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`wallet_histories`.`order_price`) as aggregate from`wallet_histories` inner join `customers` as `c` on `wallet_histories`.`customer_id` = `c`.`id` where `wallet_histories`.`created_at` between '2025-07-07 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-07-07 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.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-07-07 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-07-07 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.01982,"duration_str":"19.82ms","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-07-07 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-07-07 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.00139,"duration_str":"1.39ms","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-07-07 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-07-07 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.00226,"duration_str":"2.26ms","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-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["29","2025-07-07 00:00: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.00127,"duration_str":"1.27ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:185","connection":"tintam"},{"sql":"select sum(`payment_wallets`.`price`) as aggregate from`payment_wallets` inner join `wallet_histories` as `wh` on `wh`.`id` = `payment_wallets`.`order_wallet_id` inner join `customers` as `c` on `wh`.`customer_id` = `c`.`id` where `payment_wallets`.`payment_date` between '2025-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 29","type":"query","params":[],"bindings":["2025-07-07 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.00092,"duration_str":"920\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-07-07 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-07-07 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.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-07-07 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-07-07 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.0007199999999999999,"duration_str":"720\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-07-07 00: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-07-07 00:00: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.00101,"duration_str":"1.01ms","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-07-07 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-07-07 00:00:00","2025-08-05 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":222},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00087,"duration_str":"870\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 29 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00: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.00107,"duration_str":"1.07ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 29 and `orders`.`created_at` between '2025-07-07 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-07-07 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` = 29 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00: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.0011899999999999999,"duration_str":"1.19ms","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-07-07 00: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-07-07 00:00: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` = 29 and `orders`.`created_at` between '2025-07-07 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-07-07 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.00076,"duration_str":"760\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-07-07 00: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-07-07 00:00: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.00091,"duration_str":"910\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-07-07 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-07-07 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-07-07 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-07-07 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.00074,"duration_str":"740\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-07-07 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-07-07 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.00091,"duration_str":"910\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:229","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-07-07 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-07-07 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.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` = 39 and `schedules`.`date` between '2025-07-07 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-07-07 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.004860000000000001,"duration_str":"4.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` = 39 and `schedules`.`date` between '2025-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["39","2025-07-07 00:00: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.0044800000000000005,"duration_str":"4.48ms","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-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 39","type":"query","params":[],"bindings":["2025-07-07 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.00093,"duration_str":"930\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:208","connection":"tintam"},{"sql":"select sum(`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-07-07 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-07-07 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.00218,"duration_str":"2.18ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-07-07 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-07-07 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.00297,"duration_str":"2.97ms","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-07-07 00: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-07-07 00:00: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.00198,"duration_str":"1.98ms","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-07-07 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-07-07 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.0014399999999999999,"duration_str":"1.44ms","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-07-07 00: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-07-07 00:00: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.0017800000000000001,"duration_str":"1.78ms","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-07-07 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-07-07 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.00136,"duration_str":"1.36ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 39 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00:00","2025-08-05 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":225},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00171,"duration_str":"1.71ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:225","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 39 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00: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.00174,"duration_str":"1.74ms","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-07-07 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-07-07 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.0018,"duration_str":"1.8ms","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-07-07 00: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-07-07 00:00: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.00211,"duration_str":"2.11ms","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-07-07 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-07-07 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.00151,"duration_str":"1.51ms","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-07-07 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-07-07 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.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-07-07 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-07-07 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.0016200000000000001,"duration_str":"1.62ms","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-07-07 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-07-07 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.00092,"duration_str":"920\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:231","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 40 and `schedules`.`date` between '2025-07-07 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-07-07 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.015179999999999999,"duration_str":"15.18ms","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-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["40","2025-07-07 00:00: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.01022,"duration_str":"10.22ms","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-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 40","type":"query","params":[],"bindings":["2025-07-07 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.00099,"duration_str":"990\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:208","connection":"tintam"},{"sql":"select sum(`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-07-07 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-07-07 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.008039999999999999,"duration_str":"8.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-07-07 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-07-07 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.00777,"duration_str":"7.77ms","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-07-07 00: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-07-07 00:00: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.00722,"duration_str":"7.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` = 40 and `orders`.`created_at` between '2025-07-07 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-07-07 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.00318,"duration_str":"3.18ms","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-07-07 00: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-07-07 00:00: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.00664,"duration_str":"6.64ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 40 and `orders`.`created_at` between '2025-07-07 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-07-07 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.00491,"duration_str":"4.91ms","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-07-07 00: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-07-07 00:00: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.00784,"duration_str":"7.84ms","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-07-07 00: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-07-07 00:00: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.0066,"duration_str":"6.6ms","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-07-07 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-07-07 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.00413,"duration_str":"4.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` = 40 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00: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.00744,"duration_str":"7.44ms","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-07-07 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-07-07 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.00434,"duration_str":"4.34ms","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-07-07 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-07-07 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.0011,"duration_str":"1.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-07-07 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-07-07 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.00847,"duration_str":"8.47ms","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-07-07 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-07-07 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.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` = 51 and `schedules`.`date` between '2025-07-07 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-07-07 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.01961,"duration_str":"19.61ms","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-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["51","2025-07-07 00:00: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.01472,"duration_str":"14.72ms","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-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 51","type":"query","params":[],"bindings":["2025-07-07 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.00091,"duration_str":"910\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:208","connection":"tintam"},{"sql":"select sum(`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-07-07 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-07-07 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.008039999999999999,"duration_str":"8.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-07-07 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-07-07 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.020030000000000003,"duration_str":"20.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` = 51 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00: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.00692,"duration_str":"6.92ms","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-07-07 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-07-07 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.00331,"duration_str":"3.31ms","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-07-07 00: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-07-07 00:00: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.0073,"duration_str":"7.3ms","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-07-07 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-07-07 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.00534,"duration_str":"5.34ms","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-07-07 00: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-07-07 00:00: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.010150000000000001,"duration_str":"10.15ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:225","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 51 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00: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.00782,"duration_str":"7.82ms","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-07-07 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-07-07 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.00361,"duration_str":"3.61ms","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-07-07 00: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-07-07 00:00: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.00677,"duration_str":"6.77ms","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-07-07 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-07-07 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.00344,"duration_str":"3.44ms","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-07-07 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-07-07 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.00103,"duration_str":"1.03ms","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-07-07 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-07-07 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.00833,"duration_str":"8.33ms","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-07-07 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-07-07 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.00121,"duration_str":"1.21ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:231","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 54 and `schedules`.`date` between '2025-07-07 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-07-07 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.01392,"duration_str":"13.92ms","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-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["54","2025-07-07 00:00: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.022920000000000003,"duration_str":"22.92ms","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-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 54","type":"query","params":[],"bindings":["2025-07-07 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.0011799999999999998,"duration_str":"1.18ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:208","connection":"tintam"},{"sql":"select sum(`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-07-07 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-07-07 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.00863,"duration_str":"8.63ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-07-07 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-07-07 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.01581,"duration_str":"15.81ms","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-07-07 00: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-07-07 00:00: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.009439999999999999,"duration_str":"9.44ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 54 and `orders`.`created_at` between '2025-07-07 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-07-07 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.004059999999999999,"duration_str":"4.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` = 54 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00: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.00872,"duration_str":"8.72ms","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-07-07 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-07-07 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.0034,"duration_str":"3.4ms","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-07-07 00: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-07-07 00:00: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.00696,"duration_str":"6.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` = 54 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00: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.00662,"duration_str":"6.62ms","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-07-07 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-07-07 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.00368,"duration_str":"3.68ms","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-07-07 00: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-07-07 00:00: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.0071600000000000006,"duration_str":"7.16ms","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-07-07 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-07-07 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.0119,"duration_str":"11.9ms","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-07-07 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-07-07 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.0009599999999999999,"duration_str":"960\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-07-07 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-07-07 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.0077800000000000005,"duration_str":"7.78ms","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-07-07 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-07-07 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.0012900000000000001,"duration_str":"1.29ms","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-07-07 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-07-07 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.01385,"duration_str":"13.85ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:184","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 55 and `schedules`.`date` between '2025-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["55","2025-07-07 00:00: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.01774,"duration_str":"17.74ms","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-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 55","type":"query","params":[],"bindings":["2025-07-07 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.00121,"duration_str":"1.21ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:208","connection":"tintam"},{"sql":"select sum(`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-07-07 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-07-07 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.00801,"duration_str":"8.01ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-07-07 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-07-07 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.0209,"duration_str":"20.9ms","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-07-07 00: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-07-07 00:00: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.0066,"duration_str":"6.6ms","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-07-07 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-07-07 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.004690000000000001,"duration_str":"4.69ms","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-07-07 00: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-07-07 00:00: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.006690000000000001,"duration_str":"6.69ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 55 and `orders`.`created_at` between '2025-07-07 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-07-07 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.00423,"duration_str":"4.23ms","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-07-07 00: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-07-07 00:00: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.00777,"duration_str":"7.77ms","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-07-07 00: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-07-07 00:00: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.00827,"duration_str":"8.27ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:226","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 55 and `orders`.`created_at` between '2025-07-07 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-07-07 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.0036,"duration_str":"3.6ms","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-07-07 00: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-07-07 00:00: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.00775,"duration_str":"7.75ms","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-07-07 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-07-07 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.00498,"duration_str":"4.98ms","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-07-07 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-07-07 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.00158,"duration_str":"1.58ms","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-07-07 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-07-07 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.01709,"duration_str":"17.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-07-07 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-07-07 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.00174,"duration_str":"1.74ms","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-07-07 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-07-07 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.0011200000000000001,"duration_str":"1.12ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:184","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 57 and `schedules`.`date` between '2025-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["57","2025-07-07 00:00: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.00076,"duration_str":"760\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:185","connection":"tintam"},{"sql":"select sum(`payment_wallets`.`price`) as aggregate from`payment_wallets` inner join `wallet_histories` as `wh` on `wh`.`id` = `payment_wallets`.`order_wallet_id` inner join `customers` as `c` on `wh`.`customer_id` = `c`.`id` where `payment_wallets`.`payment_date` between '2025-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 57","type":"query","params":[],"bindings":["2025-07-07 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.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-07-07 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-07-07 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.00123,"duration_str":"1.23ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-07-07 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-07-07 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.00102,"duration_str":"1.02ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:220","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 57 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00: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` = 57 and `orders`.`created_at` between '2025-07-07 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-07-07 00:00:00","2025-08-05 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":222},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0008900000000000001,"duration_str":"890\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 57 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00: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.0009699999999999999,"duration_str":"970\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-07-07 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-07-07 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.00128,"duration_str":"1.28ms","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-07-07 00: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-07-07 00:00: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.00117,"duration_str":"1.17ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:225","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 57 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00: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` = 57 and `orders`.`created_at` between '2025-07-07 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-07-07 00:00:00","2025-08-05 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":227},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0009699999999999999,"duration_str":"970\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:227","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 57 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00:00","2025-08-05 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0009,"duration_str":"900\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 57 and `orders`.`created_at` between '2025-07-07 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-07-07 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.00088,"duration_str":"880\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-07-07 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-07-07 00:00:00","2025-08-05 23:59:59","57"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00085,"duration_str":"850\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-07-07 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-07-07 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.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-07-07 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-07-07 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-07-07 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-07-07 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.02565,"duration_str":"25.65ms","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-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["60","2025-07-07 00:00: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.01376,"duration_str":"13.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-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 60","type":"query","params":[],"bindings":["2025-07-07 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.00093,"duration_str":"930\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:208","connection":"tintam"},{"sql":"select sum(`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-07-07 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-07-07 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.0024300000000000003,"duration_str":"2.43ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-07-07 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-07-07 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.0015300000000000001,"duration_str":"1.53ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:220","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 60 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00: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` = 60 and `orders`.`created_at` between '2025-07-07 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-07-07 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.00362,"duration_str":"3.62ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 60 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00: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.00198,"duration_str":"1.98ms","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-07-07 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-07-07 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.0030600000000000002,"duration_str":"3.06ms","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-07-07 00: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-07-07 00:00: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.00157,"duration_str":"1.57ms","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-07-07 00: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-07-07 00:00: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.00149,"duration_str":"1.49ms","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-07-07 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-07-07 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.00346,"duration_str":"3.46ms","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-07-07 00: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-07-07 00:00: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.0019,"duration_str":"1.9ms","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-07-07 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-07-07 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.00319,"duration_str":"3.19ms","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-07-07 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-07-07 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.0007099999999999999,"duration_str":"710\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-07-07 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-07-07 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.00198,"duration_str":"1.98ms","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-07-07 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-07-07 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.00138,"duration_str":"1.38ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:231","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 61 and `schedules`.`date` between '2025-07-07 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-07-07 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.00836,"duration_str":"8.36ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:184","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 61 and `schedules`.`date` between '2025-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["61","2025-07-07 00:00: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.0079,"duration_str":"7.9ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:185","connection":"tintam"},{"sql":"select sum(`payment_wallets`.`price`) as aggregate from`payment_wallets` inner join `wallet_histories` as `wh` on `wh`.`id` = `payment_wallets`.`order_wallet_id` inner join `customers` as `c` on `wh`.`customer_id` = `c`.`id` where `payment_wallets`.`payment_date` between '2025-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 61","type":"query","params":[],"bindings":["2025-07-07 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.00122,"duration_str":"1.22ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:208","connection":"tintam"},{"sql":"select sum(`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-07-07 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-07-07 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.00348,"duration_str":"3.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-07-07 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-07-07 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.00257,"duration_str":"2.57ms","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-07-07 00: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-07-07 00:00: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.0016799999999999999,"duration_str":"1.68ms","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-07-07 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-07-07 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.0014399999999999999,"duration_str":"1.44ms","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-07-07 00: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-07-07 00:00: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.0024500000000000004,"duration_str":"2.45ms","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-07-07 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-07-07 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.0014199999999999998,"duration_str":"1.42ms","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-07-07 00: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-07-07 00:00: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.0011,"duration_str":"1.1ms","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-07-07 00: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-07-07 00:00: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.00152,"duration_str":"1.52ms","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-07-07 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-07-07 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.0009599999999999999,"duration_str":"960\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-07-07 00: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-07-07 00:00:00","2025-08-05 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0009699999999999999,"duration_str":"970\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 61 and `orders`.`created_at` between '2025-07-07 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-07-07 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.00108,"duration_str":"1.08ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`wallet_histories`.`order_price`) as aggregate from`wallet_histories` inner join `customers` as `c` on `wallet_histories`.`customer_id` = `c`.`id` where `wallet_histories`.`created_at` between '2025-07-07 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-07-07 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.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-07-07 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-07-07 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.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-07-07 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-07-07 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.00061,"duration_str":"610\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:231","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 62 and `schedules`.`date` between '2025-07-07 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-07-07 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.00078,"duration_str":"780\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:184","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 62 and `schedules`.`date` between '2025-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["62","2025-07-07 00:00: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.00057,"duration_str":"570\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-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 62","type":"query","params":[],"bindings":["2025-07-07 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.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-07-07 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-07-07 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.00074,"duration_str":"740\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-07-07 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-07-07 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.00062,"duration_str":"620\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-07-07 00: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-07-07 00:00: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.00061,"duration_str":"610\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-07-07 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-07-07 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-07-07 00: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-07-07 00:00:00","2025-08-05 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":223},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0007700000000000001,"duration_str":"770\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 62 and `orders`.`created_at` between '2025-07-07 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-07-07 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.00063,"duration_str":"630\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-07-07 00: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-07-07 00:00: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.00078,"duration_str":"780\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:225","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 62 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00: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.00067,"duration_str":"670\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-07-07 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-07-07 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.0016799999999999999,"duration_str":"1.68ms","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-07-07 00: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-07-07 00:00: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` = 62 and `orders`.`created_at` between '2025-07-07 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-07-07 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.00108,"duration_str":"1.08ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`wallet_histories`.`order_price`) as aggregate from`wallet_histories` inner join `customers` as `c` on `wallet_histories`.`customer_id` = `c`.`id` where `wallet_histories`.`created_at` between '2025-07-07 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-07-07 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.00124,"duration_str":"1.24ms","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-07-07 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-07-07 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.00214,"duration_str":"2.14ms","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-07-07 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-07-07 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.00856,"duration_str":"8.56ms","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-07-07 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-07-07 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.01317,"duration_str":"13.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` = 63 and `schedules`.`date` between '2025-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["63","2025-07-07 00:00: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.0106,"duration_str":"10.6ms","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-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 63","type":"query","params":[],"bindings":["2025-07-07 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.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-07-07 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-07-07 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.00344,"duration_str":"3.44ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-07-07 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-07-07 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.00134,"duration_str":"1.34ms","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-07-07 00: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-07-07 00:00: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.00173,"duration_str":"1.73ms","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-07-07 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-07-07 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.00185,"duration_str":"1.85ms","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-07-07 00: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-07-07 00:00: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.0029300000000000003,"duration_str":"2.93ms","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-07-07 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-07-07 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.00216,"duration_str":"2.16ms","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-07-07 00: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-07-07 00:00: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.0025499999999999997,"duration_str":"2.55ms","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-07-07 00: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-07-07 00:00: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.00139,"duration_str":"1.39ms","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-07-07 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-07-07 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.00128,"duration_str":"1.28ms","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-07-07 00: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-07-07 00:00: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.0012900000000000001,"duration_str":"1.29ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 63 and `orders`.`created_at` between '2025-07-07 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-07-07 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-07-07 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-07-07 00:00:00","2025-08-05 23:59:59","63"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00057,"duration_str":"570\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-07-07 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-07-07 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.0019399999999999999,"duration_str":"1.94ms","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-07-07 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-07-07 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.00095,"duration_str":"950\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:231","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 65 and `schedules`.`date` between '2025-07-07 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-07-07 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.00501,"duration_str":"5.01ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:184","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 65 and `schedules`.`date` between '2025-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["65","2025-07-07 00:00: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.00467,"duration_str":"4.67ms","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-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 65","type":"query","params":[],"bindings":["2025-07-07 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.00092,"duration_str":"920\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-07-07 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-07-07 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.0025099999999999996,"duration_str":"2.51ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-07-07 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-07-07 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.00222,"duration_str":"2.22ms","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-07-07 00: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-07-07 00:00:00","2025-08-05 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":221},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00149,"duration_str":"1.49ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 65 and `orders`.`created_at` between '2025-07-07 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-07-07 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.0017,"duration_str":"1.7ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 65 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00: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.00152,"duration_str":"1.52ms","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-07-07 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-07-07 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.00623,"duration_str":"6.23ms","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-07-07 00: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-07-07 00:00: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.00218,"duration_str":"2.18ms","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-07-07 00: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-07-07 00:00: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.0015300000000000001,"duration_str":"1.53ms","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-07-07 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-07-07 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.0012900000000000001,"duration_str":"1.29ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:227","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 65 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00: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.00196,"duration_str":"1.96ms","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-07-07 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-07-07 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.00155,"duration_str":"1.55ms","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-07-07 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-07-07 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.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-07-07 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-07-07 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.00185,"duration_str":"1.85ms","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-07-07 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-07-07 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.00078,"duration_str":"780\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:231","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 66 and `schedules`.`date` between '2025-07-07 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-07-07 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.00095,"duration_str":"950\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-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["66","2025-07-07 00:00: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.00099,"duration_str":"990\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-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 66","type":"query","params":[],"bindings":["2025-07-07 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.00078,"duration_str":"780\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-07-07 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-07-07 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.0019199999999999998,"duration_str":"1.92ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-07-07 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-07-07 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.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` = 66 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00: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.00066,"duration_str":"660\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-07-07 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-07-07 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.00055,"duration_str":"550\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-07-07 00: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-07-07 00:00: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.00115,"duration_str":"1.15ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 66 and `orders`.`created_at` between '2025-07-07 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-07-07 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` = 66 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00: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.00062,"duration_str":"620\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:225","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 66 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00:00","2025-08-05 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":226},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0007199999999999999,"duration_str":"720\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:226","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 66 and `orders`.`created_at` between '2025-07-07 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-07-07 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.00076,"duration_str":"760\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-07-07 00: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-07-07 00:00: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` = 66 and `orders`.`created_at` between '2025-07-07 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-07-07 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.004900000000000001,"duration_str":"4.9ms","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-07-07 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-07-07 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.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-07-07 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-07-07 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.0008900000000000001,"duration_str":"890\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:229","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-07-07 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-07-07 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.0008,"duration_str":"800\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:231","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 67 and `schedules`.`date` between '2025-07-07 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-07-07 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.013130000000000001,"duration_str":"13.13ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:184","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 67 and `schedules`.`date` between '2025-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["67","2025-07-07 00:00: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.01131,"duration_str":"11.31ms","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-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 67","type":"query","params":[],"bindings":["2025-07-07 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.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-07-07 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-07-07 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.00912,"duration_str":"9.12ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-07-07 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-07-07 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.0039700000000000004,"duration_str":"3.97ms","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-07-07 00: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-07-07 00:00: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.0075,"duration_str":"7.5ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 67 and `orders`.`created_at` between '2025-07-07 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-07-07 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.004059999999999999,"duration_str":"4.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` = 67 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00: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.0068200000000000005,"duration_str":"6.82ms","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-07-07 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-07-07 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.00323,"duration_str":"3.23ms","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-07-07 00: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-07-07 00:00: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.00653,"duration_str":"6.53ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:225","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 67 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00: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.00845,"duration_str":"8.45ms","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-07-07 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-07-07 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.00401,"duration_str":"4.01ms","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-07-07 00: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-07-07 00:00: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.0069299999999999995,"duration_str":"6.93ms","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-07-07 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-07-07 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.00417,"duration_str":"4.17ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`wallet_histories`.`order_price`) as aggregate from`wallet_histories` inner join `customers` as `c` on `wallet_histories`.`customer_id` = `c`.`id` where `wallet_histories`.`created_at` between '2025-07-07 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-07-07 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.0010500000000000002,"duration_str":"1.05ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-07-07 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-07-07 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.010230000000000001,"duration_str":"10.23ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:229","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-07-07 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-07-07 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.00088,"duration_str":"880\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-07-07 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-07-07 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.00411,"duration_str":"4.11ms","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-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["68","2025-07-07 00:00: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.004860000000000001,"duration_str":"4.86ms","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-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 68","type":"query","params":[],"bindings":["2025-07-07 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.00116,"duration_str":"1.16ms","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-07-07 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-07-07 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.0012900000000000001,"duration_str":"1.29ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-07-07 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-07-07 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-07-07 00: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-07-07 00:00:00","2025-08-05 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":221},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0008,"duration_str":"800\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 68 and `orders`.`created_at` between '2025-07-07 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-07-07 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` = 68 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00:00","2025-08-05 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":223},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00078,"duration_str":"780\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 68 and `orders`.`created_at` between '2025-07-07 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-07-07 00:00:00","2025-08-05 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":224},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00076,"duration_str":"760\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 68 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00: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.00079,"duration_str":"790\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:225","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 68 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00: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.0008,"duration_str":"800\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:226","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 68 and `orders`.`created_at` between '2025-07-07 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-07-07 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` = 68 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00:00","2025-08-05 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":228},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0009,"duration_str":"900\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 68 and `orders`.`created_at` between '2025-07-07 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-07-07 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.0007700000000000001,"duration_str":"770\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-07-07 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-07-07 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.00078,"duration_str":"780\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-07-07 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-07-07 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.0027400000000000002,"duration_str":"2.74ms","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-07-07 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-07-07 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.00713,"duration_str":"7.13ms","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-07-07 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-07-07 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.02409,"duration_str":"24.09ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:184","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 69 and `schedules`.`date` between '2025-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["69","2025-07-07 00:00: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.02912,"duration_str":"29.12ms","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-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 69","type":"query","params":[],"bindings":["2025-07-07 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.00092,"duration_str":"920\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-07-07 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-07-07 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.008230000000000001,"duration_str":"8.23ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-07-07 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-07-07 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.0051600000000000005,"duration_str":"5.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` = 69 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00: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.00882,"duration_str":"8.82ms","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-07-07 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-07-07 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.00449,"duration_str":"4.49ms","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-07-07 00: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-07-07 00:00: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.00848,"duration_str":"8.48ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 69 and `orders`.`created_at` between '2025-07-07 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-07-07 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.00504,"duration_str":"5.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` = 69 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00: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.00732,"duration_str":"7.32ms","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-07-07 00: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-07-07 00:00: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.00684,"duration_str":"6.84ms","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-07-07 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-07-07 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.00346,"duration_str":"3.46ms","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-07-07 00: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-07-07 00:00: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.007019999999999999,"duration_str":"7.02ms","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-07-07 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-07-07 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.00335,"duration_str":"3.35ms","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-07-07 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-07-07 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.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-07-07 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-07-07 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.00754,"duration_str":"7.54ms","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-07-07 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-07-07 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.00101,"duration_str":"1.01ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:231","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 70 and `schedules`.`date` between '2025-07-07 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-07-07 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.0009,"duration_str":"900\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-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["70","2025-07-07 00:00: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.00091,"duration_str":"910\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-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 70","type":"query","params":[],"bindings":["2025-07-07 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.00075,"duration_str":"750\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:208","connection":"tintam"},{"sql":"select sum(`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-07-07 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-07-07 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.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-07-07 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-07-07 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.00061,"duration_str":"610\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:220","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 70 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00:00","2025-08-05 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":221},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00067,"duration_str":"670\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 70 and `orders`.`created_at` between '2025-07-07 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-07-07 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` = 70 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00: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` = 70 and `orders`.`created_at` between '2025-07-07 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-07-07 00:00:00","2025-08-05 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":224},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00067,"duration_str":"670\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 70 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00: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` = 70 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00: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.00061,"duration_str":"610\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:226","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 70 and `orders`.`created_at` between '2025-07-07 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-07-07 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` = 70 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00: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` = 70 and `orders`.`created_at` between '2025-07-07 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-07-07 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.00067,"duration_str":"670\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`wallet_histories`.`order_price`) as aggregate from`wallet_histories` inner join `customers` as `c` on `wallet_histories`.`customer_id` = `c`.`id` where `wallet_histories`.`created_at` between '2025-07-07 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-07-07 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.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-07-07 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-07-07 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.00085,"duration_str":"850\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-07-07 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-07-07 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.00095,"duration_str":"950\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-07-07 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-07-07 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.01068,"duration_str":"10.68ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:184","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 73 and `schedules`.`date` between '2025-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["73","2025-07-07 00:00: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.01265,"duration_str":"12.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-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 73","type":"query","params":[],"bindings":["2025-07-07 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.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-07-07 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-07-07 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.007549999999999999,"duration_str":"7.55ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-07-07 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-07-07 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.0020099999999999996,"duration_str":"2.01ms","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-07-07 00: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-07-07 00:00:00","2025-08-05 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":221},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0014399999999999999,"duration_str":"1.44ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 73 and `orders`.`created_at` between '2025-07-07 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-07-07 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.0022299999999999998,"duration_str":"2.23ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 73 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00: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.00149,"duration_str":"1.49ms","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-07-07 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-07-07 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.0018700000000000001,"duration_str":"1.87ms","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-07-07 00: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-07-07 00:00: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.00125,"duration_str":"1.25ms","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-07-07 00: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-07-07 00:00: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.0011799999999999998,"duration_str":"1.18ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:226","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 73 and `orders`.`created_at` between '2025-07-07 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-07-07 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.00128,"duration_str":"1.28ms","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-07-07 00: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-07-07 00:00: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.00124,"duration_str":"1.24ms","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-07-07 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-07-07 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.00126,"duration_str":"1.26ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`wallet_histories`.`order_price`) as aggregate from`wallet_histories` inner join `customers` as `c` on `wallet_histories`.`customer_id` = `c`.`id` where `wallet_histories`.`created_at` between '2025-07-07 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-07-07 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.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-07-07 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-07-07 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.0017,"duration_str":"1.7ms","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-07-07 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-07-07 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.00094,"duration_str":"940\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:231","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 76 and `schedules`.`date` between '2025-07-07 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-07-07 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.00088,"duration_str":"880\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-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["76","2025-07-07 00:00:00","2025-08-05 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":185},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0007099999999999999,"duration_str":"710\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:185","connection":"tintam"},{"sql":"select sum(`payment_wallets`.`price`) as aggregate from`payment_wallets` inner join `wallet_histories` as `wh` on `wh`.`id` = `payment_wallets`.`order_wallet_id` inner join `customers` as `c` on `wh`.`customer_id` = `c`.`id` where `payment_wallets`.`payment_date` between '2025-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 76","type":"query","params":[],"bindings":["2025-07-07 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.00073,"duration_str":"730\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-07-07 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-07-07 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.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-07-07 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-07-07 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.00062,"duration_str":"620\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-07-07 00: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-07-07 00:00: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` = 76 and `orders`.`created_at` between '2025-07-07 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-07-07 00:00:00","2025-08-05 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":222},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00067,"duration_str":"670\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 76 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00:00","2025-08-05 23:59:59","0"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":223},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0007099999999999999,"duration_str":"710\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:223","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 76 and `orders`.`created_at` between '2025-07-07 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-07-07 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.00108,"duration_str":"1.08ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 76 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00: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` = 76 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00: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` = 76 and `orders`.`created_at` between '2025-07-07 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-07-07 00:00:00","2025-08-05 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":227},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0006,"duration_str":"600\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:227","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 76 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00: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-07-07 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-07-07 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.00106,"duration_str":"1.06ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`wallet_histories`.`order_price`) as aggregate from`wallet_histories` inner join `customers` as `c` on `wallet_histories`.`customer_id` = `c`.`id` where `wallet_histories`.`created_at` between '2025-07-07 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-07-07 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.00055,"duration_str":"550\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-07-07 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-07-07 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.00093,"duration_str":"930\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:229","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-07-07 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-07-07 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.00073,"duration_str":"730\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:231","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 77 and `schedules`.`date` between '2025-07-07 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-07-07 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.012029999999999999,"duration_str":"12.03ms","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-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["77","2025-07-07 00:00: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.01282,"duration_str":"12.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-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 77","type":"query","params":[],"bindings":["2025-07-07 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.00095,"duration_str":"950\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:208","connection":"tintam"},{"sql":"select sum(`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-07-07 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-07-07 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.01087,"duration_str":"10.87ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-07-07 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-07-07 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.00314,"duration_str":"3.14ms","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-07-07 00: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-07-07 00:00: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.00318,"duration_str":"3.18ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 77 and `orders`.`created_at` between '2025-07-07 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-07-07 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.00378,"duration_str":"3.78ms","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-07-07 00: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-07-07 00:00: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.00235,"duration_str":"2.35ms","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-07-07 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-07-07 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.0033,"duration_str":"3.3ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 77 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00: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.0026,"duration_str":"2.6ms","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-07-07 00: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-07-07 00:00: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.00332,"duration_str":"3.32ms","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-07-07 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-07-07 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.00321,"duration_str":"3.21ms","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-07-07 00: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-07-07 00:00: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.00244,"duration_str":"2.44ms","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-07-07 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-07-07 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.00368,"duration_str":"3.68ms","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-07-07 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-07-07 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.0007700000000000001,"duration_str":"770\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-07-07 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-07-07 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.00664,"duration_str":"6.64ms","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-07-07 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-07-07 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.00094,"duration_str":"940\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:231","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 78 and `schedules`.`date` between '2025-07-07 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-07-07 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.01828,"duration_str":"18.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` = 78 and `schedules`.`date` between '2025-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["78","2025-07-07 00:00: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.01992,"duration_str":"19.92ms","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-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 78","type":"query","params":[],"bindings":["2025-07-07 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.0014399999999999999,"duration_str":"1.44ms","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-07-07 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-07-07 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.0107,"duration_str":"10.7ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-07-07 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-07-07 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.0077599999999999995,"duration_str":"7.76ms","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-07-07 00: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-07-07 00:00: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.00639,"duration_str":"6.39ms","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-07-07 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-07-07 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.00325,"duration_str":"3.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` = 78 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00: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.0061600000000000005,"duration_str":"6.16ms","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-07-07 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-07-07 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.0053,"duration_str":"5.3ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:224","connection":"tintam"},{"sql":"select sum(`orders`.`gross_revenue`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 78 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00: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.01077,"duration_str":"10.77ms","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-07-07 00: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-07-07 00:00: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.01067,"duration_str":"10.67ms","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-07-07 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-07-07 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.00513,"duration_str":"5.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` = 78 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00: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.01703,"duration_str":"17.03ms","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-07-07 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-07-07 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.0053,"duration_str":"5.3ms","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-07-07 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-07-07 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.0014199999999999998,"duration_str":"1.42ms","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-07-07 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-07-07 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.00954,"duration_str":"9.54ms","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-07-07 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-07-07 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.00091,"duration_str":"910\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:231","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 79 and `schedules`.`date` between '2025-07-07 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-07-07 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.00949,"duration_str":"9.49ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:184","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 79 and `schedules`.`date` between '2025-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["79","2025-07-07 00:00: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.01007,"duration_str":"10.07ms","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-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 79","type":"query","params":[],"bindings":["2025-07-07 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.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-07-07 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-07-07 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.00163,"duration_str":"1.63ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-07-07 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-07-07 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.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` = 79 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00: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.0012900000000000001,"duration_str":"1.29ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:221","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 79 and `orders`.`created_at` between '2025-07-07 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-07-07 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.0010500000000000002,"duration_str":"1.05ms","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-07-07 00: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-07-07 00:00: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.0009599999999999999,"duration_str":"960\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-07-07 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-07-07 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.00122,"duration_str":"1.22ms","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-07-07 00: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-07-07 00:00: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` = 79 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00: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` = 79 and `orders`.`created_at` between '2025-07-07 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-07-07 00:00:00","2025-08-05 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":227},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.0009699999999999999,"duration_str":"970\u03bcs","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:227","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 79 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00: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` = 79 and `orders`.`created_at` between '2025-07-07 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-07-07 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.0013,"duration_str":"1.3ms","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-07-07 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-07-07 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.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-07-07 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-07-07 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.00108,"duration_str":"1.08ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:229","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-07-07 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-07-07 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.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` = 80 and `schedules`.`date` between '2025-07-07 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-07-07 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.0146,"duration_str":"14.6ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:184","connection":"tintam"},{"sql":"select count(*) as aggregate from`schedules` inner join `customers` as `c` on `c`.`id` = `schedules`.`user_id` where `c`.`source_id` = 80 and `schedules`.`date` between '2025-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["80","2025-07-07 00:00: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.01993,"duration_str":"19.93ms","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-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 80","type":"query","params":[],"bindings":["2025-07-07 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.00109,"duration_str":"1.09ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:208","connection":"tintam"},{"sql":"select sum(`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-07-07 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-07-07 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.01234,"duration_str":"12.34ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-07-07 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-07-07 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.01439,"duration_str":"14.39ms","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-07-07 00: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-07-07 00:00: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.01043,"duration_str":"10.43ms","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-07-07 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-07-07 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.00456,"duration_str":"4.56ms","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-07-07 00: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-07-07 00:00: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.00881,"duration_str":"8.81ms","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-07-07 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-07-07 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.004730000000000001,"duration_str":"4.73ms","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-07-07 00: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-07-07 00:00: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.007549999999999999,"duration_str":"7.55ms","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-07-07 00: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-07-07 00:00: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.007,"duration_str":"7ms","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-07-07 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-07-07 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.00383,"duration_str":"3.83ms","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-07-07 00: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-07-07 00:00: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.0152,"duration_str":"15.2ms","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-07-07 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-07-07 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.00471,"duration_str":"4.71ms","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-07-07 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-07-07 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.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-07-07 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-07-07 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.0078,"duration_str":"7.8ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:229","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-07-07 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-07-07 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.0012900000000000001,"duration_str":"1.29ms","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-07-07 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-07-07 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.01034,"duration_str":"10.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` = 82 and `schedules`.`date` between '2025-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`old_customer` = 0","type":"query","params":[],"bindings":["82","2025-07-07 00:00: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.01025,"duration_str":"10.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-07-07 00:00:00' and '2025-08-05 23:59:59' and `c`.`source_id` = 82","type":"query","params":[],"bindings":["2025-07-07 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.00139,"duration_str":"1.39ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:208","connection":"tintam"},{"sql":"select sum(`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-07-07 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-07-07 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.00186,"duration_str":"1.86ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:219","connection":"tintam"},{"sql":"select count(*) as aggregate from`customers` where `created_at` between '2025-07-07 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-07-07 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.00111,"duration_str":"1.11ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:220","connection":"tintam"},{"sql":"select count(*) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 82 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00: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` = 82 and `orders`.`created_at` between '2025-07-07 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-07-07 00:00:00","2025-08-05 23:59:59","1"],"hints":null,"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":222},{"index":19,"namespace":null,"name":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php","line":233},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":219},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":176}],"duration":0.00151,"duration_str":"1.51ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:222","connection":"tintam"},{"sql":"select sum(`orders`.`all_total`) as aggregate from`orders` inner join `customers` as `c` on `c`.`id` = `orders`.`member_id` where `c`.`source_id` = 82 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00: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.00161,"duration_str":"1.61ms","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-07-07 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-07-07 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.0014299999999999998,"duration_str":"1.43ms","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-07-07 00: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-07-07 00:00: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.00124,"duration_str":"1.24ms","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-07-07 00: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-07-07 00:00: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` = 82 and `orders`.`created_at` between '2025-07-07 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-07-07 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.0011,"duration_str":"1.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` = 82 and `orders`.`created_at` between '2025-07-07 00: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-07-07 00:00: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.00109,"duration_str":"1.09ms","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-07-07 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-07-07 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.00108,"duration_str":"1.08ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:228","connection":"tintam"},{"sql":"select sum(`wallet_histories`.`order_price`) as aggregate from`wallet_histories` inner join `customers` as `c` on `wallet_histories`.`customer_id` = `c`.`id` where `wallet_histories`.`created_at` between '2025-07-07 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-07-07 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.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-07-07 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-07-07 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.00128,"duration_str":"1.28ms","stmt_id":"\/app\/Http\/Controllers\/BE\/Branch\/BranchController.php:229","connection":"tintam"},{"sql":"select sum(`payment_histories`.`price`) as aggregate from`payment_histories` inner join `orders` as `o` on `o`.`id` = `payment_histories`.`order_id` inner join `customers` as `c` on `c`.`id` = `o`.`member_id` where `payment_histories`.`payment_date` between '2025-07-07 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-07-07 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.00095,"duration_str":"950\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":"5QwUppM5LQpCPcFEW2wJIrxmhhm5ex5Xnvp6chKz","url":"array:1 [\n  \"intended\" => \"https:\/\/tintam.flyspa.vn\/customers\"\n]","_previous":"array:1 [\n  \"url\" => \"https:\/\/tintam.flyspa.vn\/report\/branch-sources\"\n]","_flash":"array:2 [\n  \"old\" => []\n  \"new\" => []\n]","login_web_59ba36addc2b2f9401580f014c7f58ea4e30989d":"202"},"request":{"path_info":"\/report\/branch-sources","status_code":"<pre class=sf-dump id=sf-dump-589110489 data-indent-pad=\"  \"><span class=sf-dump-num>200<\/span>\n<\/pre><script>Sfdump(\"sf-dump-589110489\", {\"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-1108567074 data-indent-pad=\"  \"><span class=sf-dump-note>array:2<\/span> [<samp>\n  \"<span class=sf-dump-key>start_date<\/span>\" => \"<span class=sf-dump-str title=\"10 characters\">07-07-2025<\/span>\"\n  \"<span class=sf-dump-key>end_date<\/span>\" => \"<span class=sf-dump-str title=\"10 characters\">05-08-2025<\/span>\"\n<\/samp>]\n<\/pre><script>Sfdump(\"sf-dump-1108567074\", {\"maxDepth\":0})<\/script>\n","request_request":"<pre class=sf-dump id=sf-dump-788197559 data-indent-pad=\"  \"><span class=sf-dump-note>array:2<\/span> [<samp>\n  \"<span class=sf-dump-key>start_date<\/span>\" => \"<span class=sf-dump-str title=\"10 characters\">07-07-2025<\/span>\"\n  \"<span class=sf-dump-key>end_date<\/span>\" => \"<span class=sf-dump-str title=\"10 characters\">05-08-2025<\/span>\"\n<\/samp>]\n<\/pre><script>Sfdump(\"sf-dump-788197559\", {\"maxDepth\":0})<\/script>\n","request_headers":"<pre class=sf-dump id=sf-dump-849586801 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\">5QwUppM5LQpCPcFEW2wJIrxmhhm5ex5Xnvp6chKz<\/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=\"125 characters\">Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/138.0.0.0 Safari\/537.36 Edg\/138.0.0.0<\/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;Not)A;Brand&quot;;v=&quot;8&quot;, &quot;Chromium&quot;;v=&quot;138&quot;, &quot;Microsoft Edge&quot;;v=&quot;138&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=\"14 characters\">en-US,en;q=0.9<\/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=\"529 characters\">XSRF-TOKEN=eyJpdiI6InRBOWRcLzcya2EyeGx4UkxtcllycVZ3PT0iLCJ2YWx1ZSI6IlFOXC9rZDV1VGExZVwvQlNlU2p2aU1UQzRCcmY4RE1uUUczWlp6RzRLaHJcL0hOUDF6XC9tRFl1S3lwRnlnb0JMSkdMIiwibWFjIjoiNzA0ZDVlNTFlYzI5MTYyYmNjYWY1MzRlODNkYTIwZTQ1ODFjMmE3MjZiZjM0YWUwNDBmMTgyZTU5YTZmMzNkOSJ9; laravel_session=eyJpdiI6Ijd2eklIdlVaM1Z0elwvZVVQNW5uRzJnPT0iLCJ2YWx1ZSI6Im9LWW1QekY0TXVDdVhKekVqNkRVWFA2azFWM2ZSVHR5UkNodDlJcTVNZTF0R2pDOE1cLzJ2cCtKMFQxalorclRcLyIsIm1hYyI6ImFmMGNjOTVlOGU0ZTQ4YmQyODY5Zjk2ZTRiMmQ4YWM3N2JhOTA3Yjc3Y2FiNWYzYjYyN2EzZWZhYzRhMjc3NmUifQ%3D%3D<\/span>\"\n  <\/samp>]\n<\/samp>]\n<\/pre><script>Sfdump(\"sf-dump-849586801\", {\"maxDepth\":0})<\/script>\n","request_server":"<pre class=sf-dump id=sf-dump-61245764 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\">5QwUppM5LQpCPcFEW2wJIrxmhhm5ex5Xnvp6chKz<\/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=\"125 characters\">Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/138.0.0.0 Safari\/537.36 Edg\/138.0.0.0<\/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;Not)A;Brand&quot;;v=&quot;8&quot;, &quot;Chromium&quot;;v=&quot;138&quot;, &quot;Microsoft Edge&quot;;v=&quot;138&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=\"14 characters\">en-US,en;q=0.9<\/span>\"\n  \"<span class=sf-dump-key>HTTP_COOKIE<\/span>\" => \"<span class=sf-dump-str title=\"529 characters\">XSRF-TOKEN=eyJpdiI6InRBOWRcLzcya2EyeGx4UkxtcllycVZ3PT0iLCJ2YWx1ZSI6IlFOXC9rZDV1VGExZVwvQlNlU2p2aU1UQzRCcmY4RE1uUUczWlp6RzRLaHJcL0hOUDF6XC9tRFl1S3lwRnlnb0JMSkdMIiwibWFjIjoiNzA0ZDVlNTFlYzI5MTYyYmNjYWY1MzRlODNkYTIwZTQ1ODFjMmE3MjZiZjM0YWUwNDBmMTgyZTU5YTZmMzNkOSJ9; laravel_session=eyJpdiI6Ijd2eklIdlVaM1Z0elwvZVVQNW5uRzJnPT0iLCJ2YWx1ZSI6Im9LWW1QekY0TXVDdVhKekVqNkRVWFA2azFWM2ZSVHR5UkNodDlJcTVNZTF0R2pDOE1cLzJ2cCtKMFQxalorclRcLyIsIm1hYyI6ImFmMGNjOTVlOGU0ZTQ4YmQyODY5Zjk2ZTRiMmQ4YWM3N2JhOTA3Yjc3Y2FiNWYzYjYyN2EzZWZhYzRhMjc3NmUifQ%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=\"14 characters\">171.224.178.45<\/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\">18488<\/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=\"41 characters\">start_date=07-07-2025&amp;end_date=05-08-2025<\/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=\"41 characters\">start_date=07-07-2025&amp;end_date=05-08-2025<\/span>\"\n  \"<span class=sf-dump-key>REQUEST_URI<\/span>\" => \"<span class=sf-dump-str title=\"64 characters\">\/report\/branch-sources?start_date=07-07-2025&amp;end_date=05-08-2025<\/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>1754398497.818<\/span>\n  \"<span class=sf-dump-key>REQUEST_TIME<\/span>\" => <span class=sf-dump-num>1754398497<\/span>\n<\/samp>]\n<\/pre><script>Sfdump(\"sf-dump-61245764\", {\"maxDepth\":0})<\/script>\n","request_cookies":"<pre class=sf-dump id=sf-dump-3882017 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\">5QwUppM5LQpCPcFEW2wJIrxmhhm5ex5Xnvp6chKz<\/span>\"\n  \"<span class=sf-dump-key>laravel_session<\/span>\" => \"<span class=sf-dump-str title=\"40 characters\">mqzWJjpXjiogx7vYX7jE7yZaGp6llqX9wxwIgSd1<\/span>\"\n<\/samp>]\n<\/pre><script>Sfdump(\"sf-dump-3882017\", {\"maxDepth\":0})<\/script>\n","response_headers":"<pre class=sf-dump id=sf-dump-1857651576 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 12:55:00 GMT<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>content-type<\/span>\" => <span class=sf-dump-note>array:1<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"24 characters\">text\/html; charset=UTF-8<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>set-cookie<\/span>\" => <span class=sf-dump-note>array:2<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"324 characters\">XSRF-TOKEN=eyJpdiI6IlJmSk9iS3FUMlhvbDRoRzhtc1E2VFE9PSIsInZhbHVlIjoiUnc3ckI0bWVLTHJFbFFBNjRMNG85NnZsalFCSkVCT0ZrTlRvbkdRUFdNdFV5QjBQYTZKY1AzR3dkQlZJQ2lmUCIsIm1hYyI6ImE3Zjk0ZGYzYmEzY2FmZmU2MjgyOGQwNTBkOTU5ZjkxNjEyNzcxMzU3YzJiNmNlNGQ0NTllNGZiODUyNmNhMWQifQ%3D%3D; expires=Wed, 05-Aug-2026 12:55:00 GMT; Max-Age=31536000; path=\/<\/span>\"\n    <span class=sf-dump-index>1<\/span> => \"<span class=sf-dump-str title=\"286 characters\">laravel_session=eyJpdiI6Ijkwa01IZ3F4RmdoTUNiVkh1VVwvcHN3PT0iLCJ2YWx1ZSI6IitYQ0FqRkVmM1wvblF3YkxGSjU3RXU1NFB2XC9ndzdMK1YyWm04U3pDS1BNZUlkbmFBYXFlTFN4YkNacnRYR0lTYSIsIm1hYyI6ImM5NGVkYjU0MmFmNWY4MTgxM2VkMzk1NmM3NjJmNjI0ZDk0ZGU4ZDhhYjBlMTQzZDA0OWJhNzZkN2EzNTdiNGQifQ%3D%3D; path=\/; httponly<\/span>\"\n  <\/samp>]\n  \"<span class=sf-dump-key>Set-Cookie<\/span>\" => <span class=sf-dump-note>array:2<\/span> [<samp>\n    <span class=sf-dump-index>0<\/span> => \"<span class=sf-dump-str title=\"306 characters\">XSRF-TOKEN=eyJpdiI6IlJmSk9iS3FUMlhvbDRoRzhtc1E2VFE9PSIsInZhbHVlIjoiUnc3ckI0bWVLTHJFbFFBNjRMNG85NnZsalFCSkVCT0ZrTlRvbkdRUFdNdFV5QjBQYTZKY1AzR3dkQlZJQ2lmUCIsIm1hYyI6ImE3Zjk0ZGYzYmEzY2FmZmU2MjgyOGQwNTBkOTU5ZjkxNjEyNzcxMzU3YzJiNmNlNGQ0NTllNGZiODUyNmNhMWQifQ%3D%3D; expires=Wed, 05-Aug-2026 12:55:00 GMT; path=\/<\/span>\"\n    <span class=sf-dump-index>1<\/span> => \"<span class=sf-dump-str title=\"286 characters\">laravel_session=eyJpdiI6Ijkwa01IZ3F4RmdoTUNiVkh1VVwvcHN3PT0iLCJ2YWx1ZSI6IitYQ0FqRkVmM1wvblF3YkxGSjU3RXU1NFB2XC9ndzdMK1YyWm04U3pDS1BNZUlkbmFBYXFlTFN4YkNacnRYR0lTYSIsIm1hYyI6ImM5NGVkYjU0MmFmNWY4MTgxM2VkMzk1NmM3NjJmNjI0ZDk0ZGU4ZDhhYjBlMTQzZDA0OWJhNzZkN2EzNTdiNGQifQ%3D%3D; path=\/; httponly<\/span>\"\n  <\/samp>]\n<\/samp>]\n<\/pre><script>Sfdump(\"sf-dump-1857651576\", {\"maxDepth\":0})<\/script>\n","session_attributes":"<pre class=sf-dump id=sf-dump-1609730656 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\">5QwUppM5LQpCPcFEW2wJIrxmhhm5ex5Xnvp6chKz<\/span>\"\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>_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>login_web_59ba36addc2b2f9401580f014c7f58ea4e30989d<\/span>\" => <span class=sf-dump-num>202<\/span>\n<\/samp>]\n<\/pre><script>Sfdump(\"sf-dump-1609730656\", {\"maxDepth\":0})<\/script>\n"}}