{"__meta":{"id":"01M0SX0WCJ2WQHN4WEYJT2JKN3","datetime":"2026-08-24 18:18:13","utime":1787575693.714994,"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=eyJpdiI6IlNsYjZpbzlxc2FkdmF4elViWFJ0dnc9PSIsInZhbHVlIjoiejlqeHpaTm5RMmF5VUtHSExWblZLY3VhTCtOeE4xaUpUWDNDQkRBU1JmZVpEOWFDTXprTHh6L1ArNW0wQVdnWjdNNU9PSXNJeDdtSWNEVWhEakFJaXVlSjhBNVZJNERTcXRqRktIZ3pETDQweVBvVTI1c1R6Z3kvMDhBK1RlamYiLCJtYWMiOiIyNDQ2YTM4NTg0MDUwMTczNWMxZWI2ZGExZWJhN2JhMzUyMWU4ZWEyODdmYTBhM2U5NzVlMTEyOTRkNjU1YTEyIiwidGFnIjoiIn0%3D; laravel-session=eyJpdiI6IjE0K0dLeUJtZWpmL3VWSDh6T2ZQM3c9PSIsInZhbHVlIjoibjl5NThEaERrUTZudDhaZHZ6bDhXak5wcW9IdHYxWjhpN0Zra2hhTjBuM0phR1BDWE0zNHpyaXYzM01zYWpGaEd0YUpNejNBaktWOWhmY2N2clg5QzJ6WHFxL2hpcVFzS3ZOUks2dGNpczhudENRZ3J3M2xNWGRBOGlNbEw5MjMiLCJtYWMiOiJhNTVmMTNhYTU4ZjliMjJkZWE4YjUxNTg0MGYxMzU5ZGZmNjFhNGZlMzg3OTdjNGM1YzhhOTRmNGVlMGRiOThkIiwidGFnIjoiIn0%3D"]},"request_server":{"DOCUMENT_ROOT":"C:\\xampp\\htdocs\\school-erp\\public","REMOTE_ADDR":"127.0.0.1","REMOTE_PORT":"59112","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=eyJpdiI6IlNsYjZpbzlxc2FkdmF4elViWFJ0dnc9PSIsInZhbHVlIjoiejlqeHpaTm5RMmF5VUtHSExWblZLY3VhTCtOeE4xaUpUWDNDQkRBU1JmZVpEOWFDTXprTHh6L1ArNW0wQVdnWjdNNU9PSXNJeDdtSWNEVWhEakFJaXVlSjhBNVZJNERTcXRqRktIZ3pETDQweVBvVTI1c1R6Z3kvMDhBK1RlamYiLCJtYWMiOiIyNDQ2YTM4NTg0MDUwMTczNWMxZWI2ZGExZWJhN2JhMzUyMWU4ZWEyODdmYTBhM2U5NzVlMTEyOTRkNjU1YTEyIiwidGFnIjoiIn0%3D; laravel-session=eyJpdiI6IjE0K0dLeUJtZWpmL3VWSDh6T2ZQM3c9PSIsInZhbHVlIjoibjl5NThEaERrUTZudDhaZHZ6bDhXak5wcW9IdHYxWjhpN0Zra2hhTjBuM0phR1BDWE0zNHpyaXYzM01zYWpGaEd0YUpNejNBaktWOWhmY2N2clg5QzJ6WHFxL2hpcVFzS3ZOUks2dGNpczhudENRZ3J3M2xNWGRBOGlNbEw5MjMiLCJtYWMiOiJhNTVmMTNhYTU4ZjliMjJkZWE4YjUxNTg0MGYxMzU5ZGZmNjFhNGZlMzg3OTdjNGM1YzhhOTRmNGVlMGRiOThkIiwidGFnIjoiIn0%3D","REQUEST_TIME_FLOAT":1787575693.246016,"REQUEST_TIME":1787575693},"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:13 GMT"],"set-cookie":["XSRF-TOKEN=eyJpdiI6Ikg2THBCT0ZqK2x1bityZGF2Umwwb3c9PSIsInZhbHVlIjoiV29iVHlrdFA4OWFrWjE4OS9OMkxuYzhBMngxNm5sRWwxUDYwVFUwUjRQVGdRSDVIdjR0TmFSejNFd3VDdFlndW43eW1tRGJQU25xM050ZmJMOXNtWkpFYnBabnM2VU45L1c2TGNvdERtQ3RLK01iRjkyTVM4K08xTDZHRlJSSnoiLCJtYWMiOiI0YzEzOWRjMDJlNjBlZjBiYjNhYjM0NDhhZWI5YjdiY2RkNzBiMzAwZmQ5YzBlMzEzMDIyOWNkN2QyZGFiMWJiIiwidGFnIjoiIn0%3D; expires=Mon, 24 Aug 2026 14:48:13 GMT; Max-Age=7200; path=\/; samesite=lax","laravel-session=eyJpdiI6IkNhWFlYRlJNcjZCa3VSQmhBMk5mMUE9PSIsInZhbHVlIjoiRUlrUnBpeWkwQkxVczBJMGJsU3F1Y1JUOTVwekppZGswWDNhWVdhbWxKZGw3aXlPT2crNlNpK0F5K1o5bVdwc2VkOUpQWVZSZkZJQVhZWnZyaEJnNlJPZ3RXemNwVmxzMTZTQmUreHNaYytmT0pmV2JFbi9nSXNKY0J6RHVrNHoiLCJtYWMiOiI1OTBjNzFlMjI4NDIxMDU5MDgyMWIyNjZhMzYyN2Y1MjBmYjcxMzJjMGNiYmY2Zjc2MGViMzFmZjE5Mjk0M2Y1IiwidGFnIjoiIn0%3D; expires=Mon, 24 Aug 2026 14:48:13 GMT; Max-Age=7200; path=\/; httponly; samesite=lax"]},"response_cookies":["XSRF-TOKEN=eyJpdiI6Ikg2THBCT0ZqK2x1bityZGF2Umwwb3c9PSIsInZhbHVlIjoiV29iVHlrdFA4OWFrWjE4OS9OMkxuYzhBMngxNm5sRWwxUDYwVFUwUjRQVGdRSDVIdjR0TmFSejNFd3VDdFlndW43eW1tRGJQU25xM050ZmJMOXNtWkpFYnBabnM2VU45L1c2TGNvdERtQ3RLK01iRjkyTVM4K08xTDZHRlJSSnoiLCJtYWMiOiI0YzEzOWRjMDJlNjBlZjBiYjNhYjM0NDhhZWI5YjdiY2RkNzBiMzAwZmQ5YzBlMzEzMDIyOWNkN2QyZGFiMWJiIiwidGFnIjoiIn0%3D; expires=Mon, 24-Aug-2026 14:48:13 GMT; path=\/","laravel-session=eyJpdiI6IkNhWFlYRlJNcjZCa3VSQmhBMk5mMUE9PSIsInZhbHVlIjoiRUlrUnBpeWkwQkxVczBJMGJsU3F1Y1JUOTVwekppZGswWDNhWVdhbWxKZGw3aXlPT2crNlNpK0F5K1o5bVdwc2VkOUpQWVZSZkZJQVhZWnZyaEJnNlJPZ3RXemNwVmxzMTZTQmUreHNaYytmT0pmV2JFbi9nSXNKY0J6RHVrNHoiLCJtYWMiOiI1OTBjNzFlMjI4NDIxMDU5MDgyMWIyNjZhMzYyN2Y1MjBmYjcxMzJjMGNiYmY2Zjc2MGViMzFmZjE5Mjk0M2Y1IiwidGFnIjoiIn0%3D; expires=Mon, 24-Aug-2026 14:48:13 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":1787575693.690832,"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":1787575693.709356,"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.04017,"accumulated_duration_str":"40.17ms","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":1787575693.564966,"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":1787575693.5705788,"duration":0.02535,"duration_str":"25.35ms","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":63.107},{"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":1787575693.599596,"duration":0.0005,"duration_str":"500\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":63.107,"width_percent":1.245},{"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":1787575693.605394,"duration":0.0013,"duration_str":"1.3ms","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":64.352,"width_percent":3.236},{"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":1787575693.610731,"duration":0.0007,"duration_str":"700\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":67.588,"width_percent":1.743},{"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":1787575693.61492,"duration":0.0005200000000000001,"duration_str":"520\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":69.33,"width_percent":1.294},{"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":1787575693.619921,"duration":0.0007,"duration_str":"700\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":70.625,"width_percent":1.743},{"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":1787575693.624553,"duration":0.00047,"duration_str":"470\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":72.367,"width_percent":1.17},{"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":1787575693.628958,"duration":0.0007199999999999999,"duration_str":"720\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":73.537,"width_percent":1.792},{"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":1787575693.634174,"duration":0.00067,"duration_str":"670\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":75.33,"width_percent":1.668},{"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":1787575693.638703,"duration":0.00053,"duration_str":"530\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":76.998,"width_percent":1.319},{"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":1787575693.6433659,"duration":0.00113,"duration_str":"1.13ms","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":78.317,"width_percent":2.813},{"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":1787575693.6491342,"duration":0.00065,"duration_str":"650\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":81.13,"width_percent":1.618},{"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":1787575693.65394,"duration":0.0011200000000000001,"duration_str":"1.12ms","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":82.748,"width_percent":2.788},{"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":1787575693.659315,"duration":0.00106,"duration_str":"1.06ms","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":85.536,"width_percent":2.639},{"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":1787575693.6642408,"duration":0.00041999999999999996,"duration_str":"420\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":88.175,"width_percent":1.046},{"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":1787575693.668241,"duration":0.00049,"duration_str":"490\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":89.221,"width_percent":1.22},{"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":1787575693.681964,"duration":0.0005,"duration_str":"500\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":90.441,"width_percent":1.245},{"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":1787575693.686359,"duration":0.00102,"duration_str":"1.02ms","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":91.685,"width_percent":2.539},{"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":1787575693.693457,"duration":0.0005899999999999999,"duration_str":"590\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":94.225,"width_percent":1.469},{"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":1787575693.697231,"duration":0.00047999999999999996,"duration_str":"480\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":95.693,"width_percent":1.195},{"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":1787575693.7014709,"duration":0.0005899999999999999,"duration_str":"590\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":96.888,"width_percent":1.469},{"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":1787575693.705698,"duration":0.00066,"duration_str":"660\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":98.357,"width_percent":1.643}]},"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":1787575693.246326,"end":1787575693.727035,"duration":0.4807090759277344,"duration_str":"481ms","measures":[{"label":"Booting","start":1787575693.246326,"relative_start":0,"end":1787575693.490754,"relative_end":1787575693.490754,"duration":0.24442791938781738,"duration_str":"244ms","memory":0,"memory_str":"0B","params":[],"collector":"time","group":null},{"label":"Application","start":1787575693.490774,"relative_start":0.24444794654846191,"end":1787575693.727038,"relative_end":2.86102294921875e-6,"duration":0.23626399040222168,"duration_str":"236ms","memory":0,"memory_str":"0B","params":[],"collector":"time","group":null},{"label":"Routing","start":1787575693.539485,"relative_start":0.29315900802612305,"end":1787575693.54412,"relative_end":1787575693.54412,"duration":0.0046350955963134766,"duration_str":"4.64ms","memory":0,"memory_str":"0B","params":[],"collector":null,"group":null},{"label":"Preparing Response","start":1787575693.679506,"relative_start":0.4331800937652588,"end":1787575693.710713,"relative_end":1787575693.710713,"duration":0.031206846237182617,"duration_str":"31.21ms","memory":0,"memory_str":"0B","params":[],"collector":null,"group":null},{"label":"staff.dashboard","start":1787575693.690832,"relative_start":0.4445059299468994,"end":1787575693.690832,"relative_end":1787575693.690832,"duration":0,"duration_str":"0\u03bcs","memory":0,"memory_str":"0B","params":[],"collector":"views","group":"Views"},{"label":"staff.layouts.app","start":1787575693.709356,"relative_start":0.4630300998687744,"end":1787575693.709356,"relative_end":1787575693.709356,"duration":0,"duration_str":"0\u03bcs","memory":0,"memory_str":"0B","params":[],"collector":"views","group":"Views"},{"label":"Preparing Response","start":1787575693.712635,"relative_start":0.4663090705871582,"end":1787575693.712756,"relative_end":1787575693.712756,"duration":0.00012087821960449219,"duration_str":"121\u03bcs","memory":0,"memory_str":"0B","params":[],"collector":null,"group":null}]},"cache":{"count":0,"start":1787575693.246016,"end":1787575693.727065,"duration":0.4810490608215332,"duration_str":"481ms","measures":[],"nb_measures":0}}