global product name not visible issue and asset manager name contain number issue fix

This commit is contained in:
Ritikesh yadav
2024-04-02 19:16:10 +05:30
parent f7c9b09a6d
commit 671b17425e
7 changed files with 51 additions and 6 deletions

View File

@@ -43,7 +43,7 @@ class ManageFreeUInvestmentController extends Controller
public function index()
{
$products = Product::query()
->select(DB::raw('products.id, coalesce(sdi.product_name, p2p.scheme, fre.property_name_and_location,id.company_name,aif.fund_name,caga.project_name,hyf.security_name,lbf.company,sdi.product_name,vd.company_name) as product_name'), DB::raw('DATE_FORMAT(products.created_at, "%d-%b-%Y") as date'), 'categories.category_name', DB::raw('coalesce(sdi.minimum_investment, p2p.minimum_investment, fre.minimum_investment,id.minimum_investment,aif.minimum_investment,caga.minimum_investment,hyf.minimum_investment,lbf.minimum_investment,sdi.minimum_investment,vd.minimum_investment) as minimum_investment'), 'products.commission_type', 'products.rate', 'products.commission', 'products.description', 'products.top_pick', 'products.tables_id', 'products.status')
->select(DB::raw('products.id, coalesce(sdi.product_name,re.property_name,funds.fund_name , p2p.scheme, fre.property_name_and_location,id.company_name,aif.fund_name,caga.project_name,hyf.security_name,lbf.company,sdi.product_name,vd.company_name) as product_name'), DB::raw('DATE_FORMAT(products.created_at, "%d-%b-%Y") as date'), 'categories.category_name', DB::raw('coalesce(sdi.minimum_investment, p2p.minimum_investment, fre.minimum_investment,id.minimum_investment,aif.minimum_investment,caga.minimum_investment,hyf.minimum_investment,lbf.minimum_investment,sdi.minimum_investment,vd.minimum_investment,re.total_price,funds.minimum_investment) as minimum_investment'), 'products.commission_type', 'products.rate', 'products.commission', 'products.description', 'products.top_pick', 'products.tables_id', 'products.status')
->leftJoin('securitized_debt_instruments as sdi', 'products.id', 'sdi.products_id')
->leftJoin('fractional_real_estates as fre', 'products.id', 'fre.products_id')
->leftJoin('peer_to_peer_lendings as p2p', 'products.id', 'p2p.products_id')
@@ -53,7 +53,8 @@ class ManageFreeUInvestmentController extends Controller
->leftJoin('high_yield_finances as hyf', 'products.id', 'hyf.products_id')
->leftJoin('lease_based_financings as lbf', 'products.id', 'lbf.products_id')
->leftJoin('venture_debts as vd', 'products.id', 'vd.products_id')
// ->leftJoin('real_estates as re', 'products.id', 're.products_id')
->leftJoin('real_estates as re', 'products.id', 're.products_id')
->leftJoin('funds', 'products.id', 'funds.products_id')
->join('categories', 'products.categories_id', 'categories.id')
->latest('products.created_at')
->get();

View File

@@ -501,6 +501,11 @@ class AlternativeInvestmentFundController extends Controller
{
$learnMore = (new FractionalRealEstateFrontendController)->pcfQuestionAndAnswer()->getData();
return view('Frontend.Pages.private-credit-fund.index', ['learnMore' => $learnMore]);
return view('Frontend.Pages.private-credit-fund.index', [
'learnMore' => $learnMore,
// 'openFFDA' => $this->aif->openPCF()->getData(),
// 'fullyFundedFFDA' => $this->aif->fullyFundedFFDA()->getData(),
// 'resaleFFDA' => $this->aif->resaleFFDA()->getData(),
]);
}
}

View File

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

View File

@@ -16,6 +16,10 @@ class AIFService{
}
//Venture Capital Funds
public function openPCF()
{
return $this->returnResponse(Product::has('alternativeInvestmentFund')->with('alternativeInvestmentFund.companies','categorys')->privateCreditFund()->open()->active()->latest()->get());
}
public function openVCF()
{
return $this->returnResponse(Product::has('alternativeInvestmentFund')->with('alternativeInvestmentFund.companies','categorys')->ventureCapitalFund()->open()->active()->latest()->get());

View File

@@ -0,0 +1,28 @@
<?php
namespace App\View\Components;
use Illuminate\View\Component;
class PrivateCreditfund extends Component
{
/**
* Create a new component instance.
*
* @return void
*/
public function __construct()
{
//
}
/**
* Get the view / contents that represent the component.
*
* @return \Illuminate\Contracts\View\View|\Closure|string
*/
public function render()
{
return view('components.private-creditfund');
}
}

View File

@@ -137,12 +137,12 @@
<input type="hidden" name="type" value="Asset Manager">
<div class="form-group">
<label>Asset Manager Name</label>
<input class="form-control" type="text" name="name">
<input class="form-control" type="text" name="name" onkeydown="return /^[a-zA-Z\s]+$/i.test(event.key)">
</div>
<div class="form-group">
<label>Authorized Representative Name</label>
<input class="form-control" type="text"
name="representative_name">
name="representative_name" onkeydown="return /^[a-zA-Z\s]+$/i.test(event.key)">
</div>
<div class="form-group">
<label>Email ID</label>
@@ -150,7 +150,7 @@
</div>
<div class="form-group">
<label>Mobile Number</label>
<input class="form-control" type="text" name="mobile_number">
<input class="form-control" type="number" name="mobile_number">
</div>
<div class="form-group">
<label>Subject</label>

View File

@@ -418,6 +418,8 @@
</div>
<x-learn-more :learnMore="$learnMore" />
{{-- <x-private-credit-fund-product :pcfData="$openPCF" id="open_investments" :type="$type='Primary Offerings'" /> --}}
{{-- <x-private-credit-fund-product :ffdaData="$resaleFFDA" id="resale" :type="$type='Secondary Offerings'" /> --}}
</div>
@endsection