diff --git a/app/Http/Controllers/Admin/ManageLeadController.php b/app/Http/Controllers/Admin/ManageLeadController.php index 2a74421..940fa76 100644 --- a/app/Http/Controllers/Admin/ManageLeadController.php +++ b/app/Http/Controllers/Admin/ManageLeadController.php @@ -106,6 +106,7 @@ class ManageLeadController extends Controller public function createLead(StoreLeadRequest $request) { + // dd($request->all()); $leadCreated = $this->lead->store($request); $user = \Auth::user($request->lead_owner); $notify['message'] = "You have been assigned a new lead!"; @@ -210,4 +211,4 @@ class ManageLeadController extends Controller $Project = LeadAttachment::where('id', $id)->delete(); return response()->json(['message' => 'Attachment deleted successfully'], 200); } -} +} \ No newline at end of file diff --git a/app/Http/Requests/StoreLeadRequest.php b/app/Http/Requests/StoreLeadRequest.php index 326958f..d23e922 100644 --- a/app/Http/Requests/StoreLeadRequest.php +++ b/app/Http/Requests/StoreLeadRequest.php @@ -57,6 +57,7 @@ class StoreLeadRequest extends FormRequest 'zip_code' => 'nullable|numeric|digits:6', 'country' => 'nullable|string|max:255', 'description' => 'nullable|string', + 'lead_source' => 'nullable|string', ]; } @@ -69,4 +70,4 @@ class StoreLeadRequest extends FormRequest 'numeric' => 'The :attribute field must be numbers.' ]; } -} +} \ No newline at end of file diff --git a/app/Imports/FundImport.php b/app/Imports/FundImport.php index c959c7f..b194b84 100644 --- a/app/Imports/FundImport.php +++ b/app/Imports/FundImport.php @@ -92,7 +92,7 @@ class FundImport implements ToCollection, WithHeadingRow 'products_id' => $product->id, 'slug' => Str::slug($row['issuer']).'-'.$count+1, 'issuer' => $row['issuer'], - // 'type' => $this->fundType, + 'type' => "Global", 'fund_name' => $row['fund_name'], 'fund_type' => $row['fund_type'], 'about_issuer' => $row['about_issuer'], @@ -122,4 +122,4 @@ class FundImport implements ToCollection, WithHeadingRow } } } -} +} \ No newline at end of file diff --git a/app/Imports/RealEstateImport.php b/app/Imports/RealEstateImport.php index 42a5f76..55d1e95 100644 --- a/app/Imports/RealEstateImport.php +++ b/app/Imports/RealEstateImport.php @@ -70,6 +70,7 @@ class RealEstateImport implements ToCollection, WithHeadingRow // 'companies_id' => $row['companies_id'], 'slug' => Str::slug($row['property_name']).'-'.$count+1, 'property_name' => $row['property_name'], + 'geographic_focus' => $this->category_id == 20 ? 'Global' : ($this->category_id == 21 ? 'Global' : ($this->category_id == 22 ? 'Global' : 'India')), 'property_location' => $row['property_location'], 'project_type' => $row['project_type'], 'current_status' => $row['current_status'] ?? null, @@ -116,4 +117,4 @@ class RealEstateImport implements ToCollection, WithHeadingRow ]); } } -} +} \ No newline at end of file diff --git a/public/excel-template/LongOnlyFundsTemplate.xlsx b/public/excel-template/LongOnlyFundsTemplate.xlsx index 258291f..14e6e5d 100644 Binary files a/public/excel-template/LongOnlyFundsTemplate.xlsx and b/public/excel-template/LongOnlyFundsTemplate.xlsx differ diff --git a/resources/views/Admin/Pages/manage_leads/add_lead.blade.php b/resources/views/Admin/Pages/manage_leads/add_lead.blade.php index 229a581..252327c 100644 --- a/resources/views/Admin/Pages/manage_leads/add_lead.blade.php +++ b/resources/views/Admin/Pages/manage_leads/add_lead.blade.php @@ -116,11 +116,22 @@