{"__meta":{"id":"01M0SX177ERF4WCEQKESHEDC74","datetime":"2026-08-24 18:18:24","utime":1787575704.814192,"method":"GET","uri":"\/school\/chanakaya-international-school\/staff\/dashboard","ip":"127.0.0.1"},"request":{"data":{"uri":"GET school\/{slug}\/staff\/dashboard","middleware":["web","staff.auth"],"controller":{"value":"App\\Http\\Controllers\\Staff\\DashboardController@index","xdebug_link":{"url":"phpstorm:\/\/open?file=C%3A%2Fxampp%2Fhtdocs%2Fschool-erp%2Fapp%2FHttp%2FControllers%2FStaff%2FDashboardController.php&line=52","ajax":false,"filename":"DashboardController.php","line":"52","path":"\\app\\Http\\Controllers\\Staff\\DashboardController.php"}},"prefix":"school\/{slug}\/staff","file":{"value":"app\/Http\/Controllers\/Staff\/DashboardController.php:52-288","xdebug_link":{"url":"phpstorm:\/\/open?file=C%3A%2Fxampp%2Fhtdocs%2Fschool-erp%2Fapp%2FHttp%2FControllers%2FStaff%2FDashboardController.php&line=52","ajax":false,"filename":"DashboardController.php","line":"52","path":"\\app\\Http\\Controllers\\Staff\\DashboardController.php"}},"method":"GET","format":"html","content_type":"text\/html; charset=utf-8","status_text":"OK","status_code":200,"request_query":[],"request_request":[],"request_files":[],"request_headers":{"host":["127.0.0.1:8000"],"connection":["keep-alive"],"sec-ch-ua":["\"Not=A?Brand\";v=\"99\", \"Google Chrome\";v=\"151\", \"Chromium\";v=\"151\""],"sec-ch-ua-mobile":["?0"],"sec-ch-ua-platform":["\"Windows\""],"upgrade-insecure-requests":["1"],"user-agent":["Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/151.0.0.0 Safari\/537.36"],"accept":["text\/html,application\/xhtml+xml,application\/xml;q=0.9,image\/avif,image\/webp,image\/apng,*\/*;q=0.8,application\/signed-exchange;v=b3;q=0.7"],"sec-fetch-site":["same-origin"],"sec-fetch-mode":["navigate"],"sec-fetch-user":["?1"],"sec-fetch-dest":["document"],"referer":["http:\/\/127.0.0.1:8000\/school\/chanakaya-international-school\/staff\/applications"],"accept-encoding":["gzip, deflate, br, zstd"],"accept-language":["en-GB,en-US;q=0.9,en;q=0.8"],"cookie":["PHPDEBUGBAR_STACK_DATA=%5B%5D; XSRF-TOKEN=eyJpdiI6IlBEdm9KWTc4MVR1ck5SZnVVSzR5Ync9PSIsInZhbHVlIjoiK0xDM2lFRFdJUC93UW14OFF2em1qT05uOEZDT3pRVmR5bzFiSWlQK2s5VWkxWUVTZm9JUXVOSFVMNW13TlYzZ2pNdjFhMXNWZllxR3VXYnpBMDZjSWQ2dVoxZjVBNitSQjlOcTViZmNhbERwdlN5dWM4YWNxc25IelJZcGtzRU4iLCJtYWMiOiI3MTQwY2QyMGIzMWMyYTgxYWYwYTljZDZiYWRjMmE5MjI3MDY0OGNlNjM3MDdhNWEyMWNlZTM5NGNkODM4YTcyIiwidGFnIjoiIn0%3D; laravel-session=eyJpdiI6ImV1MFhnTGdYYUV0TjdKa05veElTVUE9PSIsInZhbHVlIjoiZEpDL0lzck5VaG5KN2pJUENWZXZxdHhOcUlxUWR3TDJ3aFRlNUJib3Z3Mk9JRHNTVzFyVXNFWW5Cd2xrMVovUHA5QjA0VFhwYmw0b1hzdFViNUxZVVIvZTBNNjlRZHh2Znp3RXprSlVQSlZqL2ZQSWRYZnM5Q0NxZ1daYzYvck8iLCJtYWMiOiJiYTMwMzMwY2JkMzMyMGZlYTcwNzZhZTY5ZmRlMTI3ZTUyYmFiOGJjMGNhNTk4NDNhYzdjNjFkOGU3NTgxNDAwIiwidGFnIjoiIn0%3D"]},"request_server":{"DOCUMENT_ROOT":"C:\\xampp\\htdocs\\school-erp\\public","REMOTE_ADDR":"127.0.0.1","REMOTE_PORT":"59128","SERVER_SOFTWARE":"PHP 8.2.12 Development Server","SERVER_PROTOCOL":"HTTP\/1.1","SERVER_NAME":"127.0.0.1","SERVER_PORT":"8000","REQUEST_URI":"\/school\/chanakaya-international-school\/staff\/dashboard","REQUEST_METHOD":"GET","SCRIPT_NAME":"\/index.php","SCRIPT_FILENAME":"C:\\xampp\\htdocs\\school-erp\\public\\index.php","PATH_INFO":"\/school\/chanakaya-international-school\/staff\/dashboard","PHP_SELF":"\/index.php\/school\/chanakaya-international-school\/staff\/dashboard","HTTP_HOST":"127.0.0.1:8000","HTTP_CONNECTION":"keep-alive","HTTP_SEC_CH_UA":"\"Not=A?Brand\";v=\"99\", \"Google Chrome\";v=\"151\", \"Chromium\";v=\"151\"","HTTP_SEC_CH_UA_MOBILE":"?0","HTTP_SEC_CH_UA_PLATFORM":"\"Windows\"","HTTP_UPGRADE_INSECURE_REQUESTS":"1","HTTP_USER_AGENT":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/151.0.0.0 Safari\/537.36","HTTP_ACCEPT":"text\/html,application\/xhtml+xml,application\/xml;q=0.9,image\/avif,image\/webp,image\/apng,*\/*;q=0.8,application\/signed-exchange;v=b3;q=0.7","HTTP_SEC_FETCH_SITE":"same-origin","HTTP_SEC_FETCH_MODE":"navigate","HTTP_SEC_FETCH_USER":"?1","HTTP_SEC_FETCH_DEST":"document","HTTP_REFERER":"http:\/\/127.0.0.1:8000\/school\/chanakaya-international-school\/staff\/applications","HTTP_ACCEPT_ENCODING":"gzip, deflate, br, zstd","HTTP_ACCEPT_LANGUAGE":"en-GB,en-US;q=0.9,en;q=0.8","HTTP_COOKIE":"PHPDEBUGBAR_STACK_DATA=%5B%5D; XSRF-TOKEN=eyJpdiI6IlBEdm9KWTc4MVR1ck5SZnVVSzR5Ync9PSIsInZhbHVlIjoiK0xDM2lFRFdJUC93UW14OFF2em1qT05uOEZDT3pRVmR5bzFiSWlQK2s5VWkxWUVTZm9JUXVOSFVMNW13TlYzZ2pNdjFhMXNWZllxR3VXYnpBMDZjSWQ2dVoxZjVBNitSQjlOcTViZmNhbERwdlN5dWM4YWNxc25IelJZcGtzRU4iLCJtYWMiOiI3MTQwY2QyMGIzMWMyYTgxYWYwYTljZDZiYWRjMmE5MjI3MDY0OGNlNjM3MDdhNWEyMWNlZTM5NGNkODM4YTcyIiwidGFnIjoiIn0%3D; laravel-session=eyJpdiI6ImV1MFhnTGdYYUV0TjdKa05veElTVUE9PSIsInZhbHVlIjoiZEpDL0lzck5VaG5KN2pJUENWZXZxdHhOcUlxUWR3TDJ3aFRlNUJib3Z3Mk9JRHNTVzFyVXNFWW5Cd2xrMVovUHA5QjA0VFhwYmw0b1hzdFViNUxZVVIvZTBNNjlRZHh2Znp3RXprSlVQSlZqL2ZQSWRYZnM5Q0NxZ1daYzYvck8iLCJtYWMiOiJiYTMwMzMwY2JkMzMyMGZlYTcwNzZhZTY5ZmRlMTI3ZTUyYmFiOGJjMGNhNTk4NDNhYzdjNjFkOGU3NTgxNDAwIiwidGFnIjoiIn0%3D","REQUEST_TIME_FLOAT":1787575704.351263,"REQUEST_TIME":1787575704},"request_cookies":{"PHPDEBUGBAR_STACK_DATA":"**","XSRF-TOKEN":"Se***MQ","laravel-session":"Aam2E44ejYMdiehhmsLe9oytlkaD30G2zt4T4noX"},"request_attributes":[],"route":"","response_headers":{"content-type":["text\/html; charset=utf-8"],"cache-control":["no-cache, private"],"date":["Mon, 24 Aug 2026 12:48:24 GMT"],"set-cookie":["XSRF-TOKEN=eyJpdiI6InVaWHdURUN0c21qUlZEYTRXaHgxU3c9PSIsInZhbHVlIjoieVBQSUVWV3R4S2dLallmc3QzKzVqS1ZVeDZ1YmhYbFRQeVpidXlIc294SFZwRjJQcnBRdndncXRsOURHbXBFQzJ0dzFrd21kN2VYeXJ4U0lSU2poNGtDbytKTzJVTGtyUS9hQkY3SGdlSFlhU3V3TURKYkpQSFN0UVphYm1scC8iLCJtYWMiOiIyZjAzNGFlZjY3ZDk2MTg4ZGRkNGNjMWVlOTc3MTZlMWY0MTBkZDRjYWRlYzIxMWNjZDk3YWI3YTE3YWY1NWZlIiwidGFnIjoiIn0%3D; expires=Mon, 24 Aug 2026 14:48:24 GMT; Max-Age=7200; path=\/; samesite=lax","laravel-session=eyJpdiI6IklzbEYwVkxtNzQwczhKRCtUUmxxQlE9PSIsInZhbHVlIjoiSDFjekhsTFdtRHJXcVJ6UmxHUFVOU1RSdHdkL0VGTnBtVUdKU0RmdjhyZk9SZk9EZTcwUjRJUEFDcGZoc2hLeXJPRkd2MkwwQzF3UTdFYzh4dmlsVHdhTW01YmlFNmQ4RFNOMCs3bGlxMFBWZGtvdGRITnZZbGpIb3JweENrZk0iLCJtYWMiOiIwOTg1Y2I5ZDIxOThlZjE3N2JlNzFhZTA5Y2ZlOWViYWM4YjJmOWJiNGU2NTM3N2ZmYjkyODUwZWM5ZmE3ZDQ2IiwidGFnIjoiIn0%3D; expires=Mon, 24 Aug 2026 14:48:24 GMT; Max-Age=7200; path=\/; httponly; samesite=lax"]},"response_cookies":["XSRF-TOKEN=eyJpdiI6InVaWHdURUN0c21qUlZEYTRXaHgxU3c9PSIsInZhbHVlIjoieVBQSUVWV3R4S2dLallmc3QzKzVqS1ZVeDZ1YmhYbFRQeVpidXlIc294SFZwRjJQcnBRdndncXRsOURHbXBFQzJ0dzFrd21kN2VYeXJ4U0lSU2poNGtDbytKTzJVTGtyUS9hQkY3SGdlSFlhU3V3TURKYkpQSFN0UVphYm1scC8iLCJtYWMiOiIyZjAzNGFlZjY3ZDk2MTg4ZGRkNGNjMWVlOTc3MTZlMWY0MTBkZDRjYWRlYzIxMWNjZDk3YWI3YTE3YWY1NWZlIiwidGFnIjoiIn0%3D; expires=Mon, 24-Aug-2026 14:48:24 GMT; path=\/","laravel-session=eyJpdiI6IklzbEYwVkxtNzQwczhKRCtUUmxxQlE9PSIsInZhbHVlIjoiSDFjekhsTFdtRHJXcVJ6UmxHUFVOU1RSdHdkL0VGTnBtVUdKU0RmdjhyZk9SZk9EZTcwUjRJUEFDcGZoc2hLeXJPRkd2MkwwQzF3UTdFYzh4dmlsVHdhTW01YmlFNmQ4RFNOMCs3bGlxMFBWZGtvdGRITnZZbGpIb3JweENrZk0iLCJtYWMiOiIwOTg1Y2I5ZDIxOThlZjE3N2JlNzFhZTA5Y2ZlOWViYWM4YjJmOWJiNGU2NTM3N2ZmYjkyODUwZWM5ZmE3ZDQ2IiwidGFnIjoiIn0%3D; expires=Mon, 24-Aug-2026 14:48:24 GMT; path=\/; httponly"],"session_metadata":[],"session_attributes":{"_token":"Se***MQ","_previous":{"url":"http:\/\/127.0.0.1:8000\/school\/chanakaya-international-school\/staff\/dashboard","route":"staff.dashboard"},"_flash":{"old":[],"new":[]},"staff_id":3,"staff_employee_code":"EMP-003","staff_school_id":4,"staff_school_slug":"chanakaya-international-school","user_role":"staff","user_name":"HARPREET SINGH"},"flashes":[],"path_info":"\/school\/chanakaya-international-school\/staff\/dashboard","locale":"en"},"tooltip":{"status":"200 OK","full_url":"http:\/\/127.0.0.1:8000\/school\/chanakaya-international-school\/staff\/dashboard","action_name":"staff.dashboard","controller_action":"App\\Http\\Controllers\\Staff\\DashboardController@index"},"badge":null},"exceptions":{"count":0,"exceptions":[]},"messages":{"count":0,"messages":[]},"memory":{"peak_usage":27153272,"peak_usage_str":"26MB"},"laravel":{"version":"12.x","tooltip":{"Laravel Version":"12.61.0","PHP Version":"8.2.12","Environment":"local","Debug Mode":"Enabled","URL":"localhost","Timezone":"Asia\/Kolkata","Locale":"en"}},"views":{"count":2,"nb_templates":2,"templates":[{"name":"staff.dashboard","param_count":null,"params":[],"start":1787575704.789789,"type":"blade","hash":"bladeC:\\xampp\\htdocs\\school-erp\\resources\\views\/staff\/dashboard.blade.phpstaff.dashboard","xdebug_link":{"url":"phpstorm:\/\/open?file=C%3A%2Fxampp%2Fhtdocs%2Fschool-erp%2Fresources%2Fviews%2Fstaff%2Fdashboard.blade.php&line=1","ajax":false,"filename":"dashboard.blade.php","line":"?","path":"\\resources\\views\\staff\\dashboard.blade.php"}},{"name":"staff.layouts.app","param_count":null,"params":[],"start":1787575704.809048,"type":"blade","hash":"bladeC:\\xampp\\htdocs\\school-erp\\resources\\views\/staff\/layouts\/app.blade.phpstaff.layouts.app","xdebug_link":{"url":"phpstorm:\/\/open?file=C%3A%2Fxampp%2Fhtdocs%2Fschool-erp%2Fresources%2Fviews%2Fstaff%2Flayouts%2Fapp.blade.php&line=1","ajax":false,"filename":"app.blade.php","line":"?","path":"\\resources\\views\\staff\\layouts\\app.blade.php"}}]},"queries":{"count":23,"nb_statements":22,"nb_visible_statements":23,"nb_excluded_statements":0,"nb_failed_statements":0,"accumulated_duration":0.02855,"accumulated_duration_str":"28.55ms","memory_usage":0,"memory_usage_str":null,"statements":[{"sql":"Connection Established","type":"transaction","params":[],"backtrace":[{"index":9,"namespace":null,"name":"app\/Http\/Controllers\/Staff\/DashboardController.php","file":"C:\\xampp\\htdocs\\school-erp\\app\\Http\\Controllers\\Staff\\DashboardController.php","line":57},{"index":10,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php","line":46},{"index":11,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php","line":265},{"index":12,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php","line":211},{"index":13,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php","line":822}],"start":1787575704.674495,"slow":false,"filename":"DashboardController.php:57","source":{"index":9,"namespace":null,"name":"app\/Http\/Controllers\/Staff\/DashboardController.php","file":"C:\\xampp\\htdocs\\school-erp\\app\\Http\\Controllers\\Staff\\DashboardController.php","line":57},"xdebug_link":{"url":"phpstorm:\/\/open?file=C%3A%2Fxampp%2Fhtdocs%2Fschool-erp%2Fapp%2FHttp%2FControllers%2FStaff%2FDashboardController.php&line=57","ajax":false,"filename":"DashboardController.php","line":"57","path":"\\app\\Http\\Controllers\\Staff\\DashboardController.php"},"connection":"school_erp"},{"sql":"select * from `schools` where `id` = 4 limit 1","type":"query","params":[4],"backtrace":[{"index":14,"namespace":null,"name":"app\/Http\/Controllers\/Staff\/DashboardController.php","file":"C:\\xampp\\htdocs\\school-erp\\app\\Http\\Controllers\\Staff\\DashboardController.php","line":57},{"index":15,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php","line":46},{"index":16,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php","line":265},{"index":17,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php","line":211},{"index":18,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php","line":822}],"start":1787575704.679331,"duration":0.01457,"duration_str":"14.57ms","slow":false,"filename":"DashboardController.php:57","source":{"index":14,"namespace":null,"name":"app\/Http\/Controllers\/Staff\/DashboardController.php","file":"C:\\xampp\\htdocs\\school-erp\\app\\Http\\Controllers\\Staff\\DashboardController.php","line":57},"xdebug_link":{"url":"phpstorm:\/\/open?file=C%3A%2Fxampp%2Fhtdocs%2Fschool-erp%2Fapp%2FHttp%2FControllers%2FStaff%2FDashboardController.php&line=57","ajax":false,"filename":"DashboardController.php","line":"57","path":"\\app\\Http\\Controllers\\Staff\\DashboardController.php"},"connection":"school_erp","explain":{"url":"http:\/\/127.0.0.1:8000\/_debugbar\/queries\/explain","driver":"mysql","connection":"mysql","query":"select * from `schools` where `id` = ? limit 1","modes":["explain"],"hash":"ab4f55a89c76f0427038427d1a1e573f9ccba0aa1b01402fc6eb337e41eb984e"},"start_percent":0,"width_percent":51.033},{"sql":"select * from `school_staff` where `id` = 3 and `school_id` = 4 limit 1","type":"query","params":[3,4],"backtrace":[{"index":14,"namespace":null,"name":"app\/Http\/Controllers\/Staff\/DashboardController.php","file":"C:\\xampp\\htdocs\\school-erp\\app\\Http\\Controllers\\Staff\\DashboardController.php","line":58},{"index":15,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php","line":46},{"index":16,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php","line":265},{"index":17,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php","line":211},{"index":18,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php","line":822}],"start":1787575704.698555,"duration":0.00065,"duration_str":"650\u03bcs","slow":false,"filename":"DashboardController.php:58","source":{"index":14,"namespace":null,"name":"app\/Http\/Controllers\/Staff\/DashboardController.php","file":"C:\\xampp\\htdocs\\school-erp\\app\\Http\\Controllers\\Staff\\DashboardController.php","line":58},"xdebug_link":{"url":"phpstorm:\/\/open?file=C%3A%2Fxampp%2Fhtdocs%2Fschool-erp%2Fapp%2FHttp%2FControllers%2FStaff%2FDashboardController.php&line=58","ajax":false,"filename":"DashboardController.php","line":"58","path":"\\app\\Http\\Controllers\\Staff\\DashboardController.php"},"connection":"school_erp","explain":{"url":"http:\/\/127.0.0.1:8000\/_debugbar\/queries\/explain","driver":"mysql","connection":"mysql","query":"select * from `school_staff` where `id` = ? and `school_id` = ? limit 1","modes":["explain"],"hash":"a55da0db0c0ee745071837cc53d4fdc8d97fc0c557ea695aa1900db1548c2d32"},"start_percent":51.033,"width_percent":2.277},{"sql":"select (SELECT COUNT(*) FROM school_homework_replies r\nWHERE r.broadcast_id = h.id AND r.student_id IS NOT NULL\nAND r.created_at > COALESCE((SELECT hr.last_read_at FROM school_homework_reads hr\nWHERE hr.broadcast_id = h.id AND hr.staff_id IS NULL AND hr.student_id IS NULL LIMIT 1), '1970-01-01 00:00:00')\n) as unread_replies, (CASE WHEN h.sender_staff_id <> 3 AND h.created_at > COALESCE((SELECT hr.last_read_at FROM school_homework_reads hr\nWHERE hr.broadcast_id = h.id AND hr.staff_id IS NULL AND hr.student_id IS NULL LIMIT 1), '1970-01-01 00:00:00') THEN 1 ELSE 0 END) as is_new from `school_homework_broadcasts` as `h` where `h`.`school_id` = 4 and `h`.`sender_staff_id` = 3","type":"query","params":[4,3],"backtrace":[{"index":13,"namespace":null,"name":"app\/Http\/Controllers\/Staff\/DashboardController.php","file":"C:\\xampp\\htdocs\\school-erp\\app\\Http\\Controllers\\Staff\\DashboardController.php","line":86},{"index":14,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php","line":46},{"index":15,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php","line":265},{"index":16,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php","line":211},{"index":17,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php","line":822}],"start":1787575704.704555,"duration":0.00076,"duration_str":"760\u03bcs","slow":false,"filename":"DashboardController.php:86","source":{"index":13,"namespace":null,"name":"app\/Http\/Controllers\/Staff\/DashboardController.php","file":"C:\\xampp\\htdocs\\school-erp\\app\\Http\\Controllers\\Staff\\DashboardController.php","line":86},"xdebug_link":{"url":"phpstorm:\/\/open?file=C%3A%2Fxampp%2Fhtdocs%2Fschool-erp%2Fapp%2FHttp%2FControllers%2FStaff%2FDashboardController.php&line=86","ajax":false,"filename":"DashboardController.php","line":"86","path":"\\app\\Http\\Controllers\\Staff\\DashboardController.php"},"connection":"school_erp","explain":{"url":"http:\/\/127.0.0.1:8000\/_debugbar\/queries\/explain","driver":"mysql","connection":"mysql","query":"select (SELECT COUNT(*) FROM school_homework_replies r\r\n            WHERE r.broadcast_id = h.id AND r.student_id IS NOT NULL\r\n            AND r.created_at > COALESCE((SELECT hr.last_read_at FROM school_homework_reads hr\r\n            WHERE hr.broadcast_id = h.id AND hr.staff_id IS NULL AND hr.student_id IS NULL LIMIT 1), '1970-01-01 00:00:00')\r\n        ) as unread_replies, (CASE WHEN h.sender_staff_id <> 3 AND h.created_at > COALESCE((SELECT hr.last_read_at FROM school_homework_reads hr\r\n            WHERE hr.broadcast_id = h.id AND hr.staff_id IS NULL AND hr.student_id IS NULL LIMIT 1), '1970-01-01 00:00:00') THEN 1 ELSE 0 END) as is_new from `school_homework_broadcasts` as `h` where `h`.`school_id` = ? and `h`.`sender_staff_id` = ?","modes":["explain"],"hash":"880aca7c093c75009dd417b8039d45992d9a7f788658c5ebe2c093be1fbbaf14"},"start_percent":53.31,"width_percent":2.662},{"sql":"select count(distinct `class_id`) as aggregate from `school_staff_assignments` where `staff_id` = 3","type":"query","params":[3],"backtrace":[{"index":15,"namespace":null,"name":"app\/Http\/Controllers\/Staff\/DashboardController.php","file":"C:\\xampp\\htdocs\\school-erp\\app\\Http\\Controllers\\Staff\\DashboardController.php","line":95},{"index":16,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php","line":46},{"index":17,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php","line":265},{"index":18,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php","line":211},{"index":19,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php","line":822}],"start":1787575704.709787,"duration":0.00079,"duration_str":"790\u03bcs","slow":false,"filename":"DashboardController.php:95","source":{"index":15,"namespace":null,"name":"app\/Http\/Controllers\/Staff\/DashboardController.php","file":"C:\\xampp\\htdocs\\school-erp\\app\\Http\\Controllers\\Staff\\DashboardController.php","line":95},"xdebug_link":{"url":"phpstorm:\/\/open?file=C%3A%2Fxampp%2Fhtdocs%2Fschool-erp%2Fapp%2FHttp%2FControllers%2FStaff%2FDashboardController.php&line=95","ajax":false,"filename":"DashboardController.php","line":"95","path":"\\app\\Http\\Controllers\\Staff\\DashboardController.php"},"connection":"school_erp","explain":{"url":"http:\/\/127.0.0.1:8000\/_debugbar\/queries\/explain","driver":"mysql","connection":"mysql","query":"select count(distinct `class_id`) as aggregate from `school_staff_assignments` where `staff_id` = ?","modes":["explain"],"hash":"7eea96b7b9b650e7457dbe78ddf0bcc335436d3901d605644adc5e8e9721e901"},"start_percent":55.972,"width_percent":2.767},{"sql":"select `designation` from `school_staff` where `id` = 3 and `school_id` = 4 limit 1","type":"query","params":[3,4],"backtrace":[{"index":15,"namespace":null,"name":"app\/Http\/Controllers\/Staff\/DashboardController.php","file":"C:\\xampp\\htdocs\\school-erp\\app\\Http\\Controllers\\Staff\\DashboardController.php","line":99},{"index":16,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php","line":46},{"index":17,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php","line":265},{"index":18,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php","line":211},{"index":19,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php","line":822}],"start":1787575704.714308,"duration":0.00039,"duration_str":"390\u03bcs","slow":false,"filename":"DashboardController.php:99","source":{"index":15,"namespace":null,"name":"app\/Http\/Controllers\/Staff\/DashboardController.php","file":"C:\\xampp\\htdocs\\school-erp\\app\\Http\\Controllers\\Staff\\DashboardController.php","line":99},"xdebug_link":{"url":"phpstorm:\/\/open?file=C%3A%2Fxampp%2Fhtdocs%2Fschool-erp%2Fapp%2FHttp%2FControllers%2FStaff%2FDashboardController.php&line=99","ajax":false,"filename":"DashboardController.php","line":"99","path":"\\app\\Http\\Controllers\\Staff\\DashboardController.php"},"connection":"school_erp","explain":{"url":"http:\/\/127.0.0.1:8000\/_debugbar\/queries\/explain","driver":"mysql","connection":"mysql","query":"select `designation` from `school_staff` where `id` = ? and `school_id` = ? limit 1","modes":["explain"],"hash":"7cbcf052c9451eeca99a9f48ae31a96a434bf5f4c4448e43662e6bb4903878f4"},"start_percent":58.739,"width_percent":1.366},{"sql":"select `sa`.`class_id` from `school_staff_assignments` as `sa` inner join `school_classes` as `c` on `sa`.`class_id` = `c`.`id` where `sa`.`staff_id` = 3 and `c`.`school_id` = 4","type":"query","params":[3,4],"backtrace":[{"index":13,"namespace":null,"name":"app\/Http\/Controllers\/Staff\/DashboardController.php","file":"C:\\xampp\\htdocs\\school-erp\\app\\Http\\Controllers\\Staff\\DashboardController.php","line":123},{"index":14,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php","line":46},{"index":15,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php","line":265},{"index":16,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php","line":211},{"index":17,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php","line":822}],"start":1787575704.71862,"duration":0.00044,"duration_str":"440\u03bcs","slow":false,"filename":"DashboardController.php:123","source":{"index":13,"namespace":null,"name":"app\/Http\/Controllers\/Staff\/DashboardController.php","file":"C:\\xampp\\htdocs\\school-erp\\app\\Http\\Controllers\\Staff\\DashboardController.php","line":123},"xdebug_link":{"url":"phpstorm:\/\/open?file=C%3A%2Fxampp%2Fhtdocs%2Fschool-erp%2Fapp%2FHttp%2FControllers%2FStaff%2FDashboardController.php&line=123","ajax":false,"filename":"DashboardController.php","line":"123","path":"\\app\\Http\\Controllers\\Staff\\DashboardController.php"},"connection":"school_erp","explain":{"url":"http:\/\/127.0.0.1:8000\/_debugbar\/queries\/explain","driver":"mysql","connection":"mysql","query":"select `sa`.`class_id` from `school_staff_assignments` as `sa` inner join `school_classes` as `c` on `sa`.`class_id` = `c`.`id` where `sa`.`staff_id` = ? and `c`.`school_id` = ?","modes":["explain"],"hash":"6e1de7af7498423d7e082981a734838f07e8b4775aa31ded2787773f47b2cf44"},"start_percent":60.105,"width_percent":1.541},{"sql":"select `conversation_id` from `school_conversation_participants` where `user_id` = 3 and `role` = 'staff'","type":"query","params":[3,"staff"],"backtrace":[{"index":13,"namespace":null,"name":"app\/Http\/Controllers\/Staff\/DashboardController.php","file":"C:\\xampp\\htdocs\\school-erp\\app\\Http\\Controllers\\Staff\\DashboardController.php","line":126},{"index":14,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php","line":46},{"index":15,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php","line":265},{"index":16,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php","line":211},{"index":17,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php","line":822}],"start":1787575704.72339,"duration":0.0007,"duration_str":"700\u03bcs","slow":false,"filename":"DashboardController.php:126","source":{"index":13,"namespace":null,"name":"app\/Http\/Controllers\/Staff\/DashboardController.php","file":"C:\\xampp\\htdocs\\school-erp\\app\\Http\\Controllers\\Staff\\DashboardController.php","line":126},"xdebug_link":{"url":"phpstorm:\/\/open?file=C%3A%2Fxampp%2Fhtdocs%2Fschool-erp%2Fapp%2FHttp%2FControllers%2FStaff%2FDashboardController.php&line=126","ajax":false,"filename":"DashboardController.php","line":"126","path":"\\app\\Http\\Controllers\\Staff\\DashboardController.php"},"connection":"school_erp","explain":{"url":"http:\/\/127.0.0.1:8000\/_debugbar\/queries\/explain","driver":"mysql","connection":"mysql","query":"select `conversation_id` from `school_conversation_participants` where `user_id` = ? and `role` = ?","modes":["explain"],"hash":"b9bd3c02e6ab0046271693c5364407e27b22634ef3f402ab8bd10214d9df9161"},"start_percent":61.646,"width_percent":2.452},{"sql":"select `c`.`id` from `school_conversations` as `c` inner join `school_conversation_participants` as `p` on `c`.`id` = `p`.`conversation_id` inner join `students` as `s` on `p`.`user_id` = `s`.`id` where `c`.`school_id` = 4 and `p`.`role` = 'student' and `s`.`class_id` in (3, 1, 1, 2, 2, 2) and exists (select 1 from `school_conversation_participants` as `p_staff` where `p_staff`.`conversation_id` = `c`.`id` and `p_staff`.`user_id` = 3 and `p_staff`.`role` = 'staff')","type":"query","params":[4,"student",3,1,1,2,2,2,3,"staff"],"backtrace":[{"index":13,"namespace":null,"name":"app\/Http\/Controllers\/Staff\/DashboardController.php","file":"C:\\xampp\\htdocs\\school-erp\\app\\Http\\Controllers\\Staff\\DashboardController.php","line":139},{"index":14,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php","line":46},{"index":15,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php","line":265},{"index":16,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php","line":211},{"index":17,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php","line":822}],"start":1787575704.728085,"duration":0.00068,"duration_str":"680\u03bcs","slow":false,"filename":"DashboardController.php:139","source":{"index":13,"namespace":null,"name":"app\/Http\/Controllers\/Staff\/DashboardController.php","file":"C:\\xampp\\htdocs\\school-erp\\app\\Http\\Controllers\\Staff\\DashboardController.php","line":139},"xdebug_link":{"url":"phpstorm:\/\/open?file=C%3A%2Fxampp%2Fhtdocs%2Fschool-erp%2Fapp%2FHttp%2FControllers%2FStaff%2FDashboardController.php&line=139","ajax":false,"filename":"DashboardController.php","line":"139","path":"\\app\\Http\\Controllers\\Staff\\DashboardController.php"},"connection":"school_erp","explain":{"url":"http:\/\/127.0.0.1:8000\/_debugbar\/queries\/explain","driver":"mysql","connection":"mysql","query":"select `c`.`id` from `school_conversations` as `c` inner join `school_conversation_participants` as `p` on `c`.`id` = `p`.`conversation_id` inner join `students` as `s` on `p`.`user_id` = `s`.`id` where `c`.`school_id` = ? and `p`.`role` = ? and `s`.`class_id` in (?, ?, ?, ?, ?, ?) and exists (select 1 from `school_conversation_participants` as `p_staff` where `p_staff`.`conversation_id` = `c`.`id` and `p_staff`.`user_id` = ? and `p_staff`.`role` = ?)","modes":["explain"],"hash":"d413e1594f42cce41b12d0aef1596ca1e148d2578395a9e7ef2da6fc0a9f2f39"},"start_percent":64.098,"width_percent":2.382},{"sql":"select `sa`.`class_id` from `school_staff_assignments` as `sa` inner join `school_classes` as `c` on `sa`.`class_id` = `c`.`id` where `sa`.`staff_id` = 3 and `c`.`school_id` = 4","type":"query","params":[3,4],"backtrace":[{"index":13,"namespace":null,"name":"app\/Http\/Controllers\/Staff\/DashboardController.php","file":"C:\\xampp\\htdocs\\school-erp\\app\\Http\\Controllers\\Staff\\DashboardController.php","line":159},{"index":14,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php","line":46},{"index":15,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php","line":265},{"index":16,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php","line":211},{"index":17,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php","line":822}],"start":1787575704.732268,"duration":0.00046,"duration_str":"460\u03bcs","slow":false,"filename":"DashboardController.php:159","source":{"index":13,"namespace":null,"name":"app\/Http\/Controllers\/Staff\/DashboardController.php","file":"C:\\xampp\\htdocs\\school-erp\\app\\Http\\Controllers\\Staff\\DashboardController.php","line":159},"xdebug_link":{"url":"phpstorm:\/\/open?file=C%3A%2Fxampp%2Fhtdocs%2Fschool-erp%2Fapp%2FHttp%2FControllers%2FStaff%2FDashboardController.php&line=159","ajax":false,"filename":"DashboardController.php","line":"159","path":"\\app\\Http\\Controllers\\Staff\\DashboardController.php"},"connection":"school_erp","explain":{"url":"http:\/\/127.0.0.1:8000\/_debugbar\/queries\/explain","driver":"mysql","connection":"mysql","query":"select `sa`.`class_id` from `school_staff_assignments` as `sa` inner join `school_classes` as `c` on `sa`.`class_id` = `c`.`id` where `sa`.`staff_id` = ? and `c`.`school_id` = ?","modes":["explain"],"hash":"6e1de7af7498423d7e082981a734838f07e8b4775aa31ded2787773f47b2cf44"},"start_percent":66.48,"width_percent":1.611},{"sql":"select `sa`.`section_id` from `school_staff_assignments` as `sa` inner join `school_classes` as `c` on `sa`.`class_id` = `c`.`id` where `sa`.`staff_id` = 3 and `c`.`school_id` = 4 and `sa`.`section_id` is not null","type":"query","params":[3,4],"backtrace":[{"index":13,"namespace":null,"name":"app\/Http\/Controllers\/Staff\/DashboardController.php","file":"C:\\xampp\\htdocs\\school-erp\\app\\Http\\Controllers\\Staff\\DashboardController.php","line":164},{"index":14,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php","line":46},{"index":15,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php","line":265},{"index":16,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php","line":211},{"index":17,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php","line":822}],"start":1787575704.736949,"duration":0.00076,"duration_str":"760\u03bcs","slow":false,"filename":"DashboardController.php:164","source":{"index":13,"namespace":null,"name":"app\/Http\/Controllers\/Staff\/DashboardController.php","file":"C:\\xampp\\htdocs\\school-erp\\app\\Http\\Controllers\\Staff\\DashboardController.php","line":164},"xdebug_link":{"url":"phpstorm:\/\/open?file=C%3A%2Fxampp%2Fhtdocs%2Fschool-erp%2Fapp%2FHttp%2FControllers%2FStaff%2FDashboardController.php&line=164","ajax":false,"filename":"DashboardController.php","line":"164","path":"\\app\\Http\\Controllers\\Staff\\DashboardController.php"},"connection":"school_erp","explain":{"url":"http:\/\/127.0.0.1:8000\/_debugbar\/queries\/explain","driver":"mysql","connection":"mysql","query":"select `sa`.`section_id` from `school_staff_assignments` as `sa` inner join `school_classes` as `c` on `sa`.`class_id` = `c`.`id` where `sa`.`staff_id` = ? and `c`.`school_id` = ? and `sa`.`section_id` is not null","modes":["explain"],"hash":"329422d1b7a6568002f63ee05659c27d770dc8574a75491c63e5bd17bd07b963"},"start_percent":68.091,"width_percent":2.662},{"sql":"select * from `school_notices` as `n` where `n`.`school_id` = 4 and (`n`.`target_audience` like '%All%' or `n`.`target_audience` like '%Teachers%' or `n`.`target_audience` like '%Staff%') and (not exists (select 1 from `school_notice_targets` as `t` where `t`.`notice_id` = `n`.`id`) or exists (select 1 from `school_notice_targets` as `t` where `t`.`notice_id` = `n`.`id` and (`t`.`class_id` in (3, 1, 2) or `t`.`section_id` in (7, 1, 2, 4, 5, 6)))) order by `n`.`is_pinned` desc, `n`.`published_at` desc limit 2","type":"query","params":[4,"%All%","%Teachers%","%Staff%",3,1,2,7,1,2,4,5,6],"backtrace":[{"index":13,"namespace":null,"name":"app\/Http\/Controllers\/Staff\/DashboardController.php","file":"C:\\xampp\\htdocs\\school-erp\\app\\Http\\Controllers\\Staff\\DashboardController.php","line":188},{"index":14,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php","line":46},{"index":15,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php","line":265},{"index":16,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php","line":211},{"index":17,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php","line":822}],"start":1787575704.742098,"duration":0.00117,"duration_str":"1.17ms","slow":false,"filename":"DashboardController.php:188","source":{"index":13,"namespace":null,"name":"app\/Http\/Controllers\/Staff\/DashboardController.php","file":"C:\\xampp\\htdocs\\school-erp\\app\\Http\\Controllers\\Staff\\DashboardController.php","line":188},"xdebug_link":{"url":"phpstorm:\/\/open?file=C%3A%2Fxampp%2Fhtdocs%2Fschool-erp%2Fapp%2FHttp%2FControllers%2FStaff%2FDashboardController.php&line=188","ajax":false,"filename":"DashboardController.php","line":"188","path":"\\app\\Http\\Controllers\\Staff\\DashboardController.php"},"connection":"school_erp","explain":{"url":"http:\/\/127.0.0.1:8000\/_debugbar\/queries\/explain","driver":"mysql","connection":"mysql","query":"select * from `school_notices` as `n` where `n`.`school_id` = ? and (`n`.`target_audience` like ? or `n`.`target_audience` like ? or `n`.`target_audience` like ?) and (not exists (select 1 from `school_notice_targets` as `t` where `t`.`notice_id` = `n`.`id`) or exists (select 1 from `school_notice_targets` as `t` where `t`.`notice_id` = `n`.`id` and (`t`.`class_id` in (?, ?, ?) or `t`.`section_id` in (?, ?, ?, ?, ?, ?)))) order by `n`.`is_pinned` desc, `n`.`published_at` desc limit 2","modes":["explain"],"hash":"ea5f89345ed2294774b2534dcb5a5be4806f177f920ae6aa1c012bbfbf3bc33a"},"start_percent":70.753,"width_percent":4.098},{"sql":"select `notice_id` from `school_notice_reads` where `notice_id` in (12, 11) and `user_id` = 3 and `user_type` = 'staff'","type":"query","params":[12,11,3,"staff"],"backtrace":[{"index":13,"namespace":null,"name":"app\/Http\/Controllers\/Staff\/DashboardController.php","file":"C:\\xampp\\htdocs\\school-erp\\app\\Http\\Controllers\\Staff\\DashboardController.php","line":191},{"index":14,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php","line":46},{"index":15,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php","line":265},{"index":16,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php","line":211},{"index":17,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php","line":822}],"start":1787575704.7469969,"duration":0.00041999999999999996,"duration_str":"420\u03bcs","slow":false,"filename":"DashboardController.php:191","source":{"index":13,"namespace":null,"name":"app\/Http\/Controllers\/Staff\/DashboardController.php","file":"C:\\xampp\\htdocs\\school-erp\\app\\Http\\Controllers\\Staff\\DashboardController.php","line":191},"xdebug_link":{"url":"phpstorm:\/\/open?file=C%3A%2Fxampp%2Fhtdocs%2Fschool-erp%2Fapp%2FHttp%2FControllers%2FStaff%2FDashboardController.php&line=191","ajax":false,"filename":"DashboardController.php","line":"191","path":"\\app\\Http\\Controllers\\Staff\\DashboardController.php"},"connection":"school_erp","explain":{"url":"http:\/\/127.0.0.1:8000\/_debugbar\/queries\/explain","driver":"mysql","connection":"mysql","query":"select `notice_id` from `school_notice_reads` where `notice_id` in (?, ?) and `user_id` = ? and `user_type` = ?","modes":["explain"],"hash":"bea456dc8b2072ac54a2af91588d49d64304bbc66b299e7f93b2349a24d86f8b"},"start_percent":74.851,"width_percent":1.471},{"sql":"select count(*) as aggregate from `school_notices` as `n` where `n`.`school_id` = 4 and (`n`.`target_audience` like '%All%' or `n`.`target_audience` like '%Teachers%' or `n`.`target_audience` like '%Staff%') and (not exists (select 1 from `school_notice_targets` as `t` where `t`.`notice_id` = `n`.`id`) or exists (select 1 from `school_notice_targets` as `t` where `t`.`notice_id` = `n`.`id` and (`t`.`class_id` in (3, 1, 2) or `t`.`section_id` in (7, 1, 2, 4, 5, 6)))) and not exists (select 1 from `school_notice_reads` as `nr` where `nr`.`notice_id` = `n`.`id` and `nr`.`user_id` = 3 and `nr`.`user_type` = 'staff')","type":"query","params":[4,"%All%","%Teachers%","%Staff%",3,1,2,7,1,2,4,5,6,3,"staff"],"backtrace":[{"index":15,"namespace":null,"name":"app\/Http\/Controllers\/Staff\/DashboardController.php","file":"C:\\xampp\\htdocs\\school-erp\\app\\Http\\Controllers\\Staff\\DashboardController.php","line":219},{"index":16,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php","line":46},{"index":17,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php","line":265},{"index":18,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php","line":211},{"index":19,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php","line":822}],"start":1787575704.752374,"duration":0.00125,"duration_str":"1.25ms","slow":false,"filename":"DashboardController.php:219","source":{"index":15,"namespace":null,"name":"app\/Http\/Controllers\/Staff\/DashboardController.php","file":"C:\\xampp\\htdocs\\school-erp\\app\\Http\\Controllers\\Staff\\DashboardController.php","line":219},"xdebug_link":{"url":"phpstorm:\/\/open?file=C%3A%2Fxampp%2Fhtdocs%2Fschool-erp%2Fapp%2FHttp%2FControllers%2FStaff%2FDashboardController.php&line=219","ajax":false,"filename":"DashboardController.php","line":"219","path":"\\app\\Http\\Controllers\\Staff\\DashboardController.php"},"connection":"school_erp","explain":{"url":"http:\/\/127.0.0.1:8000\/_debugbar\/queries\/explain","driver":"mysql","connection":"mysql","query":"select count(*) as aggregate from `school_notices` as `n` where `n`.`school_id` = ? and (`n`.`target_audience` like ? or `n`.`target_audience` like ? or `n`.`target_audience` like ?) and (not exists (select 1 from `school_notice_targets` as `t` where `t`.`notice_id` = `n`.`id`) or exists (select 1 from `school_notice_targets` as `t` where `t`.`notice_id` = `n`.`id` and (`t`.`class_id` in (?, ?, ?) or `t`.`section_id` in (?, ?, ?, ?, ?, ?)))) and not exists (select 1 from `school_notice_reads` as `nr` where `nr`.`notice_id` = `n`.`id` and `nr`.`user_id` = ? and `nr`.`user_type` = ?)","modes":["explain"],"hash":"a849075b81823b7e3f51e04109b9cea43a7be70d9085ec18a93f101a934f394d"},"start_percent":76.322,"width_percent":4.378},{"sql":"select * from `school_notices` as `n` where `n`.`school_id` = 4 and `n`.`is_popup` = 1 and (`n`.`target_audience` like '%All%' or `n`.`target_audience` like '%Teachers%' or `n`.`target_audience` like '%Staff%') and (not exists (select 1 from `school_notice_targets` as `t` where `t`.`notice_id` = `n`.`id`) or exists (select 1 from `school_notice_targets` as `t` where `t`.`notice_id` = `n`.`id` and (`t`.`class_id` in (3, 1, 2) or `t`.`section_id` in (7, 1, 2, 4, 5, 6)))) and date(`n`.`published_at`) <= '2026-08-24' and (`n`.`pinned_until` is null or date(`n`.`pinned_until`) >= '2026-08-24') order by `n`.`published_at` desc limit 1","type":"query","params":[4,1,"%All%","%Teachers%","%Staff%",3,1,2,7,1,2,4,5,6,"2026-08-24","2026-08-24"],"backtrace":[{"index":14,"namespace":null,"name":"app\/Http\/Controllers\/Staff\/DashboardController.php","file":"C:\\xampp\\htdocs\\school-erp\\app\\Http\\Controllers\\Staff\\DashboardController.php","line":243},{"index":15,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php","line":46},{"index":16,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php","line":265},{"index":17,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php","line":211},{"index":18,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php","line":822}],"start":1787575704.7576742,"duration":0.0008,"duration_str":"800\u03bcs","slow":false,"filename":"DashboardController.php:243","source":{"index":14,"namespace":null,"name":"app\/Http\/Controllers\/Staff\/DashboardController.php","file":"C:\\xampp\\htdocs\\school-erp\\app\\Http\\Controllers\\Staff\\DashboardController.php","line":243},"xdebug_link":{"url":"phpstorm:\/\/open?file=C%3A%2Fxampp%2Fhtdocs%2Fschool-erp%2Fapp%2FHttp%2FControllers%2FStaff%2FDashboardController.php&line=243","ajax":false,"filename":"DashboardController.php","line":"243","path":"\\app\\Http\\Controllers\\Staff\\DashboardController.php"},"connection":"school_erp","explain":{"url":"http:\/\/127.0.0.1:8000\/_debugbar\/queries\/explain","driver":"mysql","connection":"mysql","query":"select * from `school_notices` as `n` where `n`.`school_id` = ? and `n`.`is_popup` = ? and (`n`.`target_audience` like ? or `n`.`target_audience` like ? or `n`.`target_audience` like ?) and (not exists (select 1 from `school_notice_targets` as `t` where `t`.`notice_id` = `n`.`id`) or exists (select 1 from `school_notice_targets` as `t` where `t`.`notice_id` = `n`.`id` and (`t`.`class_id` in (?, ?, ?) or `t`.`section_id` in (?, ?, ?, ?, ?, ?)))) and date(`n`.`published_at`) <= ? and (`n`.`pinned_until` is null or date(`n`.`pinned_until`) >= ?) order by `n`.`published_at` desc limit 1","modes":["explain"],"hash":"925a4b4d0be2c65d232ce90019650c4e8d26926e95188b17e401946a0a9ed56b"},"start_percent":80.701,"width_percent":2.802},{"sql":"select `designation` from `school_staff` where `id` = 3 limit 1","type":"query","params":[3],"backtrace":[{"index":15,"namespace":null,"name":"app\/Http\/Controllers\/Staff\/DashboardController.php","file":"C:\\xampp\\htdocs\\school-erp\\app\\Http\\Controllers\\Staff\\DashboardController.php","line":249},{"index":16,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php","line":46},{"index":17,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php","line":265},{"index":18,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php","line":211},{"index":19,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php","line":822}],"start":1787575704.762081,"duration":0.00058,"duration_str":"580\u03bcs","slow":false,"filename":"DashboardController.php:249","source":{"index":15,"namespace":null,"name":"app\/Http\/Controllers\/Staff\/DashboardController.php","file":"C:\\xampp\\htdocs\\school-erp\\app\\Http\\Controllers\\Staff\\DashboardController.php","line":249},"xdebug_link":{"url":"phpstorm:\/\/open?file=C%3A%2Fxampp%2Fhtdocs%2Fschool-erp%2Fapp%2FHttp%2FControllers%2FStaff%2FDashboardController.php&line=249","ajax":false,"filename":"DashboardController.php","line":"249","path":"\\app\\Http\\Controllers\\Staff\\DashboardController.php"},"connection":"school_erp","explain":{"url":"http:\/\/127.0.0.1:8000\/_debugbar\/queries\/explain","driver":"mysql","connection":"mysql","query":"select `designation` from `school_staff` where `id` = ? limit 1","modes":["explain"],"hash":"7c1602e031dbb7c05b56c1063fbd5331cd79b4f37244177ef8070801e54eeebf"},"start_percent":83.503,"width_percent":2.032},{"sql":"select count(*) as aggregate from `school_applications` where `school_id` = 4 and ((`application_type` = 'leave' and `status` in ('submitted', 'viewed')) or (`application_type` = 'document' and `status` in ('submitted', 'viewed', 'approved', 'processed')))","type":"query","params":[4,"leave","submitted","viewed","document","submitted","viewed","approved","processed"],"backtrace":[{"index":15,"namespace":null,"name":"app\/Http\/Controllers\/Staff\/DashboardController.php","file":"C:\\xampp\\htdocs\\school-erp\\app\\Http\\Controllers\\Staff\\DashboardController.php","line":280},{"index":16,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php","line":46},{"index":17,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php","line":265},{"index":18,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php","line":211},{"index":19,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php","line":822}],"start":1787575704.7675061,"duration":0.00067,"duration_str":"670\u03bcs","slow":false,"filename":"DashboardController.php:280","source":{"index":15,"namespace":null,"name":"app\/Http\/Controllers\/Staff\/DashboardController.php","file":"C:\\xampp\\htdocs\\school-erp\\app\\Http\\Controllers\\Staff\\DashboardController.php","line":280},"xdebug_link":{"url":"phpstorm:\/\/open?file=C%3A%2Fxampp%2Fhtdocs%2Fschool-erp%2Fapp%2FHttp%2FControllers%2FStaff%2FDashboardController.php&line=280","ajax":false,"filename":"DashboardController.php","line":"280","path":"\\app\\Http\\Controllers\\Staff\\DashboardController.php"},"connection":"school_erp","explain":{"url":"http:\/\/127.0.0.1:8000\/_debugbar\/queries\/explain","driver":"mysql","connection":"mysql","query":"select count(*) as aggregate from `school_applications` where `school_id` = ? and ((`application_type` = ? and `status` in (?, ?)) or (`application_type` = ? and `status` in (?, ?, ?, ?)))","modes":["explain"],"hash":"7cc375613627f33265f74b2f79dc71bbb988724485df1b0fecf178c5d0aff583"},"start_percent":85.534,"width_percent":2.347},{"sql":"select `designation` from `school_staff` where `id` = 3 limit 1","type":"query","params":[3],"backtrace":[{"index":15,"namespace":null,"name":"app\/Providers\/AppServiceProvider.php","file":"C:\\xampp\\htdocs\\school-erp\\app\\Providers\\AppServiceProvider.php","line":141},{"index":19,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/View\/Concerns\/ManagesEvents.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\View\\Concerns\\ManagesEvents.php","line":178},{"index":20,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/View\/View.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\View\\View.php","line":189},{"index":21,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/View\/View.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\View\\View.php","line":160},{"index":22,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Http\/Response.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Http\\Response.php","line":78}],"start":1787575704.781752,"duration":0.00049,"duration_str":"490\u03bcs","slow":false,"filename":"AppServiceProvider.php:141","source":{"index":15,"namespace":null,"name":"app\/Providers\/AppServiceProvider.php","file":"C:\\xampp\\htdocs\\school-erp\\app\\Providers\\AppServiceProvider.php","line":141},"xdebug_link":{"url":"phpstorm:\/\/open?file=C%3A%2Fxampp%2Fhtdocs%2Fschool-erp%2Fapp%2FProviders%2FAppServiceProvider.php&line=141","ajax":false,"filename":"AppServiceProvider.php","line":"141","path":"\\app\\Providers\\AppServiceProvider.php"},"connection":"school_erp","explain":{"url":"http:\/\/127.0.0.1:8000\/_debugbar\/queries\/explain","driver":"mysql","connection":"mysql","query":"select `designation` from `school_staff` where `id` = ? limit 1","modes":["explain"],"hash":"7c1602e031dbb7c05b56c1063fbd5331cd79b4f37244177ef8070801e54eeebf"},"start_percent":87.881,"width_percent":1.716},{"sql":"select count(*) as aggregate from `school_homework_replies` as `r` inner join `school_homework_broadcasts` as `h` on `r`.`broadcast_id` = `h`.`id` where `h`.`school_id` = 4 and `h`.`status` = 'published' and `r`.`student_id` is not null and `h`.`sender_staff_id` = 3 and r.created_at > COALESCE((SELECT hr.last_read_at FROM school_homework_reads hr\nWHERE hr.broadcast_id = h.id AND hr.staff_id IS NULL AND hr.student_id IS NULL LIMIT 1), '1970-01-01 00:00:00')","type":"query","params":[4,"published",3],"backtrace":[{"index":15,"namespace":null,"name":"app\/Providers\/AppServiceProvider.php","file":"C:\\xampp\\htdocs\\school-erp\\app\\Providers\\AppServiceProvider.php","line":158},{"index":19,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/View\/Concerns\/ManagesEvents.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\View\\Concerns\\ManagesEvents.php","line":178},{"index":20,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/View\/View.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\View\\View.php","line":189},{"index":21,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/View\/View.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\View\\View.php","line":160},{"index":22,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/Http\/Response.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\Http\\Response.php","line":78}],"start":1787575704.7856288,"duration":0.00061,"duration_str":"610\u03bcs","slow":false,"filename":"AppServiceProvider.php:158","source":{"index":15,"namespace":null,"name":"app\/Providers\/AppServiceProvider.php","file":"C:\\xampp\\htdocs\\school-erp\\app\\Providers\\AppServiceProvider.php","line":158},"xdebug_link":{"url":"phpstorm:\/\/open?file=C%3A%2Fxampp%2Fhtdocs%2Fschool-erp%2Fapp%2FProviders%2FAppServiceProvider.php&line=158","ajax":false,"filename":"AppServiceProvider.php","line":"158","path":"\\app\\Providers\\AppServiceProvider.php"},"connection":"school_erp","explain":{"url":"http:\/\/127.0.0.1:8000\/_debugbar\/queries\/explain","driver":"mysql","connection":"mysql","query":"select count(*) as aggregate from `school_homework_replies` as `r` inner join `school_homework_broadcasts` as `h` on `r`.`broadcast_id` = `h`.`id` where `h`.`school_id` = ? and `h`.`status` = ? and `r`.`student_id` is not null and `h`.`sender_staff_id` = ? and r.created_at > COALESCE((SELECT hr.last_read_at FROM school_homework_reads hr\n                WHERE hr.broadcast_id = h.id AND hr.staff_id IS NULL AND hr.student_id IS NULL LIMIT 1), '1970-01-01 00:00:00')","modes":["explain"],"hash":"51216e01aabda1618bccd2e6de9e54e87fe82e16a2673663aae820e7f4f13c58"},"start_percent":89.597,"width_percent":2.137},{"sql":"select * from `schools` where `id` = 4 limit 1","type":"query","params":[4],"backtrace":[{"index":14,"namespace":null,"name":"app\/Providers\/AppServiceProvider.php","file":"C:\\xampp\\htdocs\\school-erp\\app\\Providers\\AppServiceProvider.php","line":76},{"index":18,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/View\/Concerns\/ManagesEvents.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\View\\Concerns\\ManagesEvents.php","line":178},{"index":19,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/View\/View.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\View\\View.php","line":189},{"index":20,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/View\/View.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\View\\View.php","line":160},{"index":21,"namespace":"view","name":"staff.dashboard","file":"C:\\xampp\\htdocs\\school-erp\\resources\\views\/staff\/dashboard.blade.php","line":337}],"start":1787575704.7925858,"duration":0.0006,"duration_str":"600\u03bcs","slow":false,"filename":"AppServiceProvider.php:76","source":{"index":14,"namespace":null,"name":"app\/Providers\/AppServiceProvider.php","file":"C:\\xampp\\htdocs\\school-erp\\app\\Providers\\AppServiceProvider.php","line":76},"xdebug_link":{"url":"phpstorm:\/\/open?file=C%3A%2Fxampp%2Fhtdocs%2Fschool-erp%2Fapp%2FProviders%2FAppServiceProvider.php&line=76","ajax":false,"filename":"AppServiceProvider.php","line":"76","path":"\\app\\Providers\\AppServiceProvider.php"},"connection":"school_erp","explain":{"url":"http:\/\/127.0.0.1:8000\/_debugbar\/queries\/explain","driver":"mysql","connection":"mysql","query":"select * from `schools` where `id` = ? limit 1","modes":["explain"],"hash":"ab4f55a89c76f0427038427d1a1e573f9ccba0aa1b01402fc6eb337e41eb984e"},"start_percent":91.734,"width_percent":2.102},{"sql":"select `sa`.`class_id` from `school_staff_assignments` as `sa` inner join `school_classes` as `c` on `sa`.`class_id` = `c`.`id` where `sa`.`staff_id` = 3 and `c`.`school_id` = 4","type":"query","params":[3,4],"backtrace":[{"index":13,"namespace":null,"name":"app\/Providers\/AppServiceProvider.php","file":"C:\\xampp\\htdocs\\school-erp\\app\\Providers\\AppServiceProvider.php","line":95},{"index":17,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/View\/Concerns\/ManagesEvents.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\View\\Concerns\\ManagesEvents.php","line":178},{"index":18,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/View\/View.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\View\\View.php","line":189},{"index":19,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/View\/View.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\View\\View.php","line":160},{"index":20,"namespace":"view","name":"staff.dashboard","file":"C:\\xampp\\htdocs\\school-erp\\resources\\views\/staff\/dashboard.blade.php","line":337}],"start":1787575704.7964752,"duration":0.00047,"duration_str":"470\u03bcs","slow":false,"filename":"AppServiceProvider.php:95","source":{"index":13,"namespace":null,"name":"app\/Providers\/AppServiceProvider.php","file":"C:\\xampp\\htdocs\\school-erp\\app\\Providers\\AppServiceProvider.php","line":95},"xdebug_link":{"url":"phpstorm:\/\/open?file=C%3A%2Fxampp%2Fhtdocs%2Fschool-erp%2Fapp%2FProviders%2FAppServiceProvider.php&line=95","ajax":false,"filename":"AppServiceProvider.php","line":"95","path":"\\app\\Providers\\AppServiceProvider.php"},"connection":"school_erp","explain":{"url":"http:\/\/127.0.0.1:8000\/_debugbar\/queries\/explain","driver":"mysql","connection":"mysql","query":"select `sa`.`class_id` from `school_staff_assignments` as `sa` inner join `school_classes` as `c` on `sa`.`class_id` = `c`.`id` where `sa`.`staff_id` = ? and `c`.`school_id` = ?","modes":["explain"],"hash":"6e1de7af7498423d7e082981a734838f07e8b4775aa31ded2787773f47b2cf44"},"start_percent":93.835,"width_percent":1.646},{"sql":"select `conversation_id` from `school_conversation_participants` where `user_id` = 3 and `role` = 'staff'","type":"query","params":[3,"staff"],"backtrace":[{"index":13,"namespace":null,"name":"app\/Providers\/AppServiceProvider.php","file":"C:\\xampp\\htdocs\\school-erp\\app\\Providers\\AppServiceProvider.php","line":101},{"index":17,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/View\/Concerns\/ManagesEvents.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\View\\Concerns\\ManagesEvents.php","line":178},{"index":18,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/View\/View.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\View\\View.php","line":189},{"index":19,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/View\/View.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\View\\View.php","line":160},{"index":20,"namespace":"view","name":"staff.dashboard","file":"C:\\xampp\\htdocs\\school-erp\\resources\\views\/staff\/dashboard.blade.php","line":337}],"start":1787575704.8000488,"duration":0.0004,"duration_str":"400\u03bcs","slow":false,"filename":"AppServiceProvider.php:101","source":{"index":13,"namespace":null,"name":"app\/Providers\/AppServiceProvider.php","file":"C:\\xampp\\htdocs\\school-erp\\app\\Providers\\AppServiceProvider.php","line":101},"xdebug_link":{"url":"phpstorm:\/\/open?file=C%3A%2Fxampp%2Fhtdocs%2Fschool-erp%2Fapp%2FProviders%2FAppServiceProvider.php&line=101","ajax":false,"filename":"AppServiceProvider.php","line":"101","path":"\\app\\Providers\\AppServiceProvider.php"},"connection":"school_erp","explain":{"url":"http:\/\/127.0.0.1:8000\/_debugbar\/queries\/explain","driver":"mysql","connection":"mysql","query":"select `conversation_id` from `school_conversation_participants` where `user_id` = ? and `role` = ?","modes":["explain"],"hash":"b9bd3c02e6ab0046271693c5364407e27b22634ef3f402ab8bd10214d9df9161"},"start_percent":95.482,"width_percent":1.401},{"sql":"select `c`.`id` from `school_conversations` as `c` inner join `school_conversation_participants` as `p` on `c`.`id` = `p`.`conversation_id` inner join `students` as `s` on `p`.`user_id` = `s`.`id` where `c`.`school_id` = 4 and `p`.`role` = 'student' and `s`.`class_id` in (3, 1, 1, 2, 2, 2) and exists (select 1 from `school_conversation_participants` as `p_staff` where `p_staff`.`conversation_id` = `c`.`id` and `p_staff`.`user_id` = 3 and `p_staff`.`role` = 'staff')","type":"query","params":[4,"student",3,1,1,2,2,2,3,"staff"],"backtrace":[{"index":13,"namespace":null,"name":"app\/Providers\/AppServiceProvider.php","file":"C:\\xampp\\htdocs\\school-erp\\app\\Providers\\AppServiceProvider.php","line":119},{"index":17,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/View\/Concerns\/ManagesEvents.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\View\\Concerns\\ManagesEvents.php","line":178},{"index":18,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/View\/View.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\View\\View.php","line":189},{"index":19,"namespace":null,"name":"vendor\/laravel\/framework\/src\/Illuminate\/View\/View.php","file":"C:\\xampp\\htdocs\\school-erp\\vendor\\laravel\\framework\\src\\Illuminate\\View\\View.php","line":160},{"index":20,"namespace":"view","name":"staff.dashboard","file":"C:\\xampp\\htdocs\\school-erp\\resources\\views\/staff\/dashboard.blade.php","line":337}],"start":1787575704.8048549,"duration":0.0008900000000000001,"duration_str":"890\u03bcs","slow":false,"filename":"AppServiceProvider.php:119","source":{"index":13,"namespace":null,"name":"app\/Providers\/AppServiceProvider.php","file":"C:\\xampp\\htdocs\\school-erp\\app\\Providers\\AppServiceProvider.php","line":119},"xdebug_link":{"url":"phpstorm:\/\/open?file=C%3A%2Fxampp%2Fhtdocs%2Fschool-erp%2Fapp%2FProviders%2FAppServiceProvider.php&line=119","ajax":false,"filename":"AppServiceProvider.php","line":"119","path":"\\app\\Providers\\AppServiceProvider.php"},"connection":"school_erp","explain":{"url":"http:\/\/127.0.0.1:8000\/_debugbar\/queries\/explain","driver":"mysql","connection":"mysql","query":"select `c`.`id` from `school_conversations` as `c` inner join `school_conversation_participants` as `p` on `c`.`id` = `p`.`conversation_id` inner join `students` as `s` on `p`.`user_id` = `s`.`id` where `c`.`school_id` = ? and `p`.`role` = ? and `s`.`class_id` in (?, ?, ?, ?, ?, ?) and exists (select 1 from `school_conversation_participants` as `p_staff` where `p_staff`.`conversation_id` = `c`.`id` and `p_staff`.`user_id` = ? and `p_staff`.`role` = ?)","modes":["explain"],"hash":"d413e1594f42cce41b12d0aef1596ca1e148d2578395a9e7ef2da6fc0a9f2f39"},"start_percent":96.883,"width_percent":3.117}]},"models":{"data":[],"count":0,"key_map":{"retrieved":"Retrieved","created":"Created","updated":"Updated","deleted":"Deleted"},"is_counter":true,"badges":[]},"symfonymailer_mails":{"count":0,"mails":[]},"gate":{"count":0,"messages":[]},"jobs":{"data":[],"count":0,"key_map":{"value":"Count"},"is_counter":true},"http_client":{"nb_requests":0,"requests":[]},"time":{"count":7,"start":1787575704.351562,"end":1787575704.825348,"duration":0.4737858772277832,"duration_str":"474ms","measures":[{"label":"Booting","start":1787575704.351562,"relative_start":0,"end":1787575704.596981,"relative_end":1787575704.596981,"duration":0.24541902542114258,"duration_str":"245ms","memory":0,"memory_str":"0B","params":[],"collector":"time","group":null},{"label":"Application","start":1787575704.597001,"relative_start":0.2454390525817871,"end":1787575704.825351,"relative_end":3.0994415283203125e-6,"duration":0.22834992408752441,"duration_str":"228ms","memory":0,"memory_str":"0B","params":[],"collector":"time","group":null},{"label":"Routing","start":1787575704.648338,"relative_start":0.29677605628967285,"end":1787575704.652818,"relative_end":1787575704.652818,"duration":0.004479885101318359,"duration_str":"4.48ms","memory":0,"memory_str":"0B","params":[],"collector":null,"group":null},{"label":"Preparing Response","start":1787575704.779201,"relative_start":0.4276390075683594,"end":1787575704.810387,"relative_end":1787575704.810387,"duration":0.03118586540222168,"duration_str":"31.19ms","memory":0,"memory_str":"0B","params":[],"collector":null,"group":null},{"label":"staff.dashboard","start":1787575704.789789,"relative_start":0.43822693824768066,"end":1787575704.789789,"relative_end":1787575704.789789,"duration":0,"duration_str":"0\u03bcs","memory":0,"memory_str":"0B","params":[],"collector":"views","group":"Views"},{"label":"staff.layouts.app","start":1787575704.809048,"relative_start":0.4574859142303467,"end":1787575704.809048,"relative_end":1787575704.809048,"duration":0,"duration_str":"0\u03bcs","memory":0,"memory_str":"0B","params":[],"collector":"views","group":"Views"},{"label":"Preparing Response","start":1787575704.812042,"relative_start":0.4604799747467041,"end":1787575704.812136,"relative_end":1787575704.812136,"duration":9.393692016601562e-5,"duration_str":"94\u03bcs","memory":0,"memory_str":"0B","params":[],"collector":null,"group":null}]},"cache":{"count":0,"start":1787575704.351263,"end":1787575704.825373,"duration":0.4741098880767822,"duration_str":"474ms","measures":[],"nb_measures":0}}