Manage Products

This commit is contained in:
meghamalore
2024-05-03 19:10:04 +05:30
parent db39219205
commit 1fc5d78da1
9 changed files with 19 additions and 8 deletions

View File

@@ -552,7 +552,7 @@ class AlternativeInvestmentFundController extends Controller
return view('Frontend.Pages.long-only-equity-fund.index', [
'learnMore' => $learnMore,
'openHF' => $this->aif->openLOE()->getData(),
'fullyFundedHF' => $this->aif->fullyFundedLOE()->getData(),
// 'fullyFundedHF' => $this->aif->fullyFundedLOE()->getData(),
'resaleHF' => $this->aif->resaleLOE()->getData(),
]);
}

View File

@@ -14,7 +14,7 @@ class GlobalHedgeFundController extends Controller
public function index(){
$hedgeFunds = $this->hedgeFundAllData()->getData();
$openGHF = Product::has('funds')->with('funds','categorys')->globalHedgeFund()->open()->active()->latest()->get();
$resaleGHF = Product::has('funds')->with('funds','categorys')->globalHedgeFund()->resale()->active()->latest()->get();
$resaleGHF = Product::has('funds')->with('funds','categorys')->globalHedgeFund()->fullyFunded()->active()->latest()->get();
$fullyFundedGHF = Product::has('funds')->with('funds','categorys')->globalHedgeFund()->fullyFunded()->active()->latest()->get();
$learnMore = (new FractionalRealEstateFrontendController)->globalHedgeFundQuestionAndAnswer()->getData();
// $faqs = (new FractionalRealEstateFrontendController)->globalHedgeFundQuestionAndAnswerFaqs()->getData();

View File

@@ -27,7 +27,7 @@ class GlobalPrivateEquityFundController extends Controller
{
// $privateEquity = $this->privateEquityFundAllData()->getData();
$openGPEF = Product::has('funds')->with('funds', 'categorys')->funds()->globalPrivateEquityFund()->open()->active()->latest()->get();
$resaleGPEF = Product::has('funds')->with('funds', 'categorys')->funds()->globalPrivateEquityFund()->resale()->active()->latest()->get();
$resaleGPEF = Product::has('funds')->with('funds', 'categorys')->funds()->globalPrivateEquityFund()->fullyFunded()->active()->latest()->get();
$fullyFundedGPEF = Product::has('funds')->with('funds', 'categorys')->funds()->globalPrivateEquityFund()->fullyFunded()->active()->latest()->get();
$learnMore = (new FractionalRealEstateFrontendController)->globalPrivateEquityFundQuestionAndAnswer()->getData();
// $faqs = (new FractionalRealEstateFrontendController)->globalPrivateEquityFundQuestionAndAnswerFaqs()->getData();

View File

@@ -18,7 +18,7 @@ class GlobalPrivateCreditController extends Controller
'learnMore' => $learnMore,
'openGPCF' => Product::has('funds')->with('funds')->funds()->globalPrivateCreditFund()->open()->active()->latest()->get(),
// 'resaleGPCF' => Product::has('alternativeInvestmentFund')->with('alternativeInvestmentFund.companies', 'categorys')->globalPrivateCreditFund()->resale()->active()->latest()->get(),
'resaleGPCF' => Product::has('funds')->with('funds')->funds()->globalPrivateCreditFund()->resale()->active()->latest()->get(),
'resaleGPCF' => Product::has('funds')->with('funds')->funds()->globalPrivateCreditFund()->fullyFunded()->active()->latest()->get(),
]);
}

View File

@@ -43,7 +43,16 @@ class StockFundsRealEstateExchangeImport implements ToCollection, WithHeadingRow
public function collection(Collection $rows)
{
Validator::make($rows->toArray(), $this->rules(), $this->customValidationMessages($rows))->validate();
// $name = '';
// if($rows[0]['stock_name'] == null)
// {
// $name = 'stck';
// }
// else
// {
// $name = 'no';
// }
// dd($rows, $name);
foreach ($rows as $row) {
$product = Product::create([
'tables_id' => Table::StockFundsRealEstateExchangeTable,
@@ -62,8 +71,10 @@ class StockFundsRealEstateExchangeImport implements ToCollection, WithHeadingRow
StockFundsRealEstateExchange::create([
'products_id' => $product->id,
// 'slug' => $count < 2 ? Str::slug($row['stock_name'] ?? $row['etf_name'] ?? $row['reit_name']) : Str::slug($row['stock_name'].'-'.$count+1 ?? $row['etf_name'].'-'.$count+1 ?? $row['reit_name'].'-'.$count+1),
// 'name' => $row['stock_name'] ?? $row['etf_name'] ?? $row['reit_name'],
'slug' => $count < 2 ? Str::slug($row['stock_name'] ?? $row['etf_name'] ?? $row['reit_name']) : Str::slug($row['stock_name'].'-'.$count+1 ?? $row['etf_name'].'-'.$count+1 ?? $row['reit_name'].'-'.$count+1),
'name' => $row['stock_name'] ?? $row['etf_name'] ?? $row['reit_name'],
'name' => $row['name'] ?? null,
// 'type' => $this->fundType,
'ticker' => $row['ticker'],
'exchange' => $row['exchange'],

View File

@@ -122,7 +122,7 @@
<select name="type" id="" class="form-control form-control-solid">
<option value="">Select A Type</option>
<option value="Open" {{$alternativeInvestmentFund->type=='Open'?'selected':'null'}}>Primary Offerings</option>
<option value="Fully Funded" {{$alternativeInvestmentFund->type=='Fully Funded'?'selected':'null'}}>Secondary Offerings</option>
<option value="Resale" {{$alternativeInvestmentFund->type=='Resale'?'selected':'null'}}>Secondary Offerings</option>
{{-- <option value="Resale" {{$alternativeInvestmentFund->type=='Resale'?'selected':'null'}}>Resale</option> --}}
</select>
</div>

View File

@@ -152,7 +152,7 @@
</div>
<x-learn-more :learnMore="$learnMore" />
<x-fractional-real-estate-product :freData="$openFRE" id="open_investments" :type="$type='Primary Offerings'" />
<x-fractional-real-estate-product :freData="$resaleFRE" id="resale" :type="$type='Secondary Offerings'" />
<x-fractional-real-estate-product :freData="$fullyFundedFRE" id="resale" :type="$type='Secondary Offerings'" />
<!-- <x-fractional-real-estate-product :freData="$fullyFundedFRE" id="fullyFunded" :type="$type='Fully Funded Investments'" /> -->
<!--<div class="investment" id="open_investments">-->
<!-- <div class="container">-->