fix changes

This commit is contained in:
Ritikesh yadav
2024-04-05 19:30:15 +05:30
parent 55b3732f5d
commit 29d23ba647
20 changed files with 893 additions and 382 deletions

View File

@@ -384,6 +384,7 @@ class ManageFreeUInvestmentController extends Controller
3 => ['id' => Category::GlobalPrivateEquityFundId, 'file' => 'InternationalPrivateEquityFundTemplate'],
4 => ['id' => Category::GlobalVentureDebtId, 'file' => 'RealEstateInvestmentTrustsTemplate'],
5 => ['id' => Category::GlobalHedgeFundId, 'file' => 'InternationalHedgeFundTemplate'],
6 => ['id' => Category::GlobalPrivateCreditFundId, 'file' => 'PrivateCreditTemplate'],
];
if (!array_key_exists($id, $exchangeData)) {
@@ -410,7 +411,7 @@ class ManageFreeUInvestmentController extends Controller
public function viewFund($id)
{
$fund = Product::with('category', 'funds.returns','product_images')->funds()->find($id);
$fund = Product::with('category', 'funds.returns', 'product_images')->funds()->find($id);
// dd($fund);
return view('Admin.Pages.manage_freeu_investment.view-product.funds', compact('fund'));
}
@@ -419,7 +420,7 @@ class ManageFreeUInvestmentController extends Controller
{
// $categories = Category::all();
// $products = Product::with('category', 'fractional_real_estate.companies')->fractionalrealestate()->find($id);
$fund = Product::with('category', 'funds.returns','product_images')->funds()->find($id);
$fund = Product::with('category', 'funds.returns', 'product_images')->funds()->find($id);
// dd($fund);
return view('Admin.Pages.manage_freeu_investment.edit-product.funds', compact('fund'));
}
@@ -505,9 +506,9 @@ class ManageFreeUInvestmentController extends Controller
}
if ($request->hasFile('images')) {
// dd($request->hasFile('images'));
// dd($request->hasFile('images'));
// $edit_program_images = ProgramImage::where('programs_xid', $program_id)->delete();
foreach ($request->file('images') as $key => $file) {
$filename = date('YmdHi') . '_' . $file->getClientOriginalName();
$file->move(public_path('assets/uploads/fund_images'), $filename);
@@ -545,14 +546,15 @@ class ManageFreeUInvestmentController extends Controller
return response()->json(['status' => 200, 'message' => 'Fund Updated Successfully']);
}
public function delete_fund_image(Request $request){
public function delete_fund_image(Request $request)
{
$image = ProductImage::find($request->image_id);
$previous_image = public_path($image->images);
File::delete($previous_image);
$image->id = $request->image_id;
$image->delete();
return response()->json(['success' => true, 'status' => 200]);
// dd("requ",$request->all());
// dd("requ",$request->all());
}
@@ -744,7 +746,7 @@ class ManageFreeUInvestmentController extends Controller
public function viewRealEstate($id)
{
// $products = Product::with('category', 'fractional_real_estate.companies')->fractionalrealestate()->find($id);
$products = Product::with('category', 'realEstates','product_images')->realestates()->find($id);
$products = Product::with('category', 'realEstates', 'product_images')->realestates()->find($id);
// dd($products);
return view('Admin.Pages.manage_freeu_investment.view-product.real-estate', compact('products'));
}
@@ -752,7 +754,7 @@ class ManageFreeUInvestmentController extends Controller
public function editRealEstateProduct($id)
{
$categories = Category::all();
$products = Product::with('category', 'realEstates','product_images')->realestates()->find($id);
$products = Product::with('category', 'realEstates', 'product_images')->realestates()->find($id);
return view('Admin.Pages.manage_freeu_investment.edit-product.real-estate', compact('products', 'categories'));
}
@@ -877,7 +879,7 @@ class ManageFreeUInvestmentController extends Controller
if ($request->hasFile('images')) {
// dd($request->hasFile('images'));
// $edit_program_images = ProgramImage::where('programs_xid', $program_id)->delete();
// $edit_program_images = ProgramImage::where('programs_xid', $program_id)->delete();
foreach ($request->file('images') as $key => $file) {
$filename = date('YmdHi') . '_' . $file->getClientOriginalName();
@@ -889,8 +891,6 @@ class ManageFreeUInvestmentController extends Controller
$realEstate->save();
}
}
return response()->json(['status' => 200, 'message' => 'Real Estate Updated Successfully']);
@@ -1194,11 +1194,11 @@ class ManageFreeUInvestmentController extends Controller
{
// $categories = Category::all();
// $products = Product::with('category', 'fractional_real_estate.companies')->fractionalrealestate()->find($id);
$fractionalRealEstate = Product::with('category', 'fractional_real_estate','product_images')->fractionalrealestate()->find($id);
$fractionalRealEstate = Product::with('category', 'fractional_real_estate', 'product_images')->fractionalrealestate()->find($id);
return view('Admin.Pages.manage_freeu_investment.edit-product.fractional-real-estate', compact('fractionalRealEstate'));
}
public function updateFractionalRealEstateProduct(Request $request,$id)
public function updateFractionalRealEstateProduct(Request $request, $id)
{
$request->validate([
'property_name_and_location' => 'required'

View File

@@ -0,0 +1,108 @@
<?php
namespace App\Http\Controllers\Admin\ManageFreeUInvestments;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Models\Category;
use Maatwebsite\Excel\Facades\Excel;
use App\Imports\AlternativeInvestmentFundImport;
use Illuminate\Support\Str;
use App\Models\AlternativeInvestmentFund;
use App\Models\Product;
use App\Models\Company;
use App\Models\ProductImage;
use Illuminate\Support\Facades\Validator;
class LongOnlyEquityFundController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
//
}
/**
* Show the form for creating a new resource.
*
* @return \Illuminate\Http\Response
*/
public function create()
{
$category = Category::find(Category::LongOnlyFundId);
$text = $category->category_name;
$category_id = $category->id;
$excelFileName = 'LongOnlyFundsTemplate.xlsx';
return view('Admin.Pages.manage_freeu_investment.upload-product.alternative-investment-fund', compact('text', 'category_id', 'excelFileName'));
}
/**
* Store a newly created resource in storage.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function store(Request $request)
{
request()->validate([
'productFile' => 'required|mimes:xlx,xls,xlsx|max:2048'
]);
$category_type = $request->category_id;
$category = Category::find($request->category_id);
Excel::import(new AlternativeInvestmentFundImport($category_type), $request->file('productFile'));
// return back()->with('success', "$category->category_name Imported Successfully.");
return back()->with('success', "$category->category_name Imported Successfully.");
}
/**
* Display the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function show($id)
{
$alternativeInvestmentFund = Product::with('category', 'alternativeInvestmentFund','product_images')->alternativeInvestmentFund()->find($id);
// dd(Product::find($id));
// dd($alternativeInvestmentFund);
return view('Admin.Pages.manage_freeu_investment.view-product.alternative-investment-fund', compact('alternativeInvestmentFund'));
}
/**
* 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)
{
//
}
}

View File

@@ -0,0 +1,95 @@
<?php
namespace App\Http\Controllers\Admin\ManageFreeUInvestments;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Models\Category;
use Maatwebsite\Excel\Facades\Excel;
use App\Imports\AlternativeInvestmentFundImport;
use Illuminate\Support\Str;
use App\Models\AlternativeInvestmentFund;
use App\Models\Product;
class PrivateCreditFundController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
//
}
/**
* Show the form for creating a new resource.
*
* @return \Illuminate\Http\Response
*/
public function create()
{
$category = Category::find(Category::PrivateCreditFundId);
$text = $category->category_name;
$category_id = $category->id;
$excelFileName = 'PrivateCreditTemplate.xlsx';
return view('Admin.Pages.manage_freeu_investment.upload-product.alternative-investment-fund', compact('text', 'category_id','excelFileName'));
}
/**
* 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)
{
//
}
}

View File

@@ -22,6 +22,7 @@ use App\Models\VentureDebt;
use App\Http\Controllers\Controller;
use App\Notifications\UserAdmin;
use Illuminate\Support\Facades\Validator;
use Session;
class HomeController extends Controller
{
@@ -33,6 +34,18 @@ class HomeController extends Controller
]);
}
public function checkRiskDisclosure(Request $request)
{
// dd($request->all());
session()->forget('risk_disclosure');
$checkRiskDisclosure = $request->checked_risk_disclosure == 'true' ? Session::put('risk_disclosure', 'true') : Session::put('risk_disclosure', 'false');
// dd(Session::get('risk_disclosure'));
if(Session::get('risk_disclosure') == 'true')
{
return response()->json(['status'=>200]);
}
}
public function getAllTopPickProducts()
{
$data['data'] = Product::getAllDetails()->where('top_pick', true)->get();

View File

@@ -4,6 +4,7 @@ namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Controllers\Admin\ManageFreeUInvestments\FractionalRealEstateController as FractionalRealEstateFrontendController;
use App\Models\Product;
class GlobalPrivateCreditController extends Controller
{
@@ -12,8 +13,8 @@ class GlobalPrivateCreditController extends Controller
$learnMore = (new FractionalRealEstateFrontendController)->globalPCFQuestionAndAnswer()->getData();
return view('Frontend.Pages.dummy.global-private-credit',[
'learnMore'=>$learnMore,
// 'openGPCF'=>$learnMore,
// 'resaleGPCF'=>$learnMore,
'openGPCF'=> Product::has('alternativeInvestmentFund')->with('alternativeInvestmentFund.companies','categorys')->globalPrivateCreditFund()->open()->active()->latest()->get(),
'resaleGPCF'=> Product::has('alternativeInvestmentFund')->with('alternativeInvestmentFund.companies','categorys')->globalPrivateCreditFund()->resale()->active()->latest()->get(),
]);
}
}

View File

@@ -0,0 +1,84 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class LongOnlyEquityFundController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
//
}
/**
* 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)
{
//
}
}

View File

@@ -52,7 +52,7 @@ class AlternativeInvestmentFundImport implements ToCollection, WithHeadingRow
public function collection(Collection $rows)
{
Validator::make($rows->toArray(), $this->rules(), $this->customValidationMessages($rows))->validate();
// dd($rows);
foreach ($rows as $row) {
$product = Product::create([
'tables_id' => Table::AlternativeInvestmentFundTable,
@@ -62,7 +62,7 @@ class AlternativeInvestmentFundImport implements ToCollection, WithHeadingRow
'created_by' => auth()->user()->id
]);
AlternativeInvestmentFund::create([
'products_id' => $product->id,
'slug' => Str::slug($row['name_of_the_fund']),

View File

@@ -92,7 +92,7 @@ class Category extends Model
const PrivateCreditFundId = 41;
// const LongOnlyFundId= 40; // id of row
const GlobalPrivateCreditFundId= 43;
public function scopeActive($query)
{

View File

@@ -185,6 +185,11 @@ class Product extends Model
return $query->where(['tables_id' => 12, 'categories_id' => 40]);
}
public function scopeGlobalPrivateCreditFund($query)
{
return $query->where('categories_id', 43);
}
public function scopeInfrastructureFund($query)
{
return $query->where(['tables_id' => 12, 'categories_id' => 29]);

View File

@@ -0,0 +1,31 @@
<?php
namespace App\View\Components;
use Illuminate\View\Component;
class GlobalPrivateCreditFundProduct extends Component
{
/**
* Create a new component instance.
*
* @return void
*/
public $gpcfAllData, $type;
public function __construct($gpcfData, $type)
{
$this->gpcfAllData = $gpcfData;
$this->type = $type;
}
/**
* Get the view / contents that represent the component.
*
* @return \Illuminate\Contracts\View\View|\Closure|string
*/
public function render()
{
return view('components.global-private-credit-fund-product');
}
}

View File

@@ -107,8 +107,10 @@ function routeForHandpickedInvestment($categoryId)
Category::PrivateEquityFundId => 'alternative-investment-fund.private-equity-fund-product',
Category::GlobalPrivateEquityFundId => 'alternative-investment-fund.private-equity-fund-product',
Category::PrivateCreditFundId => 'alternative-investment-fund.private-credit-fund-product',
Category::GlobalPrivateCreditFundId => 'alternative-investment-fund.private-credit-fund-product',
Category::PrivateRealEstateFundId => 'alternative-investment-fund.private-real-estate-fund-product',
Category::HedgeFundId => 'alternative-investment-fund.hedge-fund-product',
Category::LongOnlyFundId => 'alternative-investment-fund.hedge-fund-product',
Category::PrivateInvestmentInPublicEquityFundId => 'alternative-investment-fund.private-investment-public-equity-product',
Category::SovereignGovernmentBondId => 'bonds.product',
Category::GlobalMutualFundId => 'mutual-funds.product',
@@ -335,14 +337,14 @@ function getCategoryIcons($categoryId)
"public/assets/media/FrontendImages/private.svg" => Category::PrivateRealEstateFundId,
"public/assets/media/FrontendImages/bay-arrow.svg" => Category::LongOnlyFundId,
"public/assets/media/FrontendImages/Infr-funds.svg" => Category::InfrastructureFundId,
// "public/assets/media/FrontendImages/cradit-funds.svg" => Category::PrivateCreditFundId,
"public/assets/media/FrontendImages/cradit-funds.svg" => 40,
"public/assets/media/FrontendImages/cradit-funds.svg" => Category::PrivateCreditFundId,
// "public/assets/media/FrontendImages/cradit-funds.svg" => 40,
"public/assets/media/FrontendImages/equity-funds.svg" => Category::PrivateEquityFundId,
"public/assets/media/FrontendImages/angel-funds.svg" => Category::AngelFundId,
"public/assets/media/FrontendImages/stra-fund.svg" => Category::HedgeFundId,
"public/assets/media/FrontendImages/pipe-funds.svg" => Category::PrivateInvestmentInPublicEquityFundId,
"public/assets/media/FrontendImages/stra-fund.svg" => Category::GlobalHedgeFundId, //global product icons start from here
// "public/assets/media/FrontendImages/cradit-funds.svg" => Category::GlobalPrivateCreditFundId,
"public/assets/media/FrontendImages/cradit-funds.svg" => Category::GlobalPrivateCreditFundId,
"public/assets/media/FrontendImages/equity-funds.svg" => Category::GlobalPrivateEquityFundId,
"public/assets/media/FrontendImages/capital-funds.svg" => Category::GlobalVentureCapitalFundId,
"public/assets/media/FrontendImages/login-img/alternative.svg" => Category::IndianIndustrialRealEstateID, // indain real estate start from here

Binary file not shown.

Binary file not shown.

View File

@@ -77,8 +77,8 @@
<ul class="dropdown-menu">
<li><a href="{{ route('manage.private-equity-fund.create') }}"
class="dropdown-item">Private Equity Fund</a></li>
<li><a href="{{ route('manage.debt-fund.create') }}"
class="dropdown-item">Debt Fund</a></li>
<li><a href="{{ route('manage.private-credit-fund.create') }}"
class="dropdown-item">Private Credit Fund</a></li>
<li><a href="{{ route('manage.fund-for-distressed-asset.create') }}"
class="dropdown-item">Fund for Distressed Asset</a></li>
<li><a href="{{ route('manage.private-real-estate-fund.create') }}"
@@ -94,6 +94,8 @@
<li><a href="{{ route('manage.pipe-fund.create') }}"
class="dropdown-item">Private Investment in Public
Equity Fund(PIPE)</a></li>
<li><a href="{{ route('manage.long-only-equity-fund.create') }}"
class="dropdown-item">Long Only Equity Fund</a></li>
</ul>
</li>
</ul>
@@ -130,6 +132,9 @@
<li><a tabindex="-1" class="dropdown-item"
href="{{ route('manage.uploadVentureCapitalFunds') }}">Venture Capital
Funds</a></li>
<li><a tabindex="-1" class="dropdown-item"
href="{{ route('manage.uploadPrivateCreditFunds') }}">Private Credit
Funds</a></li>
<li><a tabindex="-1" class="dropdown-item"
href="{{ route('manage.uploadPrivateEquityFunds') }}">Private Equity
Funds</a></li>

View File

@@ -161,6 +161,8 @@
</div>
<x-learn-more :learnMore="$learnMore" />
<div id="investments"></div>
<x-global-private-credit-fund-product :gpcfData="$openGPCF" id="open_investments" :type="$type = 'Primary Offerings'" />
<x-global-private-credit-fund-product :gpcfData="$resaleGPCF" id="resale" :type="$type = 'Secondary Offerings'" />
<!--<div class="investment">-->
<!-- <div class="container">-->
<!-- <h2>Open Investments</h2>-->

View File

@@ -1094,397 +1094,492 @@
</div>
</div>
</div> --}}
{{-- modal warning popup modal start --}}
<!-- Modal -->
<div class="modal fade" id="warningModal" tabindex="-1" role="dialog" aria-labelledby="warningModalTitle"
aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<form id="risk_disclosure" method="POST">
@csrf
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLongTitle">Risk Disclosure</h5>
{{-- <a href="www.google.com" target=""> --}}
<button type="button" class="close close_btn" data-bs-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
{{-- </a> --}}
</div>
<div class="modal-body">
<input type="checkbox" name="checked_risk_disclosure" value="true"
id="checked_risk_disclosure" required>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary close_btn" data-bs-dismiss="modal">Close</button>
<button type="submit" class="btn btn-primary">Accept</button>
</div>
</form>
</div>
</div>
</div>
{{-- modal warning popup modal end --}}
<input type="hidden" name="asset_type" id="asset_type_input">
<input type="hidden" name="check_user_login" id="check_user_login"
value="{{ auth()->guard('users')->check() == true ? '1' : '0' }}">
<input type="hidden" name="geographic_focus" id="geographic_focus_input">
<input type="hidden" name="investment_type" id="investment_type_input">
<input type="hidden" name="investment_strategy" id="investment_strategy_input">
@endsection()
@section('scripts')
<script>
$(function() {
$(`.india-financial-assets,.global-financial-assets, .india-real-estate, .global-real-estate `)
.addClass('d-none');
$(`.india-financial-assets-managed-funds-growth`).removeClass('d-none');
$('#asset_type_input').val('financial-assets')
$('#geographic_focus_input').val('india')
$('#investment_type_input').val('managed-funds')
$('#investment_strategy_input').val('growth')
})
<a href="http://www.google.com" target="_blank" class="d-none redirect_page">
<input type="hidden" name="check_risk_disclosure_session" id="check_risk_disclosure_session"
value="{{ Session::has('risk_disclosure') == true ? Session::get('risk_disclosure') : 'false' }}">
@endsection()
@section('scripts')
<script>
$(document).ready(function() {
// var firstTime = true;
var checkLogin = $('#check_user_login').val();
var checkSession = $('#check_risk_disclosure_session').val();
// alert(checkSession);
setInterval(function() {
// alert('Hello');
// if (true) {
if (checkLogin == '0' && checkSession == 'false') {
// firstTime = false;
$('#warningModal').modal('show');
}
// }
}, 3000);
});
$('.parent-filter').click(function() {
let id = this.id;
// alert(id);
$('.close_btn').on('click', function() {
window.location.href = $('.redirect_page').attr('href');
// alert('close');
})
if (id == 'financial-assets' || id == 'real-assets') {
if (id == 'real-assets') {
$('#investment_type_input').val('')
$('#investment_strategy_input').val('')
$('#risk_disclosure').validate({
ignore: [],
debug: false,
rules: {
checked_risk_disclosure: {
required: true,
},
},
messages: {
checked_risk_disclosure: {
required: "Please check the Term & Condition to move forward",
},
},
submitHandler: function(form) {
var formData = new FormData(form);
$.ajax({
url: "http://localhost/jericho_28_march/check-risk-disclosure",
type: 'post',
data: formData,
dataType: 'json',
contentType: false,
processData: false,
success: function(result) {
if (result.status == 200) {
// toastr.success(result.message);
$('#warningModal').modal('hide');
location.reload();
}
// } else {
// // toastr.warning(result.message);
// }
}
})
}
if (id == 'financial-assets') {
$('#investment_type_input').val('managed-funds')
}
$('#asset_type_input').val(id)
assetTypeFilter(id)
});
}
if (id == 'india' || id == 'global') {
$('#geographic_focus_input').val(id)
geographicFilter(id)
}
if (id == 'managed-funds' || id == 'direct-investment-opportunities') {
// alert(id)
$(function() {
$(`.india-financial-assets,.global-financial-assets, .india-real-estate, .global-real-estate `)
.addClass('d-none');
$(`.india-financial-assets-managed-funds-growth`).removeClass('d-none');
$('#asset_type_input').val('financial-assets')
$('#geographic_focus_input').val('india')
$('#investment_type_input').val('managed-funds')
// $('#investment_type_input').val(id)
investmentTypeFilter(id)
}
$('#investment_strategy_input').val('growth')
})
if (id == 'growth' || id == 'income' || id == 'hybrid') {
$('#investment_strategy_input').val(id)
investmentStrategyFilter(id)
}
})
$('.parent-filter').click(function() {
let id = this.id;
// alert(id);
function assetTypeFilter(type) {
// alert(type);
if (type == null) {
return;
}
$(`#financial-assets , #real-assets`).removeClass('active');
$(`#${type}`).addClass('active');
let geography = $('#geographic_focus_input').val();
let investmentType = $('#investment_type_input').val();
// let investmentType = $('#investment_type_input').val();
let investmentStrategy = $('#investment_strategy_input').val();
// alert(investmentType);
if (type == 'financial-assets') {
$('.investment-type, .investment-strategy').removeClass('d-none');
$('.india-financial-assets, .global-financial-assets').removeClass('d-none');
$('.india-real-estate, .global-real-estate').addClass('d-none');
if (geography) {
$('.india-financial-assets, .global-financial-assets').addClass('d-none');
$(`.${geography}-financial-assets`).removeClass('d-none')
if (id == 'financial-assets' || id == 'real-assets') {
if (id == 'real-assets') {
$('#investment_type_input').val('')
$('#investment_strategy_input').val('')
}
if (id == 'financial-assets') {
$('#investment_type_input').val('managed-funds')
}
$('#asset_type_input').val(id)
assetTypeFilter(id)
}
if (id == 'india' || id == 'global') {
$('#geographic_focus_input').val(id)
geographicFilter(id)
}
if (investmentType) {
$('.financial-assets-managed-funds, .financial-assets-direct-investment-opportunities').addClass(
'd-none');
$(`.financial-assets-${investmentType}`).removeClass('d-none')
// $('#managed-funds').removeClass('inactive')
$('#managed-funds').addClass('active')
if (id == 'managed-funds' || id == 'direct-investment-opportunities') {
// alert(id)
$('#investment_type_input').val('managed-funds')
// $('#investment_type_input').val(id)
investmentTypeFilter(id)
}
if (geography && investmentType) {
$('.india-financial-assets-managed-funds, .india-financial-assets-direct-investment-opportunities, .global-financial-assets-direct-investment-opportunities, .global-financial-assets-managed-funds')
.addClass('d-none');
$(`.${geography}-financial-assets-${investmentType}`).removeClass('d-none')
// $('#managed-funds').removeClass('inactive');
// $('#managed-funds').addClass('active');
if (id == 'growth' || id == 'income' || id == 'hybrid') {
$('#investment_strategy_input').val(id)
investmentStrategyFilter(id)
}
})
if (investmentStrategy) {
$('.india-growth, .global-growth, .india-income, .global-growth, .india-hybrid, .global-hybrid')
.addClass('d-none');
$(`.india-${investmentStrategy}, .global-${investmentStrategy}`).removeClass('d-none');
function assetTypeFilter(type) {
// alert(type);
if (type == null) {
return;
}
$(`#financial-assets , #real-assets`).removeClass('active');
$(`#${type}`).addClass('active');
let geography = $('#geographic_focus_input').val();
let investmentType = $('#investment_type_input').val();
// let investmentType = $('#investment_type_input').val();
let investmentStrategy = $('#investment_strategy_input').val();
// alert(investmentType);
if (type == 'financial-assets') {
$('.investment-type, .investment-strategy').removeClass('d-none');
$('.india-financial-assets, .global-financial-assets').removeClass('d-none');
$('.india-real-estate, .global-real-estate').addClass('d-none');
if (geography) {
$('.india-financial-assets, .global-financial-assets').addClass('d-none');
$(`.${geography}-financial-assets`).removeClass('d-none')
}
if (investmentType) {
$('.financial-assets-managed-funds, .financial-assets-direct-investment-opportunities').addClass(
'd-none');
$(`.financial-assets-${investmentType}`).removeClass('d-none')
// $('#managed-funds').removeClass('inactive')
$('#managed-funds').addClass('active')
}
if (geography && investmentType) {
$('.india-financial-assets-managed-funds, .india-financial-assets-direct-investment-opportunities, .global-financial-assets-direct-investment-opportunities, .global-financial-assets-managed-funds')
.addClass('d-none');
$(`.${geography}-financial-assets-${investmentType}`).removeClass('d-none')
// $('#managed-funds').removeClass('inactive');
// $('#managed-funds').addClass('active');
}
if (investmentStrategy) {
$('.india-growth, .global-growth, .india-income, .global-growth, .india-hybrid, .global-hybrid')
.addClass('d-none');
$(`.${geography}-${investmentStrategy}`).removeClass('d-none');
$(`.india-${investmentStrategy}, .global-${investmentStrategy}`).removeClass('d-none');
if (geography) {
$('.india-growth, .global-growth, .india-income, .global-growth, .india-hybrid, .global-hybrid')
.addClass('d-none');
$(`.${geography}-${investmentStrategy}`).removeClass('d-none');
}
}
}
if (type == 'real-assets') {
$(`#managed-funds , #direct-investment-opportunities, #growth, #income, #hybrid`).removeClass('active');
$('.india-real-estate, .global-real-estate').removeClass('d-none');
$('.investment-type, .investment-strategy').addClass('d-none');
$('.india-financial-assets, .global-financial-assets').addClass('d-none');
$('.india-direct-investment-opportunities, .global-direct-investment-opportunities').addClass('d-none')
$('.india-managed-funds, .global-managed-funds').addClass('d-none')
if (geography) {
$('.india-real-estate, .global-real-estate').addClass('d-none');
$(`.${geography}-real-estate`).removeClass('d-none')
}
}
}
if (type == 'real-assets') {
$(`#managed-funds , #direct-investment-opportunities, #growth, #income, #hybrid`).removeClass('active');
$('.india-real-estate, .global-real-estate').removeClass('d-none');
$('.investment-type, .investment-strategy').addClass('d-none');
$('.india-financial-assets, .global-financial-assets').addClass('d-none');
$('.india-direct-investment-opportunities, .global-direct-investment-opportunities').addClass('d-none')
$('.india-managed-funds, .global-managed-funds').addClass('d-none')
if (geography) {
$('.india-real-estate, .global-real-estate').addClass('d-none');
$(`.${geography}-real-estate`).removeClass('d-none')
function geographicFilter(type = null) {
if (type == null) {
return;
}
}
}
$(`#india , #global`).removeClass('active');
$(`#${type}`).addClass('active');
let assetType = $('#asset_type_input').val();
let investmentType = $('#investment_type_input').val();
let investmentStrategy = $('#investment_strategy_input').val();
function geographicFilter(type = null) {
if (type == null) {
return;
}
$(`#india , #global`).removeClass('active');
$(`#${type}`).addClass('active');
let assetType = $('#asset_type_input').val();
let investmentType = $('#investment_type_input').val();
let investmentStrategy = $('#investment_strategy_input').val();
if (type == 'india') {
$('.india-financial-assets, .india-managed-funds, .india-real-estate, .india-direct-investment-opportunities, .india-financial-assets-managed-funds, .india-financial-assets-direct-investment-opportunities')
.removeClass('d-none');
$('.global-financial-assets, .global-managed-funds, .global-real-estate , .global-direct-investment-opportunities, .global-financial-assets-managed-funds, .global-financial-assets-direct-investment-opportunities')
.addClass('d-none');
if (assetType == 'real-assets') {
$('.global-real-estate').addClass('d-none');
$('.india-financial-assets, .india-managed-funds, .india-direct-investment-opportunities, .global-financial-assets, .global-managed-funds, .global-direct-investment-opportunities')
.addClass('d-none');
$(`.india-real-estate`).removeClass('d-none');
}
if (assetType == 'financial-assets') {
$('.india-real-estate, .global-real-estate').addClass('d-none');
$('.global-financial-assets').addClass('d-none');
$(`.india-financial-assets`).removeClass('d-none')
}
if (investmentType == 'managed-funds') {
$('.india-real-estate, .global-real-estate').addClass('d-none');
$('.global-managed-funds, .global-financial-assets-direct-investment-opportunities, .india-financial-assets-direct-investment-opportunities')
.addClass('d-none')
$('.india-managed-funds').removeClass('d-none')
// $('.india-financial-assets-direct-investment-opportunities, .global-financial-assets-direct-investment-opportunities, .global-financial-assets-managed-funds').addClass('d-none');
// $(`.india-financial-assets-managed-funds`).removeClass('d-none')
}
if (investmentType == 'direct-investment-opportunities') {
$('.india-real-estate, .global-real-estate').addClass('d-none');
$('.india-financial-assets-managed-funds, .global-financial-assets-direct-investment-opportunities, .global-financial-assets-managed-funds')
.addClass('d-none');
$(`.india-financial-assets-direct-investment-opportunities `).removeClass('d-none')
}
if (investmentStrategy) {
$('.india-real-estate, .global-real-estate').addClass('d-none');
$('.global-growth, .global-income, .global-hybrid').addClass('d-none');
$('.india-growth, .india-income, .india-hybrid').addClass('d-none');
$(`.india-${investmentStrategy}`).removeClass('d-none');
}
if (assetType == 'financial-assets' && investmentType && investmentStrategy) {
console.log('enter')
$('.india-financial-assets, .global-financial-assets').removeClass('d-none');
$(`.india-financial-assets-managed-funds, .global-financial-assets-managed-funds, .india-financial-assets-direct-investment-opportunities, .global-financial-assets-direct-investment-opportunities`)
.addClass('d-none');
$(`.india-financial-assets-${investmentType}-${investmentStrategy}`).removeClass('d-none');
}
}
if (type == 'india') {
$('.india-financial-assets, .india-managed-funds, .india-real-estate, .india-direct-investment-opportunities, .india-financial-assets-managed-funds, .india-financial-assets-direct-investment-opportunities')
.removeClass('d-none');
$('.global-financial-assets, .global-managed-funds, .global-real-estate , .global-direct-investment-opportunities, .global-financial-assets-managed-funds, .global-financial-assets-direct-investment-opportunities')
.addClass('d-none');
if (assetType == 'real-assets') {
$('.global-real-estate').addClass('d-none');
$('.india-financial-assets, .india-managed-funds, .india-direct-investment-opportunities, .global-financial-assets, .global-managed-funds, .global-direct-investment-opportunities')
if (type == 'global') {
$('.india-financial-assets, .india-managed-funds, .india-real-estate, .india-direct-investment-opportunities, .india-financial-assets-managed-funds, .india-financial-assets-direct-investment-opportunities')
.addClass('d-none');
$(`.india-real-estate`).removeClass('d-none');
}
if (assetType == 'financial-assets') {
$('.india-real-estate, .global-real-estate').addClass('d-none');
$('.global-financial-assets').addClass('d-none');
$(`.india-financial-assets`).removeClass('d-none')
}
if (investmentType == 'managed-funds') {
$('.india-real-estate, .global-real-estate').addClass('d-none');
$('.global-managed-funds, .global-financial-assets-direct-investment-opportunities, .india-financial-assets-direct-investment-opportunities')
.addClass('d-none')
$('.india-managed-funds').removeClass('d-none')
// $('.india-financial-assets-direct-investment-opportunities, .global-financial-assets-direct-investment-opportunities, .global-financial-assets-managed-funds').addClass('d-none');
// $(`.india-financial-assets-managed-funds`).removeClass('d-none')
}
if (investmentType == 'direct-investment-opportunities') {
$('.india-real-estate, .global-real-estate').addClass('d-none');
$('.india-financial-assets-managed-funds, .global-financial-assets-direct-investment-opportunities, .global-financial-assets-managed-funds')
.addClass('d-none');
$(`.india-financial-assets-direct-investment-opportunities `).removeClass('d-none')
}
if (investmentStrategy) {
$('.india-real-estate, .global-real-estate').addClass('d-none');
$('.global-growth, .global-income, .global-hybrid').addClass('d-none');
$('.india-growth, .india-income, .india-hybrid').addClass('d-none');
$(`.india-${investmentStrategy}`).removeClass('d-none');
}
if (assetType == 'financial-assets' && investmentType && investmentStrategy) {
console.log('enter')
$('.india-financial-assets, .global-financial-assets').removeClass('d-none');
$(`.india-financial-assets-managed-funds, .global-financial-assets-managed-funds, .india-financial-assets-direct-investment-opportunities, .global-financial-assets-direct-investment-opportunities`)
.addClass('d-none');
$(`.india-financial-assets-${investmentType}-${investmentStrategy}`).removeClass('d-none');
$('.global-financial-assets, .global-managed-funds, .global-real-estate , .global-direct-investment-opportunities, .global-financial-assets-managed-funds, .global-financial-assets-direct-investment-opportunities')
.removeClass('d-none');
if (assetType == 'real-assets') {
$('.india-real-estate').addClass('d-none');
$('.india-financial-assets, .india-managed-funds, .india-direct-investment-opportunities .global-financial-assets, .global-managed-funds, .global-direct-investment-opportunities')
.addClass('d-none');
$(`.global-real-estate`).removeClass('d-none')
}
if (assetType == 'financial-assets') {
$('.india-real-estate, .global-real-estate').addClass('d-none');
$('.global-financial-assets').removeClass('d-none');
$(`.india-financial-assets`).addClass('d-none')
}
if (investmentType == 'managed-funds') {
$('.india-real-estate, .global-real-estate').addClass('d-none');
$('.india-managed-funds, .global-financial-assets-direct-investment-opportunities, .india-financial-assets-direct-investment-opportunities')
.addClass('d-none')
$('.global-managed-funds').removeClass('d-none')
// $('.india-real-estate, .global-real-estate').addClass('d-none');
// $('.global-financial-assets-direct-investment-opportunities, .global-financial-assets-direct-investment-opportunities, .india-financial-assets-managed-funds').addClass('d-none');
// $(`.global-financial-assets-managed-funds`).removeClass('d-none')
}
if (investmentType == 'direct-investment-opportunities') {
$('.india-real-estate, .global-real-estate').addClass('d-none');
$('.global-financial-assets-managed-funds, .india-financial-assets-direct-investment-opportunities, .india-financial-assets-managed-funds')
.addClass('d-none');
$(`.global-financial-assets-direct-investment-opportunities`).removeClass('d-none')
}
if (investmentStrategy) {
$('.india-real-estate, .global-real-estate').addClass('d-none');
$('.india-growth, .india-income, .india-hybrid').addClass('d-none');
$('.global-growth, .global-income, .global-hybrid').addClass('d-none');
$(`.global-${investmentStrategy}`).removeClass('d-none');
}
if (assetType == 'financial-assets' && investmentType && investmentStrategy) {
$('.india-financial-assets, .global-financial-assets').removeClass('d-none');
$(`.india-financial-assets-managed-funds, .global-financial-assets-managed-funds, .india-financial-assets-direct-investment-opportunities, .global-financial-assets-direct-investment-opportunities`)
.addClass('d-none');
$(`.global-financial-assets-${investmentType}-${investmentStrategy}`).removeClass('d-none');
}
}
}
if (type == 'global') {
$('.india-financial-assets, .india-managed-funds, .india-real-estate, .india-direct-investment-opportunities, .india-financial-assets-managed-funds, .india-financial-assets-direct-investment-opportunities')
.addClass('d-none');
$('.global-financial-assets, .global-managed-funds, .global-real-estate , .global-direct-investment-opportunities, .global-financial-assets-managed-funds, .global-financial-assets-direct-investment-opportunities')
.removeClass('d-none');
if (assetType == 'real-assets') {
$('.india-real-estate').addClass('d-none');
$('.india-financial-assets, .india-managed-funds, .india-direct-investment-opportunities .global-financial-assets, .global-managed-funds, .global-direct-investment-opportunities')
.addClass('d-none');
$(`.global-real-estate`).removeClass('d-none')
function investmentTypeFilter(type) {
if (type == null) {
return;
}
if (assetType == 'financial-assets') {
$('.india-real-estate, .global-real-estate').addClass('d-none');
$('.global-financial-assets').removeClass('d-none');
$(`.india-financial-assets`).addClass('d-none')
}
if (investmentType == 'managed-funds') {
$('.india-real-estate, .global-real-estate').addClass('d-none');
$('.india-managed-funds, .global-financial-assets-direct-investment-opportunities, .india-financial-assets-direct-investment-opportunities')
.addClass('d-none')
$('.global-managed-funds').removeClass('d-none')
// $('.india-real-estate, .global-real-estate').addClass('d-none');
// $('.global-financial-assets-direct-investment-opportunities, .global-financial-assets-direct-investment-opportunities, .india-financial-assets-managed-funds').addClass('d-none');
// $(`.global-financial-assets-managed-funds`).removeClass('d-none')
}
if (investmentType == 'direct-investment-opportunities') {
$('.india-real-estate, .global-real-estate').addClass('d-none');
$('.global-financial-assets-managed-funds, .india-financial-assets-direct-investment-opportunities, .india-financial-assets-managed-funds')
.addClass('d-none');
$(`.global-financial-assets-direct-investment-opportunities`).removeClass('d-none')
}
if (investmentStrategy) {
$('.india-real-estate, .global-real-estate').addClass('d-none');
$('.india-growth, .india-income, .india-hybrid').addClass('d-none');
$('.global-growth, .global-income, .global-hybrid').addClass('d-none');
$(`.global-${investmentStrategy}`).removeClass('d-none');
}
if (assetType == 'financial-assets' && investmentType && investmentStrategy) {
$('.india-financial-assets, .global-financial-assets').removeClass('d-none');
$(`.india-financial-assets-managed-funds, .global-financial-assets-managed-funds, .india-financial-assets-direct-investment-opportunities, .global-financial-assets-direct-investment-opportunities`)
.addClass('d-none');
$(`.global-financial-assets-${investmentType}-${investmentStrategy}`).removeClass('d-none');
}
}
}
$(`#managed-funds , #direct-investment-opportunities`).removeClass('active');
$(`#${type}`).addClass('active');
// let investmentType = $('#investment_type_input').val();
let investmentType = 'managed-funds';
let investmentStrategy = $('#investment_strategy_input').val();
function investmentTypeFilter(type) {
if (type == null) {
return;
}
$(`#managed-funds , #direct-investment-opportunities`).removeClass('active');
$(`#${type}`).addClass('active');
// let investmentType = $('#investment_type_input').val();
let investmentType = 'managed-funds';
let investmentStrategy = $('#investment_strategy_input').val();
if (type == 'managed-funds') {
$('.india-direct-investment-opportunities, .global-direct-investment-opportunities').addClass('d-none')
$('.india-managed-funds, .global-managed-funds').removeClass('d-none')
$('.india-real-estate, .global-real-estate').addClass('d-none');
let geography = $('#geographic_focus_input').val();
if (geography) {
$('.india-managed-funds, .global-managed-funds').addClass('d-none')
$(`.${geography}-managed-funds`).removeClass('d-none')
}
if (investmentType) {
$('.financial-assets-managed-funds, .financial-assets-direct-investment-opportunities').addClass(
'd-none');
$(`.financial-assets-${investmentType}`).removeClass('d-none')
}
if (investmentStrategy) {
}
if (geography && investmentType) {
$('.india-financial-assets-managed-funds, .india-financial-assets-direct-investment-opportunities, .global-financial-assets-direct-investment-opportunities, .global-financial-assets-managed-funds')
.addClass('d-none');
$(`.${geography}-financial-assets-${investmentType}`).removeClass('d-none')
}
if (geography && investmentType && investmentStrategy) {
$('.india-financial-assets, .global-financial-assets').removeClass('d-none');
$(`.india-financial-assets-managed-funds, .global-financial-assets-managed-funds, .india-financial-assets-direct-investment-opportunities, .global-financial-assets-direct-investment-opportunities`)
.addClass('d-none');
$(`.${geography}-financial-assets-${investmentType}-${investmentStrategy}`).removeClass('d-none');
}
};
if (type == 'direct-investment-opportunities') {
$('.india-direct-investment-opportunities, .global-direct-investment-opportunities').removeClass('d-none')
$('.india-managed-funds, .global-managed-funds').addClass('d-none')
$('.india-real-estate, .global-real-estate').addClass('d-none');
let geography = $('#geographic_focus_input').val();
if (geography) {
if (type == 'managed-funds') {
$('.india-direct-investment-opportunities, .global-direct-investment-opportunities').addClass('d-none')
$(`.${geography}-direct-investment-opportunities`).removeClass('d-none')
}
if (investmentType) {
$('.financial-assets-managed-funds, .financial-assets-direct-investment-opportunities').addClass(
'd-none');
$(`.financial-assets-${investmentType}`).removeClass('d-none')
}
if (geography && investmentType) {
$('.india-financial-assets-managed-funds, .india-financial-assets-direct-investment-opportunities, .global-financial-assets-direct-investment-opportunities, .global-financial-assets-managed-funds')
.addClass('d-none');
$(`.${geography}-financial-assets-${investmentType}`).removeClass('d-none')
}
if (geography && investmentType && investmentStrategy) {
$('.india-financial-assets, .global-financial-assets').removeClass('d-none');
$(`.india-financial-assets-managed-funds, .global-financial-assets-managed-funds, .india-financial-assets-direct-investment-opportunities, .global-financial-assets-direct-investment-opportunities`)
.addClass('d-none');
$(`.${geography}-financial-assets-${investmentType}-${investmentStrategy}`).removeClass('d-none');
}
};
}
$('.india-managed-funds, .global-managed-funds').removeClass('d-none')
$('.india-real-estate, .global-real-estate').addClass('d-none');
let geography = $('#geographic_focus_input').val();
if (geography) {
$('.india-managed-funds, .global-managed-funds').addClass('d-none')
$(`.${geography}-managed-funds`).removeClass('d-none')
}
if (investmentType) {
$('.financial-assets-managed-funds, .financial-assets-direct-investment-opportunities').addClass(
'd-none');
$(`.financial-assets-${investmentType}`).removeClass('d-none')
}
if (investmentStrategy) {
function investmentStrategyFilter(type) {
if (type == null) {
return;
}
if (geography && investmentType) {
$('.india-financial-assets-managed-funds, .india-financial-assets-direct-investment-opportunities, .global-financial-assets-direct-investment-opportunities, .global-financial-assets-managed-funds')
.addClass('d-none');
$(`.${geography}-financial-assets-${investmentType}`).removeClass('d-none')
}
if (geography && investmentType && investmentStrategy) {
$('.india-financial-assets, .global-financial-assets').removeClass('d-none');
$(`.india-financial-assets-managed-funds, .global-financial-assets-managed-funds, .india-financial-assets-direct-investment-opportunities, .global-financial-assets-direct-investment-opportunities`)
.addClass('d-none');
$(`.${geography}-financial-assets-${investmentType}-${investmentStrategy}`).removeClass('d-none');
}
};
if (type == 'direct-investment-opportunities') {
$('.india-direct-investment-opportunities, .global-direct-investment-opportunities').removeClass('d-none')
$('.india-managed-funds, .global-managed-funds').addClass('d-none')
$('.india-real-estate, .global-real-estate').addClass('d-none');
let geography = $('#geographic_focus_input').val();
if (geography) {
$('.india-direct-investment-opportunities, .global-direct-investment-opportunities').addClass('d-none')
$(`.${geography}-direct-investment-opportunities`).removeClass('d-none')
}
if (investmentType) {
$('.financial-assets-managed-funds, .financial-assets-direct-investment-opportunities').addClass(
'd-none');
$(`.financial-assets-${investmentType}`).removeClass('d-none')
}
if (geography && investmentType) {
$('.india-financial-assets-managed-funds, .india-financial-assets-direct-investment-opportunities, .global-financial-assets-direct-investment-opportunities, .global-financial-assets-managed-funds')
.addClass('d-none');
$(`.${geography}-financial-assets-${investmentType}`).removeClass('d-none')
}
if (geography && investmentType && investmentStrategy) {
$('.india-financial-assets, .global-financial-assets').removeClass('d-none');
$(`.india-financial-assets-managed-funds, .global-financial-assets-managed-funds, .india-financial-assets-direct-investment-opportunities, .global-financial-assets-direct-investment-opportunities`)
.addClass('d-none');
$(`.${geography}-financial-assets-${investmentType}-${investmentStrategy}`).removeClass('d-none');
}
};
}
$(`#growth , #income, #hybrid`).removeClass('active');
$(`#${type}`).addClass('active');
let assetType = $('#asset_type_input').val();
let geography = $('#geographic_focus_input').val();
let investmentType = $('#investment_type_input').val();
if (type == 'growth') {
// $('.india-real-estate, .global-real-estate').addClass('d-none');
hideRealAssets();
$('.india-hybrid, .global-hybrid, .india-income, .global-income').addClass('d-none')
$('.india-growth, .global-growth').removeClass('d-none')
if (geography) {
$('.india-growth, .global-growth').addClass('d-none')
$(`.${geography}-growth`).removeClass('d-none')
function investmentStrategyFilter(type) {
if (type == null) {
return;
}
if (assetType == 'financial-assets') {
$('.india-financial-assets, .global-financial-assets').removeClass('d-none');
$(`#growth , #income, #hybrid`).removeClass('active');
$(`#${type}`).addClass('active');
let assetType = $('#asset_type_input').val();
let geography = $('#geographic_focus_input').val();
let investmentType = $('#investment_type_input').val();
if (type == 'growth') {
// $('.india-real-estate, .global-real-estate').addClass('d-none');
hideRealAssets();
$('.india-hybrid, .global-hybrid, .india-income, .global-income').addClass('d-none')
$('.india-growth, .global-growth').removeClass('d-none')
if (geography) {
$('.india-growth, .global-growth').addClass('d-none')
$(`.${geography}-growth`).removeClass('d-none')
}
if (assetType == 'financial-assets') {
$('.india-financial-assets, .global-financial-assets').removeClass('d-none');
}
if (investmentType) {
$('.managed-funds-growth, .direct-investment-opportunities-growth, .direct-investment-opportunities-hybrid, .managed-funds-income, .managed-funds-hybrid, .direct-investment-opportunities-income')
.addClass('d-none');
$(`.${investmentType}-growth`).removeClass('d-none');
}
if (geography && assetType == 'financial-assets') {
$('.india-financial-assets, .global-financial-assets').addClass('d-none');
$(`.${geography}-financial-assets`).removeClass('d-none');
}
if (geography && assetType == 'financial-assets' && investmentType) {
$('.india-financial-assets, .global-financial-assets').removeClass('d-none');
$(`.india-financial-assets-managed-funds, .global-financial-assets-managed-funds, .india-financial-assets-direct-investment-opportunities, .global-financial-assets-direct-investment-opportunities`)
.addClass('d-none');
$(`.${geography}-financial-assets-${investmentType}-growth`).removeClass('d-none');
}
}
if (investmentType) {
$('.managed-funds-growth, .direct-investment-opportunities-growth, .direct-investment-opportunities-hybrid, .managed-funds-income, .managed-funds-hybrid, .direct-investment-opportunities-income')
.addClass('d-none');
$(`.${investmentType}-growth`).removeClass('d-none');
if (type == 'income') {
// $('.india-real-estate, .global-real-estate').addClass('d-none');
hideRealAssets();
$('.india-growth, .global-growth, .india-hybrid, .global-hybrid').addClass('d-none')
$('.india-income, .global-income').removeClass('d-none');
if (geography) {
$('.india-income, .global-income').addClass('d-none');
$(`.${geography}-income`).removeClass('d-none')
}
if (assetType == 'financial-assets') {
$('.india-financial-assets, .global-financial-assets').removeClass('d-none');
}
// if(investmentType){
// $('.india-managed-funds, .india-direct-investment-opportunities, .global-managed-funds, .global-direct-investment-opportunities').addClass('d-none');
// $(`.india-${investmentType}, .global-${investmentType}`).removeClass('d-none');
// }
if (investmentType) {
$('.managed-funds-growth, .direct-investment-opportunities-growth, .direct-investment-opportunities-hybrid, .managed-funds-income, .managed-funds-hybrid, .direct-investment-opportunities-income')
.addClass('d-none');
$(`.${investmentType}-income`).removeClass('d-none');
}
if (geography && assetType == 'financial-assets') {
$('.india-financial-assets, .global-financial-assets').addClass('d-none');
$(`.${geography}-financial-assets`).removeClass('d-none');
}
if (geography && assetType == 'financial-assets' && investmentType) {
$('.india-financial-assets, .global-financial-assets').removeClass('d-none');
$(`.india-financial-assets-managed-funds, .global-financial-assets-managed-funds, .india-financial-assets-direct-investment-opportunities, .global-financial-assets-direct-investment-opportunities`)
.addClass('d-none');
$(`.${geography}-financial-assets-${investmentType}-income`).removeClass('d-none');
}
}
if (geography && assetType == 'financial-assets') {
$('.india-financial-assets, .global-financial-assets').addClass('d-none');
$(`.${geography}-financial-assets`).removeClass('d-none');
}
if (geography && assetType == 'financial-assets' && investmentType) {
$('.india-financial-assets, .global-financial-assets').removeClass('d-none');
$(`.india-financial-assets-managed-funds, .global-financial-assets-managed-funds, .india-financial-assets-direct-investment-opportunities, .global-financial-assets-direct-investment-opportunities`)
.addClass('d-none');
$(`.${geography}-financial-assets-${investmentType}-growth`).removeClass('d-none');
if (type == 'hybrid') {
// $('.india-real-estate, .global-real-estate').addClass('d-none');
hideRealAssets();
$('.india-growth, .global-growth, .india-income, .global-income').addClass('d-none')
$('.india-hybrid, .global-hybrid').removeClass('d-none');
if (geography) {
$('.india-hybrid, .global-hybrid').addClass('d-none');
$(`.${geography}-hybrid`).removeClass('d-none')
}
if (assetType == 'financial-assets') {
$('.india-financial-assets, .global-financial-assets').removeClass('d-none');
}
// if(investmentType){
// $('.india-managed-funds, .india-direct-investment-opportunities, .global-managed-funds, .global-direct-investment-opportunities').addClass('d-none');
// $(`.india-${investmentType}, .global-${investmentType}`).removeClass('d-none');
// }
if (investmentType) {
$('.managed-funds-growth, .direct-investment-opportunities-growth, .direct-investment-opportunities-hybrid, .managed-funds-income, .managed-funds-hybrid, .direct-investment-opportunities-income')
.addClass('d-none');
$(`.${investmentType}-hybrid`).removeClass('d-none');
}
if (geography && assetType == 'financial-assets') {
$('.india-financial-assets, .global-financial-assets').addClass('d-none');
$(`.${geography}-financial-assets`).removeClass('d-none');
}
if (geography && assetType == 'financial-assets' && investmentType) {
$('.india-financial-assets, .global-financial-assets').removeClass('d-none');
$(`.india-financial-assets-managed-funds, .global-financial-assets-managed-funds, .india-financial-assets-direct-investment-opportunities, .global-financial-assets-direct-investment-opportunities`)
.addClass('d-none');
$(`.${geography}-financial-assets-${investmentType}-hybrid`).removeClass('d-none');
}
}
}
if (type == 'income') {
// $('.india-real-estate, .global-real-estate').addClass('d-none');
hideRealAssets();
$('.india-growth, .global-growth, .india-hybrid, .global-hybrid').addClass('d-none')
$('.india-income, .global-income').removeClass('d-none');
if (geography) {
$('.india-income, .global-income').addClass('d-none');
$(`.${geography}-income`).removeClass('d-none')
}
if (assetType == 'financial-assets') {
$('.india-financial-assets, .global-financial-assets').removeClass('d-none');
}
// if(investmentType){
// $('.india-managed-funds, .india-direct-investment-opportunities, .global-managed-funds, .global-direct-investment-opportunities').addClass('d-none');
// $(`.india-${investmentType}, .global-${investmentType}`).removeClass('d-none');
// }
if (investmentType) {
$('.managed-funds-growth, .direct-investment-opportunities-growth, .direct-investment-opportunities-hybrid, .managed-funds-income, .managed-funds-hybrid, .direct-investment-opportunities-income')
.addClass('d-none');
$(`.${investmentType}-income`).removeClass('d-none');
}
if (geography && assetType == 'financial-assets') {
$('.india-financial-assets, .global-financial-assets').addClass('d-none');
$(`.${geography}-financial-assets`).removeClass('d-none');
}
if (geography && assetType == 'financial-assets' && investmentType) {
$('.india-financial-assets, .global-financial-assets').removeClass('d-none');
$(`.india-financial-assets-managed-funds, .global-financial-assets-managed-funds, .india-financial-assets-direct-investment-opportunities, .global-financial-assets-direct-investment-opportunities`)
.addClass('d-none');
$(`.${geography}-financial-assets-${investmentType}-income`).removeClass('d-none');
}
function hideRealAssets() {
$('.india-real-estate, .global-real-estate').addClass('d-none');
}
if (type == 'hybrid') {
// $('.india-real-estate, .global-real-estate').addClass('d-none');
hideRealAssets();
$('.india-growth, .global-growth, .india-income, .global-income').addClass('d-none')
$('.india-hybrid, .global-hybrid').removeClass('d-none');
if (geography) {
$('.india-hybrid, .global-hybrid').addClass('d-none');
$(`.${geography}-hybrid`).removeClass('d-none')
}
if (assetType == 'financial-assets') {
$('.india-financial-assets, .global-financial-assets').removeClass('d-none');
}
// if(investmentType){
// $('.india-managed-funds, .india-direct-investment-opportunities, .global-managed-funds, .global-direct-investment-opportunities').addClass('d-none');
// $(`.india-${investmentType}, .global-${investmentType}`).removeClass('d-none');
// }
if (investmentType) {
$('.managed-funds-growth, .direct-investment-opportunities-growth, .direct-investment-opportunities-hybrid, .managed-funds-income, .managed-funds-hybrid, .direct-investment-opportunities-income')
.addClass('d-none');
$(`.${investmentType}-hybrid`).removeClass('d-none');
}
if (geography && assetType == 'financial-assets') {
$('.india-financial-assets, .global-financial-assets').addClass('d-none');
$(`.${geography}-financial-assets`).removeClass('d-none');
}
if (geography && assetType == 'financial-assets' && investmentType) {
$('.india-financial-assets, .global-financial-assets').removeClass('d-none');
$(`.india-financial-assets-managed-funds, .global-financial-assets-managed-funds, .india-financial-assets-direct-investment-opportunities, .global-financial-assets-direct-investment-opportunities`)
.addClass('d-none');
$(`.${geography}-financial-assets-${investmentType}-hybrid`).removeClass('d-none');
}
}
}
function hideRealAssets() {
$('.india-real-estate, .global-real-estate').addClass('d-none');
}
</script>
@endsection
</script>
@endsection

View File

@@ -0,0 +1,60 @@
<div class="investment" id="open_investments">
<div class="container">
<h2>{{ $type }}</h2>
@if (count($gpcfAllData))
{{-- @dd($gpcfAllData) --}}
<div class="parimay-card mt-4 mb-4">
@foreach ($gpcfAllData as $data)
{{-- @foreach ($pefData as $data) --}}
<div class="assets-card aos-init aos-animate" data-aos="fade-up">
<a href="{{ auth()->guard('users')->check() == true ? route('alternative-investment-fund.private-credit-fund-product', $data->alternativeInvestmentFund->slug) : route('login') }}"
data-route="{{ route('alternative-investment-fund.private-credit-fund-product', $data->alternativeInvestmentFund->slug) }}"
class="redirect_to_page">
<div class="card-logo bg-white">
<img
src="{{ $data->alternativeInvestmentFund->companies == null ? imagePath('public/assets/media/FrontendImages/menu-logo.png') : $data->alternativeInvestmentFund->companies->company_logo }}">
</div>
<div class="blur-md">
@if ($data->alternativeInvestmentFund->geographic_focus == 'India')
<img src="{{ asset('public/assets/media/FrontendImages/map.svg') }}">
@else
<img src="{{ asset('public/assets/media/FrontendImages/world.png') }}">
@endif
<img src="{{ asset('public/assets/media/FrontendImages/cradit-funds.svg') }}">
<p>{{ $data->alternativeInvestmentFund->fund_name }}</p>
</div>
<p class="cate">Category: {{ $data->categorys->category_name }}</p>
<div class="middle-sec">
<div class="dropdown-tooltip">
<div class="dropdown-toggle" type="button" data-bs-toggle="dropdown"
aria-expanded="false">
<img
src="{{ imagePath('public/assets/media/FrontendImages/tooptips-icon.png') }}">
</div>
<div class="dropdown-menu">
<p>Close Date: Approx. Sep 2030</p>
</div>
</div>
<p class="">Target IRR: {{ $data->alternativeInvestmentFund->target_irr }}
</p>
{{-- <p class="">Tenure From Final Date:
{{ $data->alternativeInvestmentFund->tenure_from_final_date }}</p> --}}
</div>
<div class="dics">
<h4>Minimum Investment:
{{ $data->alternativeInvestmentFund->minimum_investment }}
</h4>
<p>{{ $data->alternativeInvestmentFund->description }}</p>
</div>
</a>
</div>
{{-- @endforeach --}}
@endforeach
</div>
@else
<div class="text-center">
<h4>No investment opportunities available at the moment</h4>
</div>
@endif
</div>
</div>

View File

@@ -20,7 +20,7 @@
@else
<img src="{{ asset('public/assets/media/FrontendImages/world.png') }}">
@endif
<img src="{{ asset('public/assets/media/FrontendImages/equity-funds.svg') }}">
<img src="{{ asset('public/assets/media/FrontendImages/cradit-funds.svg') }}">
<p>{{ $data->alternative_investment_fund->fund_name }}</p>
</div>
<p class="cate">Category: {{ $data->categorys->category_name }}</p>

View File

@@ -83,6 +83,8 @@ use App\Http\Controllers\Admin\ManageFreeUInvestments\DebtFundController;
use App\Http\Controllers\Admin\ManageFreeUInvestments\HedgeFundController;
use App\Http\Controllers\Admin\ManageFreeUInvestments\InfrastructureFundController;
use App\Http\Controllers\Admin\ManageFreeUInvestments\PrivateEquityFundController;
use App\Http\Controllers\Admin\ManageFreeUInvestments\PrivateCreditFundController;
use App\Http\Controllers\Admin\ManageFreeUInvestments\LongOnlyEquityFundController;
use App\Http\Controllers\Admin\ManageFreeUInvestments\PrivateInvestmentInPublicEquityFundController;
use App\Http\Controllers\Admin\ManageFreeUInvestments\PrivateRealEstateFundController;
use App\Http\Controllers\Admin\ManageFreeUInvestments\VentureCapitalFundController;
@@ -115,6 +117,7 @@ use App\Http\Controllers\Frontend\GlobalRealAssetController;
//admin update profile controller
use App\Http\Controllers\Admin\AdminProfileController;
use App\Http\Controllers\GlobalPrivateCreditController;
use App\View\Components\LongOnlyEquityFunds;
use Illuminate\Support\Facades\Request;
/*
@@ -127,6 +130,7 @@ use Illuminate\Support\Facades\Request;
| contains the "web" middleware group. Now create something great!
|
*/
Route::delete('delete_fractional_image', [FractionalRealEstateController::class, 'delete_fractional_image'])->name('delete_fractional_image');
Route::delete('delete_image_capital_fund', [VentureCapitalFundController::class, 'delete_image_capital_fund'])->name('delete_image_capital_fund');
@@ -616,11 +620,11 @@ Route::middleware([BackendAccess::class])->group(function () {
Route::post('update-status-alternative', 'updateStatusAlternative')->name('update-status-alternative');
Route::post("monthly-updates-change-holding-status", 'monthlyUpdateChangeHoldingStatus')->name('monthly-updates-change-holding-status');
Route::post("monthly-updates-change-status", 'monthlyUpdateChangeStatus')->name('monthly-updates-change-status');
Route::post("redeem-with-sold-amount",'redeemWithSoldAmount')->name('redeem-with-sold-amount');
Route::post("redeem-with-sold-amount", 'redeemWithSoldAmount')->name('redeem-with-sold-amount');
});
//Manage FreeU Investments
Route::prefix('manage-investments')->group(function () {
Route::controller(ManageFreeUInvestmentController::class)->as('manage.')->group(function () {
@@ -630,7 +634,7 @@ Route::middleware([BackendAccess::class])->group(function () {
Route::get("/fractional-real-estate/upload", 'addProduct')->name('addproduct');
Route::post("/product/post", 'uploadFile')->name('postproduct');
Route::delete("/product/delete", 'productDelete')->name('product-delete');
//Bonds
Route::prefix('bonds/upload/')->group(function () {
@@ -647,6 +651,7 @@ Route::middleware([BackendAccess::class])->group(function () {
Route::get("3", 'uploadFunds')->name('uploadPrivateEquityFunds');
Route::get("4", 'uploadFunds')->name('uploadVentureDebtFunds');
Route::get("5", 'uploadFunds')->name('uploadHedgeFunds');
Route::get("6", 'uploadFunds')->name('uploadPrivateCreditFunds');
});
Route::post("/funds/post", 'uploadFundFile')->name('postfunds');
@@ -676,7 +681,7 @@ Route::middleware([BackendAccess::class])->group(function () {
// Route::get("/real-estate/upload/6", 'uploadRealEstate')->name('uploadGlobalIndustrialRealEstate');
Route::post("/real-estate/post", 'uploadRealEstateFile')->name('postrealestate');
Route::prefix('/alternative-investment-fund')->group(function () {
Route::resource('venture-capital-fund', VentureCapitalFundController::class);
@@ -685,10 +690,12 @@ Route::middleware([BackendAccess::class])->group(function () {
Route::resource('infrastructure-fund', InfrastructureFundController::class);
Route::resource('fund-for-distressed-asset', FundForDistressedAssetController::class);
Route::resource('private-equity-fund', PrivateEquityFundController::class);
Route::resource('private-credit-fund', PrivateCreditFundController::class);
Route::resource('debt-fund', DebtFundController::class);
Route::resource('private-real-estate-fund', PrivateRealEstateFundController::class);
Route::resource('hedge-fund', HedgeFundController::class);
Route::resource('pipe-fund', PrivateInvestmentInPublicEquityFundController::class);
Route::resource('long-only-equity-fund', LongOnlyEquityFundController::class);
Route::resources([
'fractional-real-estate' => FractionalRealEstateImportController::class,
'peer-to-peer-lending' => PeerToPeerLendingImportController::class,
@@ -843,7 +850,7 @@ Route::middleware([BackendAccess::class])->group(function () {
Route::get("manage-sub-admin", 'listSubAdmin')->name('manage_sub_admin');
Route::view('add/sub-admin', 'Admin.add-sub-admin')->name('add.sub-admin');
Route::post('store/sub-admin', 'addSubAdmin')->name('store.sub-admin');
Route::get('view/sub-admin','viewSubAdmin')->name('view.sub-admin');
Route::get('view/sub-admin', 'viewSubAdmin')->name('view.sub-admin');
Route::get("role_list", 'addPage')->name('role_list')->name('role_list');
Route::post("view_role", 'store')->name('view_role')->name('view_role');
Route::post("status", 'status')->name('status');
@@ -936,6 +943,10 @@ Route::any('/prinicipal-groups-delete/{id}', [UserGroupController::class, 'delet
//Frontend
Route::get('/', [HomeController::class, 'index'])->name('index');
Route::get('/forget-session',function(){
Session::forget('risk_disclosure');
});
Route::post('/check-risk-disclosure', [HomeController::class, 'checkRiskDisclosure'])->name('check-risk-disclosure');
Route::get('/invest-now', [HomeController::class, 'investNow'])->name('investNow');
Route::post('/mark-all-notifications-as-read', [HomeController::class, 'updateAllNotification'])->name('mark-all-notifications');
@@ -974,7 +985,6 @@ Route::controller(AlternativeInvestmentFundController::class)->prefix('alternati
Route::get('/category-two/private-credit-funds/{slug}', 'privateCreditFundProduct')->name('private-credit-fund-product');
Route::get('/category-three/long-only-equity-funds', 'longOnlyEquityFund')->name('long-only-equity-funds');
Route::get("/category-three/long-only-equity-funds/{slug}", 'longOnlyEquityFundProduct')->name('long-only-equity-fund-product');
});
Route::controller(FractionalRealEstateController::class)->prefix('fractional-real-estate')->name('fractional-real-estate.')->group(function () {
@@ -1158,7 +1168,7 @@ Route::view('global', 'Frontend.Pages.dummy.global')->name('global');
Route::view('global-angel-investing', 'Frontend.Pages.dummy.global-angel-investing')->name('global-angel-investing');
Route::view('global-growth-capital', 'Frontend.Pages.dummy.global-growth-capital')->name('global-growth-capital');
Route::view('global-mezzanine-financing', 'Frontend.Pages.dummy.global-mezzanine-financing')->name('global-mezzanine-financing');
Route::get('global-private-credit',[GlobalPrivateCreditController::class,'getGlobalPrivateCreditFundPage'])->name('global-private-credit');
Route::get('global-private-credit', [GlobalPrivateCreditController::class, 'getGlobalPrivateCreditFundPage'])->name('global-private-credit');
Route::view('global-private-equity', 'Frontend.Pages.dummy.global-private-equity')->name('global-private-equity');
// indian links
Route::view('indian-angel-investing', 'Frontend.Pages.dummy.indian-angel-investing')->name('indian-angel-investing');