Shah Rakibur Rahaman 2 лет назад
Родитель
Сommit
8e0c35340b

+ 3 - 67
app/Http/Controllers/Admin/AdminController.php

@@ -23,8 +23,8 @@ class AdminController extends Controller
     public function dashboard()
     {
         $admin = Auth::guard('admin')->user();
-        $register_teachers_list =User::whereIn(
-                'status',[0,2]
+        $register_teachers_list =User::where(
+                'status',0
             )->where(
                 'user_type',2
             )->orderBy(
@@ -46,69 +46,5 @@ class AdminController extends Controller
         return view('admin.admin_profile',$data);
     }
 
-    /**
-     * Show the form for creating a new resource.
-     *
-     * @return \Illuminate\Http\Response
-     */
-    public function create()
-    {
-        //
-    }
-
-    /**
-     * Store a newly created resource in storage.
-     *
-     * @param  \Illuminate\Http\Request  $request
-     * @return \Illuminate\Http\Response
-     */
-    public function store(Request $request)
-    {
-        //
-    }
-
-    /**
-     * Display the specified resource.
-     *
-     * @param  int  $id
-     * @return \Illuminate\Http\Response
-     */
-    public function show($id)
-    {
-        //
-    }
-
-    /**
-     * Show the form for editing the specified resource.
-     *
-     * @param  int  $id
-     * @return \Illuminate\Http\Response
-     */
-    public function edit($id)
-    {
-        //
-    }
-
-    /**
-     * Update the specified resource in storage.
-     *
-     * @param  \Illuminate\Http\Request  $request
-     * @param  int  $id
-     * @return \Illuminate\Http\Response
-     */
-    public function update(Request $request, $id)
-    {
-        //
-    }
-
-    /**
-     * Remove the specified resource from storage.
-     *
-     * @param  int  $id
-     * @return \Illuminate\Http\Response
-     */
-    public function destroy($id)
-    {
-        //
-    }
+    
 }

+ 13 - 4
app/Http/Controllers/AjaxController.php

@@ -64,12 +64,21 @@ class AjaxController extends Controller
 
 		}elseif($name=="teacher_user_status_change"){
 
-            $data =User::find($req->id);
-            $data->status =$req->status;
-            $data->update();
+            $teacher =User::find($req->id);
+            $teacher->status =$req->status;
+            $teacher->update();
+
+            // $data['name'] = $teacher->first_name.' '.$teacher->last_name;  
+            // $user_mail = $teacher->email;
+            // $from = 'test@mail.com'; 
+
+            // Mail::send('email.send_apply_student_teacher_email',$data, function ($message) use ($user_mail,$from) {
+            //     $message->from($from);
+            //     $message->to($user_mail)->subject('New Email Send to you');
+            // });
 
             return response(
-                ['msg'=>'Status successfully changed.']
+                ['msg'=>'Your login permission successfully updated.']
             );
 
         }  

+ 13 - 2
app/Http/Controllers/TeacherAuth/RegisterController.php

@@ -69,7 +69,7 @@ class RegisterController extends Controller
     protected function create(Request $req)
     {
 
-        $data = User::create([
+        $user_data = User::create([
             'first_name' => $req->firstname,
             'last_name' => $req->lastname,
             'password' => Hash::make($req->password),
@@ -82,7 +82,18 @@ class RegisterController extends Controller
             'user_type' => $req->user_type,
             'ref_no' => name_initials($req->firstname,$req->lastname).''.teacherRefNoGenerate(),
         ]);
-       Mail::to('test@mail.com')->send(new SignUp($data->id));
+
+       //Mail::to('test@mail.com')->send(new SignUp($data->id));
+
+        // $data['name'] = $user_data->first_name.' '.$user_data->last_name;  
+        // $user_mail = $user_data->email;
+        // $from = 'test@mail.com'; 
+
+        // Mail::send('email.send_apply_student_teacher_email',$data, function ($message) use ($user_mail,$from) {
+        //     $message->from($from);
+        //     $message->to($user_mail)->subject('New Email Send to you');
+        // });
+
         return redirect()->to("/login-v2");
 
     }

+ 6 - 3
resources/views/admin/admin_profile.blade.php

@@ -727,8 +727,8 @@ tbody, td, tfoot, th, thead, tr {
                                                     <strong style="font-size: 12px;">Australia</strong>
                                                 </div>
                                             </div>
-                                            <div class="box add_destination open_modal_page" data-url="{{route('modal-get',['name'=>'add_destination'])}}">
-                                                <div class="flag_country">
+                                            <div class="box add_destination">
+                                                <div class="flag_country open_modal_page" data-title="Add Destination" data-url="{{route('modal-get',['name'=>'add_destination'])}}">
                                                     <i class="fa fa-plus" style="display: block; margin-bottom: 12px; color: #818084;"></i>
                                                     <strong style="font-size: 12px;">Add / Remove</strong>
                                                 </div>
@@ -743,9 +743,12 @@ tbody, td, tfoot, th, thead, tr {
             </div><!--end col-->
         </div><!--end row-->
     </div><!--end container-->
+    
 </section><!--end section-->
 
 
+
+
       <script src="{{asset('web/js/bootstrap.bundle.min.js')}}"></script>
       <!-- tobii js -->
       <script src="{{asset('web/js/tobii.min.js')}}"></script>
@@ -771,7 +774,7 @@ tbody, td, tfoot, th, thead, tr {
     <script src="{{ asset('css/flatpickr/dist/flatpickr.min.js') }}"></script>
     <script src="{{ asset('css/wait-me/waitMe.min.js')}}"></script>
 
-
+    @include('web.layouts.modal')
     <script>
         function pop_up_msg(msg='No message specified', type='success', callback=null){ 
             new Noty({

+ 1 - 1
resources/views/home.blade.php

@@ -125,7 +125,7 @@
                                                         <td style="font-size: 11px;">{{date('d M Y', strtotime($row->created_at))}}</td> 
                                                         <td style="text-align:center; font-size: 11px;"><span class="label_badge_radius" style="background-color: #d8fdd8; color: green;">Applied</span></td>
                                                         <td style="text-align:center; font-size: 11px;">
-                                                           <span class="open_modal_page hand" data-url="{{route('modal-get',['name'=>'view_apply_proposal','id'=>$row->id])}}"><i class="fa fa-eye"></i></span> 
+                                                           <span class="open_modal_page hand" data-toogle="tooltips" title="View" data-title="Application Proposal Details" data-url="{{route('modal-get',['name'=>'view_apply_proposal','id'=>$row->id])}}"><i class="fa fa-eye"></i></span> 
                                                         </td>
                                                     </tr>
                                                     @endforeach