profile page updated
Cette révision appartient à :
Parent
ae8b7cb375
révision
4168799ee1
@ -27,8 +27,6 @@ public function save_profile(Request $request)
|
|||||||
$data->bio = $request->bio;
|
$data->bio = $request->bio;
|
||||||
$data->profession = $request->profession;
|
$data->profession = $request->profession;
|
||||||
$data->nationality = $request->nationality;
|
$data->nationality = $request->nationality;
|
||||||
// $data->status = $request->status;
|
|
||||||
// $data->password = Hash::make($request->fullName_bn);
|
|
||||||
$data->language = 'en';
|
$data->language = 'en';
|
||||||
|
|
||||||
if ($request->hasFile('image')) {
|
if ($request->hasFile('image')) {
|
||||||
@ -38,11 +36,11 @@ public function save_profile(Request $request)
|
|||||||
}
|
}
|
||||||
if ($data->save()) {
|
if ($data->save()) {
|
||||||
$this->setSession($data);
|
$this->setSession($data);
|
||||||
return redirect()->back()->with('success', 'Data Saved');
|
return redirect()->back()->with('success', 'Your Changes Have been Saved');
|
||||||
}
|
}
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
// dd($e);
|
// dd($e);
|
||||||
return redirect()->back()->withInput()->with('error', 'Please try again');
|
return redirect()->back()->withInput()->with('error', 'Something went wrong. Please try again');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -61,11 +59,11 @@ public function change_password(Request $request)
|
|||||||
|
|
||||||
if ($data->save()) {
|
if ($data->save()) {
|
||||||
$this->setSession($data);
|
$this->setSession($data);
|
||||||
return redirect()->back()->with('success', 'Data Saved');
|
return redirect()->back()->with('success', 'Password Have been Changed');
|
||||||
}
|
}
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
// dd($e);
|
// dd($e);
|
||||||
return redirect()->back()->withInput()->with('error', 'Please try again');
|
return redirect()->back()->withInput()->with('error', 'Something went wrong. Please try again');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -94,7 +92,7 @@ public function changeImage(Request $request)
|
|||||||
$user->image = $imageName;
|
$user->image = $imageName;
|
||||||
$user->save();
|
$user->save();
|
||||||
|
|
||||||
return redirect()->back()->with('success', 'Image changed successfully.');
|
return rredirect()->back()->with('success', 'Image changed successfully.');
|
||||||
} else {
|
} else {
|
||||||
return redirect()->back()->with('error', 'Please select a valid image file.');
|
return redirect()->back()->with('error', 'Please select a valid image file.');
|
||||||
}
|
}
|
||||||
|
|||||||
BIN
public/uploads/students/1931703132710.png
Fichier normal
BIN
public/uploads/students/1931703132710.png
Fichier normal
Fichier binaire non affiché.
|
Après Largeur: | Hauteur: | Taille: 9.2 KiB |
BIN
public/uploads/students/3021703132738.png
Fichier normal
BIN
public/uploads/students/3021703132738.png
Fichier normal
Fichier binaire non affiché.
|
Après Largeur: | Hauteur: | Taille: 71 KiB |
@ -84,10 +84,10 @@
|
|||||||
<button class="nav-link" id="nav-setting-tab" data-bs-toggle="tab" data-bs-target="#nav-setting"
|
<button class="nav-link" id="nav-setting-tab" data-bs-toggle="tab" data-bs-target="#nav-setting"
|
||||||
type="button" role="tab" aria-controls="nav-setting" aria-selected="false">Setting</button>
|
type="button" role="tab" aria-controls="nav-setting" aria-selected="false">Setting</button>
|
||||||
|
|
||||||
<button class="nav-link "><a href="{{route('studentdashboard')}}"
|
{{-- <button class="nav-link "><a href="{{route('studentdashboard')}}"
|
||||||
class="text-secondary">Dashboard</a></button>
|
class="text-secondary">Dashboard</a></button>
|
||||||
|
|
||||||
<button class="nav-link "><a href="{{route('home')}}" class="text-secondary">Home</a></button>
|
<button class="nav-link "><a href="{{route('home')}}" class="text-secondary">Home</a></button> --}}
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
@ -206,7 +206,7 @@ class="text-secondary">Dashboard</a></button>
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<label for="bio">About You</label>
|
<label for="bio">About You</label>
|
||||||
<textarea name="bio" class="form-control"
|
<textarea name="bio" class="form-control" rows="5"
|
||||||
placeholder="About Yourself">{{$student_info->bio}}</textarea>
|
placeholder="About Yourself">{{$student_info->bio}}</textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Chargement…
Référencer dans un nouveau ticket
Block a user