|
@@ -451,6 +451,33 @@ class pros_SINGLE_Controller extends Controller
|
|
|
return response()->view('admin/pros_SINGLE/ACTION_putCompany', compact('record'), session('message') ? 500 : 200)->header('Content-Type', 'text/html');
|
|
|
}
|
|
|
|
|
|
+ public function ACTION_putSlug(Request $request, $uid) {
|
|
|
+ $record = DB::table('pro')->where('uid', $uid)->first();
|
|
|
+ if(!$record) {
|
|
|
+ $record = DB::table('pro')->where('id', $uid)->first();
|
|
|
+ if($record) return redirect('/pros/view/' . $record->uid . '/ACTION_putSlug');
|
|
|
+ }
|
|
|
+ return response()->view('admin/pros_SINGLE/ACTION_putSlug', compact('record'), session('message') ? 500 : 200)->header('Content-Type', 'text/html');
|
|
|
+ }
|
|
|
+
|
|
|
+ public function ACTION_updateProfileImage(Request $request, $uid) {
|
|
|
+ $record = DB::table('pro')->where('uid', $uid)->first();
|
|
|
+ if(!$record) {
|
|
|
+ $record = DB::table('pro')->where('id', $uid)->first();
|
|
|
+ if($record) return redirect('/pros/view/' . $record->uid . '/ACTION_updateProfileImage');
|
|
|
+ }
|
|
|
+ return response()->view('admin/pros_SINGLE/ACTION_updateProfileImage', compact('record'), session('message') ? 500 : 200)->header('Content-Type', 'text/html');
|
|
|
+ }
|
|
|
+
|
|
|
+ public function ACTION_updateProfileData(Request $request, $uid) {
|
|
|
+ $record = DB::table('pro')->where('uid', $uid)->first();
|
|
|
+ if(!$record) {
|
|
|
+ $record = DB::table('pro')->where('id', $uid)->first();
|
|
|
+ if($record) return redirect('/pros/view/' . $record->uid . '/ACTION_updateProfileData');
|
|
|
+ }
|
|
|
+ return response()->view('admin/pros_SINGLE/ACTION_updateProfileData', compact('record'), session('message') ? 500 : 200)->header('Content-Type', 'text/html');
|
|
|
+ }
|
|
|
+
|
|
|
// GET /pros/view/{uid}/SUB_dashboard
|
|
|
public function SUB_dashboard(Request $request, $uid) {
|
|
|
$record = DB::table('pro')->where('uid', $uid)->first();
|