Mostafijur Rahman 1 year ago
parent
commit
379d8a5ec7

+ 56 - 0
app/Http/Controllers/AjaxController.php

@@ -464,6 +464,62 @@ class AjaxController extends Controller
                 );
             }
 
+        }elseif($name=="invited_registration"){ 
+            $validator=\Validator::make($req->all(), [
+                'first_name'=>'required',
+                'last_name'=>'required',
+                'email'=>'required',
+                'university'=>'required',
+                'department'=>'required',
+                'designation'=>'required',
+                'password_confirmation'=>'required',
+                'password'=>[
+                    'required',
+                    'confirmed',
+                    'min:8',
+                ]
+            ]);
+
+            if($validator->fails()){
+                $errors=$validator->errors()->all();
+                return response(['msg'=>$errors[0]], 422);
+            }
+
+            $user_data = User::find($req->id);
+
+            if($user_data){
+
+                $user_exists = ReferUser::where('email',$req->email)->where('signup',1)->exists();
+
+                if($user_exists){
+                    return response(['msg'=>'You are already registered!.Please login.'], 403);
+                }
+
+                $refer_user_signup = ReferUser::where('email',$req->email)->where('signup',0)->first();
+
+                if($refer_user_signup){
+                    $refer_user_signup->signup =1;
+                    $refer_user_signup->update();
+                }
+
+                $user_data->first_name =$req->first_name;
+                $user_data->last_name =$req->last_name;
+                $user_data->first_name =$req->first_name;
+                $user_data->university_name =$req->university;
+                $user_data->ref_no = name_initials($req->first_name,$req->last_name).''.teacherRefNoGenerate();
+                $user_data->department =$req->department;
+                $user_data->others_department =$req->others_department;
+                $user_data->designation =$req->designation;
+                $user_data->uni_website =$req->website;
+                $user_data->password =Hash::make($req->password);
+                $user_data->status =1;
+                $user_data->update();
+
+                return response(
+                    ['msg'=>'Registration successfully saved.You can login now']
+                );
+            }
+
         }
 	}
 }

+ 11 - 0
app/Http/Controllers/HomeController.php

@@ -35,4 +35,15 @@ class HomeController extends Controller
         $user =User::find($hash_student_ids[0]);
         return view('auth.wishlist_register_form',compact('hash_student_ids','user'));
     }
+
+    public function wishlist_teacher_register($hash)
+    {
+        $hashids=new \Hashids\Hashids('teacher_wishlist_signup', 25);
+        $hash_ids=$hashids->decode($hash);
+        if(empty($hash_ids[0])) abort(404);
+        $user =User::find($hash_ids[0]);
+        $departments =Department::where('status',1)->orderBy('name','ASC')->get();
+        $universities =University::orderBy('name','ASC')->get();
+        return view('auth.invited_register_form',compact('hash_ids','user','departments','universities'));
+    }
 }

+ 48 - 0
app/Http/Controllers/ModalController.php

@@ -45,7 +45,12 @@ class ModalController extends Controller{
             $user =Auth::guard('teacher')->user();
             $data['refer'] = new ReferUser;
 
+        }elseif($name=="admin_invited"){
+            $user =Auth::guard('admin')->user();
+            $data['refer'] = new ReferUser;
+
         }else $name='default';
+         
 
         return view("modal_pages.{$name}", $data);
     }
@@ -167,6 +172,49 @@ class ModalController extends Controller{
                 ['msg'=>'Refer saved successfully.']
             );
 
+        }elseif($name=="admin_invited"){
+            $admin =Auth::guard('admin')->user();
+            $validator=\Validator::make($req->all(), [
+                'name'=>'required',
+                'email'=>'required|email|max:255|unique:refer_users'
+            ]);
+
+            if($validator->fails()){
+                $errors=$validator->errors()->all();
+                return response(['msg'=>$errors[0]], 422);
+            }
+
+            $user_data =new User;
+            $user_data->first_name =$req->name;
+            $user_data->email =$req->email;
+            $user_data->admin_invite_id =$admin->id;
+            $user_data->user_type =2;
+            $user_data->save();
+
+            $refer =new ReferUser;
+            $refer->name =$req->name;
+            $refer->email =$req->email;
+            $refer->refer_by =$admin->id;
+            //$refer->teacher_id =$admin->id;
+            $refer->save();
+
+            if($refer->save()){
+                $data['name'] = $refer->name;   
+                $data['teacher_id'] = $user_data->id;
+                $data['applicant_name'] = $admin->first_name.' '.$admin->last_name;
+                $user_mail = $refer->email;
+                $from = 'test@mail.com';
+
+                Mail::send('email.teacher_invited_email',$data, function ($message) use ($user_mail,$from) {
+                    $message->from($from);
+                    $message->to($user_mail)->subject('Wishlist Email Send to you');
+                });
+            }
+
+            return response(
+                ['msg'=>'Invite saved successfully.']
+            );
+
         }
 
         return response(['msg'=>'No name argument found.'], 403);

+ 139 - 140
composer.lock

