Buy your Investment's today!
- {{---
+
- Verified Buyers
- Expert Verification
- Sell From Your Home -
diff --git a/app/Http/Controllers/Admin/DashboardController.php b/app/Http/Controllers/Admin/DashboardController.php index 6d17f52..da6896f 100644 --- a/app/Http/Controllers/Admin/DashboardController.php +++ b/app/Http/Controllers/Admin/DashboardController.php @@ -34,8 +34,7 @@ class DashboardController extends Controller public function index(Request $request) { $check = checkSidebarAccess('dashboard'); - if(!$check) - { + if (!$check) { abort(404); } // dd(123); @@ -85,7 +84,7 @@ class DashboardController extends Controller $meetings = LeadTasksMeeting::where('host', auth()->user()->id)->meetings()->get(); $users = User::admins()->get(); // dd($leads); - return view('Admin.general-dashboard', compact('companyCount', 'a', 'leads', 'tasks', 'meetings','users','userCount','investingUserCount','totalProductCount')); + return view('Admin.general-dashboard', compact('companyCount', 'a', 'leads', 'tasks', 'meetings', 'users', 'userCount', 'investingUserCount', 'totalProductCount')); } public function getCommissionData(Request $request) @@ -147,10 +146,10 @@ class DashboardController extends Controller return '₹ ' . $result; } - public function personalDashboard(Request $request){ + public function personalDashboard(Request $request) + { $check = checkSidebarAccess('personal-dashboard'); - if(!$check) - { + if (!$check) { abort(404); } // dd(123); @@ -201,7 +200,7 @@ class DashboardController extends Controller $meetings = LeadTasksMeeting::where('host', (string)auth()->user()->id)->meetings()->get(); // dd($meetings); $users = User::admins()->get(); - return view('Admin.personal-dashboard', compact('companyCount', 'a', 'leads', 'tasks', 'meetings','users','userCount','investingUserCount','totalProductCount')); + return view('Admin.personal-dashboard', compact('companyCount', 'a', 'leads', 'tasks', 'meetings', 'users', 'userCount', 'investingUserCount', 'totalProductCount')); } public function editTask(Request $request) @@ -222,7 +221,7 @@ class DashboardController extends Controller return response()->json(['status' => 400, 'message' => $validationMessage]); } - $leadNotes = LeadTasksMeeting::where('id',$request->task_id)->update([ + $leadNotes = LeadTasksMeeting::where('id', $request->task_id)->update([ 'subject' => $request->subject, 'due_date' => $request->due_date, 'priority' => $request->priority, @@ -239,7 +238,8 @@ class DashboardController extends Controller }; } - public function editMeeting(Request $request){ + public function editMeeting(Request $request) + { $validator = Validator::make($request->post(), [ 'meeting_id' => 'required', 'location' => 'required', @@ -258,7 +258,7 @@ class DashboardController extends Controller return response()->json(['status' => 400, 'message' => $validationMessage]); } - $leadMeeting = LeadTasksMeeting::where('id',$request->meeting_id)->update([ + $leadMeeting = LeadTasksMeeting::where('id', $request->meeting_id)->update([ 'location' => $request->location, 'from' => $request->from, 'to' => $request->to, @@ -275,7 +275,6 @@ class DashboardController extends Controller } else { return response()->json(['status' => 400, 'message' => 'Error Creating Lead Meeting!']); }; - } public function deleteTask(Request $request) @@ -318,7 +317,8 @@ class DashboardController extends Controller } } - public function updateSingleAdminNotification(Request $request){ + public function updateSingleAdminNotification(Request $request) + { $user = User::find(auth()->user()->id); $user->notifications->where('id', $request->not_id)->markAsRead(); return response()->json(['status' => 200, 'message' => 'Notification mark as read']); @@ -335,11 +335,12 @@ class DashboardController extends Controller return $messages; } } - - public function readSpecificNotification(Request $request){ + + public function readSpecificNotification(Request $request) + { // dd($request->all()); $id = $request->id; - if($id){ + if ($id) { $notification = auth()->user()->unreadNotifications->where('id', $id)->markAsRead(); // if(!$notification){ $newUser = ''; @@ -348,37 +349,42 @@ class DashboardController extends Controller $buyerForm = ''; $contactUs = ''; $leadAssigned = ''; - foreach(getAllAdminNotifications() as $data){ - $message = $data->data['message'] ; + foreach (getAllAdminNotifications() as $data) { + $message = $data->data['message']; $created_at = $data->created_at->diffForHumans(); $id = $data->id; - if(array_key_exists('notification_type', $data->data) && $data->data['notification_type'] == 'New Users') - { - $newUser .=$this->notificationData($message, $created_at, $id); - }else if(array_key_exists('notification_type', $data->data) && $data->data['notification_type'] == 'Submitted KYC'){ - $submittedKyc .=$this->notificationData($message, $created_at, $id); - }else if(array_key_exists('notification_type', $data->data) && $data->data['notification_type'] == 'Seller Form'){ - $sellerForm .=$this->notificationData($message, $created_at, $id); - }else if(array_key_exists('notification_type', $data->data) && $data->data['notification_type'] == 'Buyer Form'){ - $buyerForm .=$this->notificationData($message, $created_at, $id); - }else if(array_key_exists('notification_type', $data->data) && $data->data['notification_type'] == 'Contact Us'){ - $contactUs .=$this->notificationData($message, $created_at, $id); - }else if(array_key_exists('notification_type', $data->data) && $data->data['notification_type'] == 'Leads Assigned'){ - $leadAssigned .=$this->notificationData($message, $created_at, $id); - + $read_at = $data->read_at; + if (array_key_exists('notification_type', $data->data) && $data->data['notification_type'] == 'New Users') { + $newUser .= $this->notificationData($message, $created_at, $id, $read_at); + } else if (array_key_exists('notification_type', $data->data) && $data->data['notification_type'] == 'Submitted KYC') { + $submittedKyc .= $this->notificationData($message, $created_at, $id, $read_at); + } else if (array_key_exists('notification_type', $data->data) && $data->data['notification_type'] == 'Seller Form') { + $sellerForm .= $this->notificationData($message, $created_at, $id, $read_at); + } else if (array_key_exists('notification_type', $data->data) && $data->data['notification_type'] == 'Buyer Form') { + $buyerForm .= $this->notificationData($message, $created_at, $id, $read_at); + } else if (array_key_exists('notification_type', $data->data) && $data->data['notification_type'] == 'Contact Us') { + $contactUs .= $this->notificationData($message, $created_at, $id, $read_at); + } else if (array_key_exists('notification_type', $data->data) && $data->data['notification_type'] == 'Leads Assigned') { + $leadAssigned .= $this->notificationData($message, $created_at, $id, $read_at); } } - $notificationStatus = array('newUser'=>$newUser,'submittedKyc'=>$submittedKyc,'sellerForm'=>$sellerForm,'buyerForm'=>$buyerForm,'contactUs'=>$contactUs,'leadAssigned'=>$leadAssigned); - return response()->json(['status'=>200,'message'=>"marked as read",'data'=>$notificationStatus]); - // } + $notificationStatus = array('newUser' => $newUser, 'submittedKyc' => $submittedKyc, 'sellerForm' => $sellerForm, 'buyerForm' => $buyerForm, 'contactUs' => $contactUs, 'leadAssigned' => $leadAssigned); + return response()->json(['status' => 200, 'message' => "marked as read", 'data' => $notificationStatus]); + // } } - return response()->json(['status'=>201,'message'=>"something error"]); + return response()->json(['status' => 201, 'message' => "something error"]); } - - public function notificationData($message, $created_at, $id){ - $data = '
- Max Dropdown
+Max Drawdown
{{ $ventureCapitalFund->max_dropdown ?? '-' }}
Category: {{$data->categorys->category_name}}
Type : {{$data->real_estate->project_type}}
| - -{{Str::limit($data->description,250)}}
diff --git a/resources/views/components/global-industrial-real-estate-product.blade.php b/resources/views/components/global-industrial-real-estate-product.blade.php index 2250b45..2d51828 100644 --- a/resources/views/components/global-industrial-real-estate-product.blade.php +++ b/resources/views/components/global-industrial-real-estate-product.blade.php @@ -12,7 +12,6 @@
Category: {{ $data->categorys->category_name }}
Type : {{$data->real_estate->project_type}}
| -Price per sqft : {{$data->real_estate->price_per_sq_ft}}
-{{ $data->real_estate->remarks }}
diff --git a/resources/views/components/global-residential-real-estate-product.blade.php b/resources/views/components/global-residential-real-estate-product.blade.php index 4937f41..a9686a3 100644 --- a/resources/views/components/global-residential-real-estate-product.blade.php +++ b/resources/views/components/global-residential-real-estate-product.blade.php @@ -11,7 +11,6 @@
Category: {{$data->categorys->category_name}}
Type : {{$data->real_estate->project_type}}
| - -{{$data->real_estate->property_location}}
diff --git a/resources/views/components/indian-commercial-real-estate-product.blade.php b/resources/views/components/indian-commercial-real-estate-product.blade.php index ae489cc..b7ef84d 100644 --- a/resources/views/components/indian-commercial-real-estate-product.blade.php +++ b/resources/views/components/indian-commercial-real-estate-product.blade.php @@ -10,7 +10,6 @@
{{$data->realEstate->property_name}}
Category: {{$data->categorys->category_name}}
- {{--Type: {{$data->realEstate->project_type}}
- -{{Str::limit($data->description,250)}}
diff --git a/resources/views/components/indian-industrial-real-estate-product.blade.php b/resources/views/components/indian-industrial-real-estate-product.blade.php index 9305945..63dd652 100644 --- a/resources/views/components/indian-industrial-real-estate-product.blade.php +++ b/resources/views/components/indian-industrial-real-estate-product.blade.php @@ -4,7 +4,6 @@ @if(count($iireAllData))
{{$ffdaData->realEstate->property_name}}
Category: {{$ffdaData->categorys->category_name}}
- {{--Type : {{$ffdaData->realEstate->project_type}}
- -{{Str::limit($ffdaData->description,250)}}