@@ -118,16 +118,16 @@
         },
         {
             "name": "aws/aws-sdk-php",
-            "version": "3.263.0",
+            "version": "3.269.0",
             "source": {
                 "type": "git",
                 "url": "https://github.com/aws/aws-sdk-php.git",
-                "reference": "a0a528cb8e22dd0113f97ad0df527a6db32fe061"
+                "reference": "6d759ef9f24f0c7f271baf8014f41fc0cfdfbf78"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/a0a528cb8e22dd0113f97ad0df527a6db32fe061",
-                "reference": "a0a528cb8e22dd0113f97ad0df527a6db32fe061",
+                "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/6d759ef9f24f0c7f271baf8014f41fc0cfdfbf78",
+                "reference": "6d759ef9f24f0c7f271baf8014f41fc0cfdfbf78",
                 "shasum": ""
             },
             "require": {
@@ -137,7 +137,7 @@
                 "ext-simplexml": "*",
                 "guzzlehttp/guzzle": "^6.5.8 || ^7.4.5",
                 "guzzlehttp/promises": "^1.4.0",
-                "guzzlehttp/psr7": "^1.8.5 || ^2.3",
+                "guzzlehttp/psr7": "^1.9.1 || ^2.4.5",
                 "mtdowling/jmespath.php": "^2.6",
                 "php": ">=5.5"
             },
@@ -156,6 +156,7 @@
                 "paragonie/random_compat": ">= 2",
                 "phpunit/phpunit": "^4.8.35 || ^5.6.3 || ^9.5",
                 "psr/cache": "^1.0",
+                "psr/http-message": "^1.0",
                 "psr/simple-cache": "^1.0",
                 "sebastian/comparator": "^1.2.3 || ^4.0",
                 "yoast/phpunit-polyfills": "^1.0"
@@ -206,9 +207,9 @@
             "support": {
                 "forum": "https://forums.aws.amazon.com/forum.jspa?forumID=80",
                 "issues": "https://github.com/aws/aws-sdk-php/issues",
-                "source": "https://github.com/aws/aws-sdk-php/tree/3.263.0"
+                "source": "https://github.com/aws/aws-sdk-php/tree/3.269.0"
             },
-            "time": "2023-03-30T18:22:31+00:00"
+            "time": "2023-04-26T18:21:04+00:00"
         },
         {
             "name": "brick/math",
@@ -709,22 +710,22 @@
         },
         {
             "name": "guzzlehttp/guzzle",
-            "version": "7.5.0",
+            "version": "7.5.1",
             "source": {
                 "type": "git",
                 "url": "https://github.com/guzzle/guzzle.git",
-                "reference": "b50a2a1251152e43f6a37f0fa053e730a67d25ba"
+                "reference": "b964ca597e86b752cd994f27293e9fa6b6a95ed9"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/guzzle/guzzle/zipball/b50a2a1251152e43f6a37f0fa053e730a67d25ba",
-                "reference": "b50a2a1251152e43f6a37f0fa053e730a67d25ba",
+                "url": "https://api.github.com/repos/guzzle/guzzle/zipball/b964ca597e86b752cd994f27293e9fa6b6a95ed9",
+                "reference": "b964ca597e86b752cd994f27293e9fa6b6a95ed9",
                 "shasum": ""
             },
             "require": {
                 "ext-json": "*",
                 "guzzlehttp/promises": "^1.5",
-                "guzzlehttp/psr7": "^1.9 || ^2.4",
+                "guzzlehttp/psr7": "^1.9.1 || ^2.4.5",
                 "php": "^7.2.5 || ^8.0",
                 "psr/http-client": "^1.0",
                 "symfony/deprecation-contracts": "^2.2 || ^3.0"
@@ -817,7 +818,7 @@
             ],
             "support": {
                 "issues": "https://github.com/guzzle/guzzle/issues",
-                "source": "https://github.com/guzzle/guzzle/tree/7.5.0"
+                "source": "https://github.com/guzzle/guzzle/tree/7.5.1"
             },
             "funding": [
                 {
@@ -833,7 +834,7 @@
                     "type": "tidelift"
                 }
             ],
-            "time": "2022-08-28T15:39:27+00:00"
+            "time": "2023-04-17T16:30:08+00:00"
         },
         {
             "name": "guzzlehttp/promises",
@@ -921,22 +922,22 @@
         },
         {
             "name": "guzzlehttp/psr7",
-            "version": "2.4.4",
+            "version": "2.5.0",
             "source": {
                 "type": "git",
                 "url": "https://github.com/guzzle/psr7.git",
-                "reference": "3cf1b6d4f0c820a2cf8bcaec39fc698f3443b5cf"
+                "reference": "b635f279edd83fc275f822a1188157ffea568ff6"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/guzzle/psr7/zipball/3cf1b6d4f0c820a2cf8bcaec39fc698f3443b5cf",
-                "reference": "3cf1b6d4f0c820a2cf8bcaec39fc698f3443b5cf",
+                "url": "https://api.github.com/repos/guzzle/psr7/zipball/b635f279edd83fc275f822a1188157ffea568ff6",
+                "reference": "b635f279edd83fc275f822a1188157ffea568ff6",
                 "shasum": ""
             },
             "require": {
                 "php": "^7.2.5 || ^8.0",
                 "psr/http-factory": "^1.0",
-                "psr/http-message": "^1.0",
+                "psr/http-message": "^1.1 || ^2.0",
                 "ralouphie/getallheaders": "^3.0"
             },
             "provide": {
@@ -956,9 +957,6 @@
                 "bamarni-bin": {
                     "bin-links": true,
                     "forward-command": false
-                },
-                "branch-alias": {
-                    "dev-master": "2.4-dev"
                 }
             },
             "autoload": {
@@ -1020,7 +1018,7 @@
             ],
             "support": {
                 "issues": "https://github.com/guzzle/psr7/issues",
-                "source": "https://github.com/guzzle/psr7/tree/2.4.4"
+                "source": "https://github.com/guzzle/psr7/tree/2.5.0"
             },
             "funding": [
                 {
@@ -1036,7 +1034,7 @@
                     "type": "tidelift"
                 }
             ],
-            "time": "2023-03-09T13:19:02+00:00"
+            "time": "2023-04-17T16:11:26+00:00"
         },
         {
             "name": "hashids/hashids",
@@ -1395,16 +1393,16 @@
         },
         {
             "name": "laravelcollective/html",
-            "version": "v6.4.0",
+            "version": "v6.4.1",
             "source": {
                 "type": "git",
                 "url": "https://github.com/LaravelCollective/html.git",
-                "reference": "ac74f580459a5120079b8def0404e5d312a09504"
+                "reference": "64ddfdcaeeb8d332bd98bef442bef81e39c3910b"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/LaravelCollective/html/zipball/ac74f580459a5120079b8def0404e5d312a09504",
-                "reference": "ac74f580459a5120079b8def0404e5d312a09504",
+                "url": "https://api.github.com/repos/LaravelCollective/html/zipball/64ddfdcaeeb8d332bd98bef442bef81e39c3910b",
+                "reference": "64ddfdcaeeb8d332bd98bef442bef81e39c3910b",
                 "shasum": ""
             },
             "require": {
@@ -1463,7 +1461,8 @@
                 "issues": "https://github.com/LaravelCollective/html/issues",
                 "source": "https://github.com/LaravelCollective/html"
             },
-            "time": "2023-02-13T18:15:35+00:00"
+            "abandoned": "spatie/laravel-html",
+            "time": "2023-04-25T02:46:11+00:00"
         },
         {
             "name": "league/commonmark",
@@ -2334,21 +2333,21 @@
         },
         {
             "name": "psr/http-client",
-            "version": "1.0.1",
+            "version": "1.0.2",
             "source": {
                 "type": "git",
                 "url": "https://github.com/php-fig/http-client.git",
-                "reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621"
+                "reference": "0955afe48220520692d2d09f7ab7e0f93ffd6a31"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/php-fig/http-client/zipball/2dfb5f6c5eff0e91e20e913f8c5452ed95b86621",
-                "reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621",
+                "url": "https://api.github.com/repos/php-fig/http-client/zipball/0955afe48220520692d2d09f7ab7e0f93ffd6a31",
+                "reference": "0955afe48220520692d2d09f7ab7e0f93ffd6a31",
                 "shasum": ""
             },
             "require": {
                 "php": "^7.0 || ^8.0",
-                "psr/http-message": "^1.0"
+                "psr/http-message": "^1.0 || ^2.0"
             },
             "type": "library",
             "extra": {
@@ -2368,7 +2367,7 @@
             "authors": [
                 {
                     "name": "PHP-FIG",
-                    "homepage": "http://www.php-fig.org/"
+                    "homepage": "https://www.php-fig.org/"
                 }
             ],
             "description": "Common interface for HTTP clients",
@@ -2380,27 +2379,27 @@
                 "psr-18"
             ],
             "support": {
-                "source": "https://github.com/php-fig/http-client/tree/master"
+                "source": "https://github.com/php-fig/http-client/tree/1.0.2"
             },
-            "time": "2020-06-29T06:28:15+00:00"
+            "time": "2023-04-10T20:12:12+00:00"
         },
         {
             "name": "psr/http-factory",
-            "version": "1.0.1",
+            "version": "1.0.2",
             "source": {
                 "type": "git",
                 "url": "https://github.com/php-fig/http-factory.git",
-                "reference": "12ac7fcd07e5b077433f5f2bee95b3a771bf61be"
+                "reference": "e616d01114759c4c489f93b099585439f795fe35"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/php-fig/http-factory/zipball/12ac7fcd07e5b077433f5f2bee95b3a771bf61be",
-                "reference": "12ac7fcd07e5b077433f5f2bee95b3a771bf61be",
+                "url": "https://api.github.com/repos/php-fig/http-factory/zipball/e616d01114759c4c489f93b099585439f795fe35",
+                "reference": "e616d01114759c4c489f93b099585439f795fe35",
                 "shasum": ""
             },
             "require": {
                 "php": ">=7.0.0",
-                "psr/http-message": "^1.0"
+                "psr/http-message": "^1.0 || ^2.0"
             },
             "type": "library",
             "extra": {
@@ -2420,7 +2419,7 @@
             "authors": [
                 {
                     "name": "PHP-FIG",
-                    "homepage": "http://www.php-fig.org/"
+                    "homepage": "https://www.php-fig.org/"
                 }
             ],
             "description": "Common interfaces for PSR-7 HTTP message factories",
@@ -2435,31 +2434,31 @@
                 "response"
             ],
             "support": {
-                "source": "https://github.com/php-fig/http-factory/tree/master"
+                "source": "https://github.com/php-fig/http-factory/tree/1.0.2"
             },
-            "time": "2019-04-30T12:38:16+00:00"
+            "time": "2023-04-10T20:10:41+00:00"
         },
         {
             "name": "psr/http-message",
-            "version": "1.0.1",
+            "version": "2.0",
             "source": {
                 "type": "git",
                 "url": "https://github.com/php-fig/http-message.git",
-                "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363"
+                "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363",
-                "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363",
+                "url": "https://api.github.com/repos/php-fig/http-message/zipball/402d35bcb92c70c026d1a6a9883f06b2ead23d71",
+                "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71",
                 "shasum": ""
             },
             "require": {
-                "php": ">=5.3.0"
+                "php": "^7.2 || ^8.0"
             },
             "type": "library",
             "extra": {
                 "branch-alias": {
-                    "dev-master": "1.0.x-dev"
+                    "dev-master": "2.0.x-dev"
                 }
             },
             "autoload": {
@@ -2474,7 +2473,7 @@
             "authors": [
                 {
                     "name": "PHP-FIG",
-                    "homepage": "http://www.php-fig.org/"
+                    "homepage": "https://www.php-fig.org/"
                 }
             ],
             "description": "Common interface for HTTP messages",
@@ -2488,9 +2487,9 @@
                 "response"
             ],
             "support": {
-                "source": "https://github.com/php-fig/http-message/tree/master"
+                "source": "https://github.com/php-fig/http-message/tree/2.0"
             },
-            "time": "2016-08-06T14:39:51+00:00"
+            "time": "2023-04-04T09:54:51+00:00"
         },
         {
             "name": "psr/log",
@@ -2595,16 +2594,16 @@
         },
         {
             "name": "psy/psysh",
-            "version": "v0.11.14",
+            "version": "v0.11.16",
             "source": {
                 "type": "git",
                 "url": "https://github.com/bobthecow/psysh.git",
-                "reference": "8c2e264def7a8263a68ef6f0b55ce90b77d41e17"
+                "reference": "151b145906804eea8e5d71fea23bfb470c904bfb"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/bobthecow/psysh/zipball/8c2e264def7a8263a68ef6f0b55ce90b77d41e17",
-                "reference": "8c2e264def7a8263a68ef6f0b55ce90b77d41e17",
+                "url": "https://api.github.com/repos/bobthecow/psysh/zipball/151b145906804eea8e5d71fea23bfb470c904bfb",
+                "reference": "151b145906804eea8e5d71fea23bfb470c904bfb",
                 "shasum": ""
             },
             "require": {
@@ -2665,9 +2664,9 @@
             ],
             "support": {
                 "issues": "https://github.com/bobthecow/psysh/issues",
-                "source": "https://github.com/bobthecow/psysh/tree/v0.11.14"
+                "source": "https://github.com/bobthecow/psysh/tree/v0.11.16"
             },
-            "time": "2023-03-28T03:41:01+00:00"
+            "time": "2023-04-26T12:53:57+00:00"
         },
         {
             "name": "ralouphie/getallheaders",
@@ -2979,16 +2978,16 @@
         },
         {
             "name": "symfony/console",
-            "version": "v5.4.21",
+            "version": "v5.4.23",
             "source": {
                 "type": "git",
                 "url": "https://github.com/symfony/console.git",
-                "reference": "c77433ddc6cdc689caf48065d9ea22ca0853fbd9"
+                "reference": "90f21e27d0d88ce38720556dd164d4a1e4c3934c"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/symfony/console/zipball/c77433ddc6cdc689caf48065d9ea22ca0853fbd9",
-                "reference": "c77433ddc6cdc689caf48065d9ea22ca0853fbd9",
+                "url": "https://api.github.com/repos/symfony/console/zipball/90f21e27d0d88ce38720556dd164d4a1e4c3934c",
+                "reference": "90f21e27d0d88ce38720556dd164d4a1e4c3934c",
                 "shasum": ""
             },
             "require": {
@@ -3053,12 +3052,12 @@
             "homepage": "https://symfony.com",
             "keywords": [
                 "cli",
-                "command line",
+                "command-line",
                 "console",
                 "terminal"
             ],
             "support": {
-                "source": "https://github.com/symfony/console/tree/v5.4.21"
+                "source": "https://github.com/symfony/console/tree/v5.4.23"
             },
             "funding": [
                 {
@@ -3074,7 +3073,7 @@
                     "type": "tidelift"
                 }
             ],
-            "time": "2023-02-25T16:59:41+00:00"
+            "time": "2023-04-24T18:47:29+00:00"
         },
         {
             "name": "symfony/css-selector",
@@ -3211,16 +3210,16 @@
         },
         {
             "name": "symfony/error-handler",
-            "version": "v5.4.21",
+            "version": "v5.4.23",
             "source": {
                 "type": "git",
                 "url": "https://github.com/symfony/error-handler.git",
-                "reference": "56a94aa8cb5a5fbc411551d8d014a296b5456549"
+                "reference": "218206b4772d9f412d7d277980c020d06e9d8a4e"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/symfony/error-handler/zipball/56a94aa8cb5a5fbc411551d8d014a296b5456549",
-                "reference": "56a94aa8cb5a5fbc411551d8d014a296b5456549",
+                "url": "https://api.github.com/repos/symfony/error-handler/zipball/218206b4772d9f412d7d277980c020d06e9d8a4e",
+                "reference": "218206b4772d9f412d7d277980c020d06e9d8a4e",
                 "shasum": ""
             },
             "require": {
@@ -3262,7 +3261,7 @@
             "description": "Provides tools to manage errors and ease debugging PHP code",
             "homepage": "https://symfony.com",
             "support": {
-                "source": "https://github.com/symfony/error-handler/tree/v5.4.21"
+                "source": "https://github.com/symfony/error-handler/tree/v5.4.23"
             },
             "funding": [
                 {
@@ -3278,20 +3277,20 @@
                     "type": "tidelift"
                 }
             ],
-            "time": "2023-02-14T08:03:56+00:00"
+            "time": "2023-04-17T10:03:27+00:00"
         },
         {
             "name": "symfony/event-dispatcher",
-            "version": "v5.4.21",
+            "version": "v5.4.22",
             "source": {
                 "type": "git",
                 "url": "https://github.com/symfony/event-dispatcher.git",
-                "reference": "f0ae1383a8285dfc6752b8d8602790953118ff5a"
+                "reference": "1df20e45d56da29a4b1d8259dd6e950acbf1b13f"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/f0ae1383a8285dfc6752b8d8602790953118ff5a",
-                "reference": "f0ae1383a8285dfc6752b8d8602790953118ff5a",
+                "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/1df20e45d56da29a4b1d8259dd6e950acbf1b13f",
+                "reference": "1df20e45d56da29a4b1d8259dd6e950acbf1b13f",
                 "shasum": ""
             },
             "require": {
@@ -3347,7 +3346,7 @@
             "description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them",
             "homepage": "https://symfony.com",
             "support": {
-                "source": "https://github.com/symfony/event-dispatcher/tree/v5.4.21"
+                "source": "https://github.com/symfony/event-dispatcher/tree/v5.4.22"
             },
             "funding": [
                 {
@@ -3363,7 +3362,7 @@
                     "type": "tidelift"
                 }
             ],
-            "time": "2023-02-14T08:03:56+00:00"
+            "time": "2023-03-17T11:31:58+00:00"
         },
         {
             "name": "symfony/event-dispatcher-contracts",
@@ -3509,16 +3508,16 @@
         },
         {
             "name": "symfony/http-foundation",
-            "version": "v5.4.21",
+            "version": "v5.4.23",
             "source": {
                 "type": "git",
                 "url": "https://github.com/symfony/http-foundation.git",
-                "reference": "3bb6ee5582366c4176d5ce596b380117c8200bbf"
+                "reference": "af9fbb378f5f956c8f29d4886644c84c193780ac"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/symfony/http-foundation/zipball/3bb6ee5582366c4176d5ce596b380117c8200bbf",
-                "reference": "3bb6ee5582366c4176d5ce596b380117c8200bbf",
+                "url": "https://api.github.com/repos/symfony/http-foundation/zipball/af9fbb378f5f956c8f29d4886644c84c193780ac",
+                "reference": "af9fbb378f5f956c8f29d4886644c84c193780ac",
                 "shasum": ""
             },
             "require": {
@@ -3565,7 +3564,7 @@
             "description": "Defines an object-oriented layer for the HTTP specification",
             "homepage": "https://symfony.com",
             "support": {
-                "source": "https://github.com/symfony/http-foundation/tree/v5.4.21"
+                "source": "https://github.com/symfony/http-foundation/tree/v5.4.23"
             },
             "funding": [
                 {
@@ -3581,20 +3580,20 @@
                     "type": "tidelift"
                 }
             ],
-            "time": "2023-02-17T21:35:35+00:00"
+            "time": "2023-04-18T06:30:11+00:00"
         },
         {
             "name": "symfony/http-kernel",
-            "version": "v5.4.21",
+            "version": "v5.4.23",
             "source": {
                 "type": "git",
                 "url": "https://github.com/symfony/http-kernel.git",
-                "reference": "09c19fc7e4218fbcf73fe0330eea38d66064b775"
+                "reference": "48ea17a7c65ef1ede0c3b2dbc35adace99071810"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/symfony/http-kernel/zipball/09c19fc7e4218fbcf73fe0330eea38d66064b775",
-                "reference": "09c19fc7e4218fbcf73fe0330eea38d66064b775",
+                "url": "https://api.github.com/repos/symfony/http-kernel/zipball/48ea17a7c65ef1ede0c3b2dbc35adace99071810",
+                "reference": "48ea17a7c65ef1ede0c3b2dbc35adace99071810",
                 "shasum": ""
             },
             "require": {
@@ -3677,7 +3676,7 @@
             "description": "Provides a structured process for converting a Request into a Response",
             "homepage": "https://symfony.com",
             "support": {
-                "source": "https://github.com/symfony/http-kernel/tree/v5.4.21"
+                "source": "https://github.com/symfony/http-kernel/tree/v5.4.23"
             },
             "funding": [
                 {
@@ -3693,20 +3692,20 @@
                     "type": "tidelift"
                 }
             ],
-            "time": "2023-02-28T13:19:09+00:00"
+            "time": "2023-04-28T13:29:52+00:00"
         },
         {
             "name": "symfony/mime",
-            "version": "v5.4.21",
+            "version": "v5.4.23",
             "source": {
                 "type": "git",
                 "url": "https://github.com/symfony/mime.git",
-                "reference": "ef57d9fb9cdd5e6b2ffc567d109865d10b6920cd"
+                "reference": "ae0a1032a450a3abf305ee44fc55ed423fbf16e3"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/symfony/mime/zipball/ef57d9fb9cdd5e6b2ffc567d109865d10b6920cd",
-                "reference": "ef57d9fb9cdd5e6b2ffc567d109865d10b6920cd",
+                "url": "https://api.github.com/repos/symfony/mime/zipball/ae0a1032a450a3abf305ee44fc55ed423fbf16e3",
+                "reference": "ae0a1032a450a3abf305ee44fc55ed423fbf16e3",
                 "shasum": ""
             },
             "require": {
@@ -3761,7 +3760,7 @@
                 "mime-type"
             ],
             "support": {
-                "source": "https://github.com/symfony/mime/tree/v5.4.21"
+                "source": "https://github.com/symfony/mime/tree/v5.4.23"
             },
             "funding": [
                 {
@@ -3777,7 +3776,7 @@
                     "type": "tidelift"
                 }
             ],
-            "time": "2023-02-21T19:46:44+00:00"
+            "time": "2023-04-19T09:49:13+00:00"
         },
         {
             "name": "symfony/polyfill-ctype",
@@ -4598,16 +4597,16 @@
         },
         {
             "name": "symfony/process",
-            "version": "v5.4.21",
+            "version": "v5.4.23",
             "source": {
                 "type": "git",
                 "url": "https://github.com/symfony/process.git",
-                "reference": "d4ce417ebcb0b7d090b4c178ed6d3accc518e8bd"
+                "reference": "4b842fc4b61609e0a155a114082bd94e31e98287"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/symfony/process/zipball/d4ce417ebcb0b7d090b4c178ed6d3accc518e8bd",
-                "reference": "d4ce417ebcb0b7d090b4c178ed6d3accc518e8bd",
+                "url": "https://api.github.com/repos/symfony/process/zipball/4b842fc4b61609e0a155a114082bd94e31e98287",
+                "reference": "4b842fc4b61609e0a155a114082bd94e31e98287",
                 "shasum": ""
             },
             "require": {
@@ -4640,7 +4639,7 @@
             "description": "Executes commands in sub-processes",
             "homepage": "https://symfony.com",
             "support": {
-                "source": "https://github.com/symfony/process/tree/v5.4.21"
+                "source": "https://github.com/symfony/process/tree/v5.4.23"
             },
             "funding": [
                 {
@@ -4656,20 +4655,20 @@
                     "type": "tidelift"
                 }
             ],
-            "time": "2023-02-21T19:46:44+00:00"
+            "time": "2023-04-18T13:50:24+00:00"
         },
         {
             "name": "symfony/routing",
-            "version": "v5.4.21",
+            "version": "v5.4.22",
             "source": {
                 "type": "git",
                 "url": "https://github.com/symfony/routing.git",
-                "reference": "2ea0f3049076e8ef96eab203a809d6b2332f0361"
+                "reference": "c2ac11eb34947999b7c38fb4c835a57306907e6d"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/symfony/routing/zipball/2ea0f3049076e8ef96eab203a809d6b2332f0361",
-                "reference": "2ea0f3049076e8ef96eab203a809d6b2332f0361",
+                "url": "https://api.github.com/repos/symfony/routing/zipball/c2ac11eb34947999b7c38fb4c835a57306907e6d",
+                "reference": "c2ac11eb34947999b7c38fb4c835a57306907e6d",
                 "shasum": ""
             },
             "require": {
@@ -4730,7 +4729,7 @@
                 "url"
             ],
             "support": {
-                "source": "https://github.com/symfony/routing/tree/v5.4.21"
+                "source": "https://github.com/symfony/routing/tree/v5.4.22"
             },
             "funding": [
                 {
@@ -4746,7 +4745,7 @@
                     "type": "tidelift"
                 }
             ],
-            "time": "2023-02-16T09:33:00+00:00"
+            "time": "2023-03-14T14:59:20+00:00"
         },
         {
             "name": "symfony/service-contracts",
@@ -4833,16 +4832,16 @@
         },
         {
             "name": "symfony/string",
-            "version": "v5.4.21",
+            "version": "v5.4.22",
             "source": {
                 "type": "git",
                 "url": "https://github.com/symfony/string.git",
-                "reference": "edac10d167b78b1d90f46a80320d632de0bd9f2f"
+                "reference": "8036a4c76c0dd29e60b6a7cafcacc50cf088ea62"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/symfony/string/zipball/edac10d167b78b1d90f46a80320d632de0bd9f2f",
-                "reference": "edac10d167b78b1d90f46a80320d632de0bd9f2f",
+                "url": "https://api.github.com/repos/symfony/string/zipball/8036a4c76c0dd29e60b6a7cafcacc50cf088ea62",
+                "reference": "8036a4c76c0dd29e60b6a7cafcacc50cf088ea62",
                 "shasum": ""
             },
             "require": {
@@ -4899,7 +4898,7 @@
                 "utf8"
             ],
             "support": {
-                "source": "https://github.com/symfony/string/tree/v5.4.21"
+                "source": "https://github.com/symfony/string/tree/v5.4.22"
             },
             "funding": [
                 {
@@ -4915,20 +4914,20 @@
                     "type": "tidelift"
                 }
             ],
-            "time": "2023-02-22T08:00:55+00:00"
+            "time": "2023-03-14T06:11:53+00:00"
         },
         {
             "name": "symfony/translation",
-            "version": "v5.4.21",
+            "version": "v5.4.22",
             "source": {
                 "type": "git",
                 "url": "https://github.com/symfony/translation.git",
-                "reference": "6996affeea65705086939894b77110e9a7f80874"
+                "reference": "9a401392f01bc385aa42760eff481d213a0cc2ba"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/symfony/translation/zipball/6996affeea65705086939894b77110e9a7f80874",
-                "reference": "6996affeea65705086939894b77110e9a7f80874",
+                "url": "https://api.github.com/repos/symfony/translation/zipball/9a401392f01bc385aa42760eff481d213a0cc2ba",
+                "reference": "9a401392f01bc385aa42760eff481d213a0cc2ba",
                 "shasum": ""
             },
             "require": {
@@ -4996,7 +4995,7 @@
             "description": "Provides tools to internationalize your application",
             "homepage": "https://symfony.com",
             "support": {
-                "source": "https://github.com/symfony/translation/tree/v5.4.21"
+                "source": "https://github.com/symfony/translation/tree/v5.4.22"
             },
             "funding": [
                 {
@@ -5012,7 +5011,7 @@
                     "type": "tidelift"
                 }
             ],
-            "time": "2023-02-21T19:46:44+00:00"
+            "time": "2023-03-27T16:07:23+00:00"
         },
         {
             "name": "symfony/translation-contracts",
@@ -5094,16 +5093,16 @@
         },
         {
             "name": "symfony/var-dumper",
-            "version": "v5.4.21",
+            "version": "v5.4.23",
             "source": {
                 "type": "git",
                 "url": "https://github.com/symfony/var-dumper.git",
-                "reference": "6c5ac3a1be8b849d59a1a77877ee110e1b55eb74"
+                "reference": "9a8a5b6d6508928174ded2109e29328a55342a42"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/symfony/var-dumper/zipball/6c5ac3a1be8b849d59a1a77877ee110e1b55eb74",
-                "reference": "6c5ac3a1be8b849d59a1a77877ee110e1b55eb74",
+                "url": "https://api.github.com/repos/symfony/var-dumper/zipball/9a8a5b6d6508928174ded2109e29328a55342a42",
+                "reference": "9a8a5b6d6508928174ded2109e29328a55342a42",
                 "shasum": ""
             },
             "require": {
@@ -5163,7 +5162,7 @@
                 "dump"
             ],
             "support": {
-                "source": "https://github.com/symfony/var-dumper/tree/v5.4.21"
+                "source": "https://github.com/symfony/var-dumper/tree/v5.4.23"
             },
             "funding": [
                 {
@@ -5179,7 +5178,7 @@
                     "type": "tidelift"
                 }
             ],
-            "time": "2023-02-23T10:00:28+00:00"
+            "time": "2023-04-18T09:26:27+00:00"
         },
         {
             "name": "tijsverkoyen/css-to-inline-styles",
@@ -5728,16 +5727,16 @@
         },
         {
             "name": "filp/whoops",
-            "version": "2.15.1",
+            "version": "2.15.2",
             "source": {
                 "type": "git",
                 "url": "https://github.com/filp/whoops.git",
-                "reference": "e864ac957acd66e1565f25efda61e37791a5db0b"
+                "reference": "aac9304c5ed61bf7b1b7a6064bf9806ab842ce73"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/filp/whoops/zipball/e864ac957acd66e1565f25efda61e37791a5db0b",
-                "reference": "e864ac957acd66e1565f25efda61e37791a5db0b",
+                "url": "https://api.github.com/repos/filp/whoops/zipball/aac9304c5ed61bf7b1b7a6064bf9806ab842ce73",
+                "reference": "aac9304c5ed61bf7b1b7a6064bf9806ab842ce73",
                 "shasum": ""
             },
             "require": {
@@ -5787,7 +5786,7 @@
             ],
             "support": {
                 "issues": "https://github.com/filp/whoops/issues",
-                "source": "https://github.com/filp/whoops/tree/2.15.1"
+                "source": "https://github.com/filp/whoops/tree/2.15.2"
             },
             "funding": [
                 {
@@ -5795,7 +5794,7 @@
                     "type": "github"
                 }
             ],
-            "time": "2023-03-06T18:09:13+00:00"
+            "time": "2023-04-12T12:00:00+00:00"
         },
         {
             "name": "hamcrest/hamcrest-php",
@@ -6498,16 +6497,16 @@
         },
         {
             "name": "phpunit/phpunit",
-            "version": "9.6.6",
+            "version": "9.6.7",
             "source": {
                 "type": "git",
                 "url": "https://github.com/sebastianbergmann/phpunit.git",
-                "reference": "b65d59a059d3004a040c16a82e07bbdf6cfdd115"
+                "reference": "c993f0d3b0489ffc42ee2fe0bd645af1538a63b2"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/b65d59a059d3004a040c16a82e07bbdf6cfdd115",
-                "reference": "b65d59a059d3004a040c16a82e07bbdf6cfdd115",
+                "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/c993f0d3b0489ffc42ee2fe0bd645af1538a63b2",
+                "reference": "c993f0d3b0489ffc42ee2fe0bd645af1538a63b2",
                 "shasum": ""
             },
             "require": {
@@ -6581,7 +6580,7 @@
             "support": {
                 "issues": "https://github.com/sebastianbergmann/phpunit/issues",
                 "security": "https://github.com/sebastianbergmann/phpunit/security/policy",
-                "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.6"
+                "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.7"
             },
             "funding": [
                 {
@@ -6597,7 +6596,7 @@
                     "type": "tidelift"
                 }
             ],
-            "time": "2023-03-27T11:43:46+00:00"
+            "time": "2023-04-14T08:58:40+00:00"
         },
         {
             "name": "sebastian/cli-parser",
@@ -7623,5 +7622,5 @@
         "php": "^7.2.5|^8.0"
     },
     "platform-dev": [],
-    "plugin-api-version": "2.3.0"
+    "plugin-api-version": "2.0.0"
 }

+ 5 - 12
resources/views/admin/admin_profile.blade.php

@@ -395,7 +395,7 @@ tbody, td, tfoot, th, thead, tr {
                             <div class="col-md-2" style="display:flex; justify-content: end;">
                                 <ul class="nav navbar-nav align-items-center ml-auto header_right ps-2">
                                     <li class="nav-item dropdown dropdown-notification">
-                                        <a href="" class="" data-url="" data-title="Invite">
+                                        <a href="javascript:void(0)" class="open_modal_page" data-url="{{route('modal-get',['name'=>'admin_invited'])}}" data-title="Invite">
                                         <button class="btn btn2" style="padding: 6px 10px !important;">New lead</button>
                                         </a>
                                     </li>
@@ -586,12 +586,9 @@ tbody, td, tfoot, th, thead, tr {
                                     </ul>
                                 </div>
                                 <div class="col-md-12">
-                                    <div class="row align-items-center">
-<<<<<<< HEAD
+                                    <div class="row align-items-center"> 
                                         <div class="card rounded border-0 p-2" style="background-color:white;">   
-=======
-                                        <div class="card rounded border-0 p-3" style="background-color:white;">
->>>>>>> 392a64ab89536d1a0b58ece205bd1d1b0ce3ceba
+ 
                                             <div class="row">
                                                 <div class="tab-content" id="pills-tabContent">
                                                     <div class="card border-0 tab-pane fade show active" id="registers" role="tabpanel" aria-labelledby="student-register">
@@ -748,12 +745,8 @@ tbody, td, tfoot, th, thead, tr {
                                 </div>
                                 <div class="col-md-12">
                                     <div class="row align-items-center">
-                                        <div class="col-md-12 mb-3" style="padding:0px;">
-<<<<<<< HEAD
-                                            <div class="card rounded border-0 p-2" style="background-color:white;">   
-=======
-                                            <div class="card rounded border-0 p-3" style="background-color:white;">
->>>>>>> 392a64ab89536d1a0b58ece205bd1d1b0ce3ceba
+                                        <div class="col-md-12 mb-3" style="padding:0px;"> 
+                                            <div class="card rounded border-0 p-3" style="background-color:white;"> 
                                                 <div class="row">
                                                     <div class="col-12">
                                                         <div class="tab-content" id="pills-tabContent">

+ 321 - 0
resources/views/auth/invited_register_form.blade.php

@@ -0,0 +1,321 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+        <meta charset="utf-8" />
+        <title>Research Admission</title>
+        <meta name="viewport" content="width=device-width, initial-scale=1.0">
+        <meta name="description" content="Information & Guidance on the PhD Process, Connect with Supervisor and Many" />
+        <meta name="keywords" content="" />
+
+         <!-- facebook tags -->
+         <meta property="og:url" content="http://www.facebook.com/researchadmission"/>
+         <meta property="og:type" content="website"/>
+         <meta property="og:title" content="Research Admission"/>
+         <meta property="og:description" content="Information & Guidance on the PhD Process, Connect with Supervisor and Many"/>
+          <!-- Linkedin tags -->
+         <meta property="og:url" content="https://www.linkedin.com/company/researchadmission"/>
+         <meta property="og:type" content="website"/>
+         <meta property="og:title" content="Research Admission"/>
+         <meta property="og:description" content="Information & Guidance on the PhD Process, Connect with Supervisor and Many"/>
+
+        <!-- favicon -->
+        <link rel="shortcut icon" href="{{asset('web/images/logo.png') }}">
+        <!-- Bootstrap -->
+        <link href="{{ asset('web/css/bootstrap.min.css') }}" rel="stylesheet" type="text/css" />
+        <!-- tobii css -->
+        <link href="{{asset('web/css/tobii.min.css')}}" rel="stylesheet" type="text/css" />
+        <!-- Icons -->
+        <link href="{{asset('web/css/materialdesignicons.min.css')}}" rel="stylesheet" type="text/css" />
+        <link rel="stylesheet" type="text/css" href="{{ asset('web/stylesheets/font-awesome.min.css') }}" />
+        <link rel="stylesheet" href="https://unicons.iconscout.com/release/v3.0.6/css/line.css">
+        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css">
+
+        <!-- Slider -->
+        <link rel="stylesheet" href="{{asset('web/css/tiny-slider.css')}}"/>
+        <!-- Main Css -->
+        <link href="{{asset('web/css/style.css')}}" rel="stylesheet" type="text/css" id="theme-opt" />
+        <link href="{{asset('web/css/colors/default.css')}}" rel="stylesheet" id="color-opt">
+        <link rel="preconnect" href="https://fonts.googleapis.com">
+        <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
+        <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;900&display=swap" rel="stylesheet">
+        <link href="{{ asset('css/flatpickr/dist/flatpickr.min.css') }}" rel="stylesheet" type="text/css">
+        <link rel="stylesheet" href="{{ asset('css/pnotify/pnotify.min.css') }}">
+        <link href="{{ asset('css/noty/lib/noty.css') }}" rel="stylesheet" type="text/css">
+        <link href="{{ asset('css/noty/lib/themes/sunset.css') }}" rel="stylesheet" type="text/css">
+    </head>
+    <style>
+    body {
+        font-family: 'Oswald', sans-serif;
+        font-family: 'Quicksand', sans-serif;
+    }
+    h1, h2, h3, h4, h6 {
+        font-family:Ubuntu !important;
+    }
+    h5{
+        font-family: 'Montserrat Alternates', sans-serif !important;
+    }
+    .bg-half-170 {
+        padding:0px;
+    }
+    .form-control:focus {
+        box-shadow: 0 0 0 0.25rem rgb(13 110 253 / 25%) !important;
+    }
+    .btn1{
+        background-color: #141639c4 !important;
+        color:white !important;
+        border-radius: 20px;
+        box-shadow:none !important;
+    }
+    .btn1:hover{
+        background: #fff !important;
+        color: #141639c4 !important;
+        border-radius: 20px;
+        border: 1px solid #141639c4;
+    }
+    .tns-nav button {
+        background: #141639c4 !important;
+    }
+    .tns-nav button.tns-nav-active{
+        background-color: #ffff !important;
+    }
+    .bg-left{
+        background-color:#141639c4;
+        border:none;
+        padding:8.37rem;
+    }
+    .head-line{
+        font-size: 39px !important;
+        font-weight: bold;
+        line-height: 1.2;
+        color:#ffff;
+    }
+    .sub-line1{
+        font-size: 18px !important;
+        font-weight: 400;
+        color:#ffff !important;
+    }
+    .sub-line2{
+        font-size: 17px !important;
+        font-weight: bold;
+        font-family: poppins !important;
+        color:#ffff !important;
+    }
+    .bg-white{
+        background-color: #72809f33 !important;
+        height: 160px;
+        border: 1px solid #ffff;
+    }
+    .box-head{
+        font-size:15px !important;
+        color:#ffff;
+    }
+    .box-sub{
+        font-size:14px;
+        color:#ffff;
+    }
+    .d-flex{
+        display: grid !important;
+    }
+    </style>
+    <body>
+        @php
+           $countries=DB::table('countries')->get();
+        @endphp
+        <section class="cover-user">
+            <div class="container-fluid px-0">
+                <div class="row g-0 position-relative">
+                    <div class="col-lg-8 padding-less bg-left">
+                        <div>
+                            <h3 class="ps-4 mt-5 pt-4 head-line">Accelerate your research journey with ease</h3>
+                            <h2 class="ps-4 sub-line1">Connect with supervisor through our streamlined platform featuring real-time updates, a wide network, and effortless user experience.</h2>
+                            <p class="ps-4 mt-5 sub-line1" style="color:white; font-family: poppins !important;">With just a few clicks, you can submit your proposal to multiple supervisors, saving you hours of searching and contacting potential supervisors individually. Our user-friendly interface makes it easy for anyone to navigate and use, regardless of their technical skills. The platform provides real-time updates on the status of your application, so you don't have to constantly follow up with supervisors, giving you more time to focus on your research. </p>
+                            <h2 class="ps-4 mt-5 sub-line1" style="color:white; font-family: poppins !important;">Our wide network of potential supervisors means you have access to a large pool of experts in your field, increasing your chances of finding the right supervisor for your project.</h2>
+
+                        </div>
+                    </div>
+                    <div class="col-lg-4 cover-my-30 ">
+                        <div class="cover-user-img d-flex align-items-center p-5">
+                            <div class="row">
+                                <div class="col-12">
+                                    <div class="card login-page border-0" style="z-index: 1">
+                                        <div class="card border-0">
+                                            <div class="card-body" style="padding: 0px;">
+                                                <h1 class="mb-4 pb-1 mt-2" style="color: #141639c4; font-size:48px !important;">Register, To Start</h1>
+                                                <input type="hidden" name="teacher_id" value="{{ $hash_ids[0] }}" id="teacher_id">
+                                                <div class="row mb-4">
+                                                    <div class="col-md-6">
+                                                        <input type="text" class="form-control" name="first_name" value="{{ $user->first_name }}" id="first_name" required  autofocus placeholder="Given Name">
+                                                    </div>
+                                                    <div class="col-md-6">
+                                                        <input type="text" class="form-control" name="last_name" value="{{ old('last_name') }}" id ="last_name" required  placeholder="Family Name">
+                                                    </div>
+                                                </div>
+
+                                                <div class="row mb-4">
+                                                    <div class="col-md-12">
+                                                        <input type="email" class="form-control " name="email" value="{{ $user->email}}" id="email" required placeholder="Email">
+
+                                                    </div>
+                                                </div>
+
+                                                <div class="row mb-4">
+                                                    <div class="col-md-12">
+                                                        <select class="form-control" name="university" id="university">
+                                                            <option selected disabled>Select University</option>
+                                                            @foreach($universities as $row)
+                                                                <option value="{{$row->id}}">{{$row->name}}</option>
+                                                            @endforeach
+                                                        </select>
+                                                    </div>
+                                                </div>
+
+                                                <div class="row mb-3">
+                                                    <div class="col-md-12">
+                                                        <select class="form-control" name="department" id="department">
+                                                            <option selected disabled>Select department</option>
+                                                            @foreach($departments as $row)
+                                                                <option value="{{$row->id}}">{{$row->name}}</option>
+                                                            @endforeach
+                                                            <option value="">Others</option>
+                                                        </select>
+                                                    </div>
+                                                </div>
+                                                <div class="row mb-3">
+                                                <div class="col-md-12 others_department" style="display:none;"> 
+                                                        <div class="form-icon position-relative">
+                                                            <input type="text" class="form-control" name="others_department" id="others_department" placeholder="Others department name">
+                                                        </div>
+                                                    </div>
+                                                </div> 
+                                                <div class="row mb-4">
+                                                    <div class="col-md-12">
+                                                        <input type="text" class="form-control" name="designation" id="designation" placeholder="Please enter your designation here" required="" autocomplete="off">
+                                                    </div>
+                                                </div>
+                                                <div class="row mb-4">
+                                                    <div class="col-md-12">
+                                                        <input type="website" class="form-control" name="universitywebsite" placeholder="website" id="website" required="">
+                                                    </div>
+                                                </div>
+                                                <div class="row mb-4">
+                                                    <div class="col-md-12">
+                                                        <input  type="password" class="form-control " name="password" id="password" required autocomplete="new-password" placeholder="Set a password">
+                                                    </div>
+                                                </div>
+
+                                                <div class="row mb-4">
+                                                    <div class="col-md-12">
+                                                        <input  type="password" class="form-control" name="password_confirmation" id="password_confirmation" required autocomplete="new-password" placeholder="Confirm password">
+                                                    </div>
+                                                </div>
+
+                                                <div class="row mb-0">
+                                                    <div class="col-md-12">
+                                                        <button class="btn btn1 pull-right" id="invited_registration">
+                                                            {{ __('Submit') }}
+                                                        </button>
+                                                    </div>
+                                                </div>
+                                                <p class="text-center mt-2 pb-4"><span> Already registered ?</span><a href="{{ url('login-v2') }}" class="ps-2"><span>Login Here</span></a></p>
+                                            </div>
+                                        </div>
+                                    </div>
+                                </div>
+                            </div>
+                        </div>
+                    </div>
+                </div>
+            </div>
+        </section>
+      <script src="{{asset('web/js/bootstrap.bundle.min.js')}}"></script>
+      <!-- tobii js -->
+      <script src="{{asset('web/js/tobii.min.js')}}"></script>
+      <!-- SLIDER -->
+      <script src="{{asset('web/js/tiny-slider.js')}}"></script>
+      <!-- Icons -->
+      <script src="{{asset('web/js/feather.min.js')}}"></script>
+      <!-- Main Js -->
+      {{-- <script src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.slim.min.js"></script> --}}
+      {{-- <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/js/bootstrap.bundle.min.js"></script> --}}
+      <script src="{{asset('web/js/plugins.init.js')}}"></script>
+      <script src="{{asset('web/js/app.js')}}"></script>
+      <script src="{{ asset('css/jquery.min.js') }}"></script>
+      <script src="{{ asset('css/jquery-form/dist/jquery.form.min.js') }}"></script>
+      <script src="{{ asset('css/pnotify/pnotify.js') }}"></script>
+      <script src="{{ asset('css/noty/lib/noty.min.js') }}"></script>
+      <script src="{{ asset('css/flatpickr/dist/flatpickr.min.js') }}"></script>
+      <script>
+
+          function pop_up_msg(msg='No message specified', type='success', callback=null){
+              new Noty({
+              theme:'sunset',
+              text: msg,
+              type: type,
+              timeout:1500,
+              callbacks:{
+                  afterClose: callback
+              }
+              }).show();
+          }
+
+          function err_msg(err){
+
+              var msg="Request failed to process, try again later.";
+
+              if(err.responseJSON && err.responseJSON.msg){
+              msg=err.responseJSON.msg;
+              }
+
+              return msg;
+
+          }
+
+        $(function(){
+
+            $("#u_dob").flatpickr({
+                dateFormat: "d M Y",
+            });
+
+            $('#invited_registration').on('click', function(){
+                  var id =$('#teacher_id').val();
+                  var first_name =$('#first_name').val();
+                  var last_name =$('#last_name').val();
+                  var email =$('#email').val();
+                  var university =$('#university').val();
+                  var department =$('#department').val();
+                  var others_department =$('#others_department').val();
+                  var designation =$('#designation').val();
+                  var website =$('#website').val();
+                  var password =$('#password').val();
+                  var password_confirmation =$('#password_confirmation').val();
+
+
+                  var form_data={
+                      _token: "{{ csrf_token() }}",
+                      id: id,
+                      first_name: first_name,
+                      last_name: last_name,
+                      email: email,
+                      university: university,
+                      department: department,
+                      others_department: others_department,
+                      designation: designation,
+                      website: website,
+                      password: password,
+                      password_confirmation: password_confirmation,
+                  }
+
+                  $.post("{{ route('ajax-post', ['name'=>'invited_registration']) }}", form_data, function(res){
+                      pop_up_msg(res.msg);
+                      window.location.href = "{{ url('/login-v2') }}";
+
+                  }).fail(function(err){
+
+                      pop_up_msg(err_msg(err), 'error');
+
+                  });
+              });
+        });
+    </script>
+</body>
+</html>

+ 5 - 2
resources/views/email/teacher_invited_email.blade.php

@@ -80,14 +80,17 @@
                         <div class="col-md-9">
                             <div class="card rounded border-0 shadow p-5" style="background-color:white;">
                                 <h3 style="text-align: center; font-family:Ubuntu !important; color: #3c4858 !important; font-size: 30px !important;">Research Admission</h3>
-                                <p class="mt-5">Dear (Teacher Name),</p>
+                                <p class="mt-5">Dear {{ $name }},</p>
+                                @php
+                                    $hashids = new \Hashids\Hashids('teacher_wishlist_signup', 25);
+                                @endphp
                                 <p class="mt-3"> We are reaching out to you regarding an exciting opportunity that we believe will interest you. As a teacher and supervisor, we understand that you must receive countless emails from doctoral applicants who are seeking to work with you on their research projects. Keeping track of all these emails can be a daunting task.</p>
                                 <p class="mt-2"> That's why we wanted to introduce you to a free tool that can make your life a lot easier. This tool is designed to help you manage all your doctoral applicants proposals in one place. With just three simple steps, applicants can submit their proposals to you, and you will receive email notifications each time a new proposal is submitted.</p>
                                 <p class="mt-2"> The tool also allows you to review, request further information or documents, reject, or express your interest in each proposal so they can submit a formal application, all while keeping the applicant notified in real-time.</p>
                                 <p class="mt-2"> The best part? Many faculties across the world are already using this tool, and it has been proven to be effective in streamlining the application process for doctoral applicants.</p>
                                 <p class="mt-2"> At this point, registration is by invitation only, and we would like to extend an invitation to you to explore the many features that this tool offers. Your data will be 100% secure and will not be accessible or shared with any third party.</p>
                                 <p class="mt-2"> To get started, please follow the link below to create your account and begin exploring the system's features.</p>
-                                <a href=""> click here</a>
+                                <a href="{{ url('register/'.$hashids->encode($teacher_id)) }}"> click here</a>
                                 <p class="mt-2"> Thank you for your time, and we hope you find this tool as helpful as we have.</p>
                                 <p class="mt-2" style="margin: 0px;">Best regards,</p>
                                 <h4> Research Admission  </h4>

+ 67 - 0
resources/views/modal_pages/admin_invited.blade.php

@@ -0,0 +1,67 @@
+@extends('modal_pages.base')
+<style>
+    .listFlag{
+        height: 20px;
+        border-radius: 50%;
+        width: 20px;
+        margin-right: 5px;
+    }
+    .btn1{
+    background-color: #141639c4 !important; 
+    color:white !important; 
+    border-radius: 20px; 
+    box-shadow:none !important;
+    }
+    .btn1:hover{
+        background: #ffff !important;
+        color: #141639c4 !important;
+        border-radius: 20px;
+        border: 1px solid #141639c4;
+    }
+</style>
+@section('main')
+ 
+    <div class="container" style="background-color: white; border-radius: 6px;">
+        <div class="row">
+            <div class="co-md-12 p-3">
+                <form class="ajax-form" action="{{ url()->current() }}" method="POST" enctype="multipart/form-data">
+                {{ csrf_field() }}
+                    <div class="row">
+                        <div class="col-md-12">
+                            <div class="mb-3">
+                                <label class="form-label"></label>
+                                <div class="form-icon position-relative">
+                                    <input type="name" class="form-control" placeholder="Full Name" name="name" required="">
+                                </div>
+                            </div>
+                        </div>    
+                        <div class="col-lg-12" style="margin-top:-18px;">
+                            <div class="mb-3">
+                                <label class="form-label"></label>
+                                <div class="form-icon position-relative">
+                                    <input type="email" class="form-control" placeholder="Email Address" name="email" required="">
+                                </div>
+                            </div>
+                        </div><!--end col-->
+
+                        <div class="col-md-12">
+                            <div class="mt-2 text-center">
+                                <button type="submit" class="btn btn1" style="padding: 3px 18px;">
+                                    {{ __('Invite Now') }}
+                                </button>
+                            </div>
+                        </div>
+                    </div>
+                </form>  
+            </div>
+        </div> 
+    </div>  
+<script>
+    
+    $(function(){
+        // $('.select2').select2();
+        $('#modal_page_footer').hide();
+        
+    )};
+    </script>
+@endsection

+ 2 - 2
resources/views/profile.blade.php

@@ -827,8 +827,8 @@
                                                                             <td style="font-size: 11px;">{{$row->company_name}}</td>
                                                                             <td style="font-size: 11px;">{{$row->designation}}</td> 
                                                                             <td style="font-size: 11px;">{{$row->currently_working == 0 ? 'off' : 'on'}}</td> 
-                                                                            <td style="font-size: 11px;">{{date("d M, Y", strtotime($row->start_date))}}</td>
-                                                                            <td style="font-size: 11px;">{{date("d M, Y", strtotime($row->end_date))}}</td>
+                                                                            <td style="font-size: 11px;">@if(!empty($row->start_date)){{date("d M, Y", strtotime($row->start_date))}} @else @endif</td>
+                                                                            <td style="font-size: 11px;">@if(!empty($row->end_date)) {{date("d M, Y", strtotime($row->end_date))}} @else @endif</td>
                                                                             @if(profile_permission($row->student_id))
                                                                             <td class="text-center" style="width: 75px;">
                                                                                 <div class="icon_bar" style="border: none;"> 

+ 1 - 1
routes/web.php

@@ -81,7 +81,7 @@ Route::get('/home/search', [App\Http\Controllers\StudentHomeController::class,'r
 
 
 // Teacher
-
+Route::get('register-v2/{hash}', [App\Http\Controllers\HomeController::class,'wishlist_teacher_register']);
 Route::get('register-v2', [App\Http\Controllers\TeacherAuth\RegisterController::class,'showRegistrationForm']);
 Route::post('register-v2/teacher-register-v2', [App\Http\Controllers\TeacherAuth\RegisterController::class,'create'])->name('teacher-register-v2');
 Route::get('/login-v2', [App\Http\Controllers\TeacherAuth\LoginController::class,'showLoginForm']);

+ 3 - 0
sql/update.sql

@@ -115,3 +115,6 @@ ALTER TABLE `refer_users`
 
 ALTER TABLE `users`
 	Add COLUMN `is_available` INT(11) NULL DEFAULT '0' AFTER `user_type`;
+
+ALTER TABLE `users`
+	ADD COLUMN `admin_invite_id` INT(11) NULL DEFAULT NULL AFTER `wishlist_teacher_id`;