added key and value in product details api
This commit is contained in:
@@ -61,7 +61,14 @@ class AngelFundResource extends JsonResource
|
||||
'hurdle_rate' => $this->hurdle_rate,
|
||||
'other_expenses' => $this->other_expenses,
|
||||
'focused_sectors_industries' => $this->focused_sectors_industries,
|
||||
'company' => $this->companies
|
||||
'company' => $this->companies,
|
||||
'description' => Product::find($this->products_id) == null ? null : Product::where('id',$this->products_id)->value('description'),
|
||||
'isin_code' => $this->isin_code,
|
||||
'focused_funds' => $this->focused_funds,
|
||||
'return_on_investment_irr_dpi_rvpi_tvpi' => $this->return_on_investment_irr_dpi_rvpi_tvpi,
|
||||
'valuation_per_security_nav' => $this->valuation_per_security_nav,
|
||||
'trading_strategy_used' => $this->trading_strategy_used,
|
||||
'involved_in_short_selling' => $this->involved_in_short_selling,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ class FundForDistressedAssetResource extends JsonResource
|
||||
'fund_name' => $this->fund_name,
|
||||
'slug' => $this->slug,
|
||||
'isin_code' => $this->isin_code,
|
||||
// 'registration_number' => $this->registration_number,
|
||||
'registration_number' => $this->registration_number,
|
||||
'fund_category' => $this->fund_category,
|
||||
'fund_structure' => $this->fund_structure,
|
||||
'fund_strategy' => $this->fund_strategy,
|
||||
@@ -64,6 +64,13 @@ class FundForDistressedAssetResource extends JsonResource
|
||||
'other_expenses' => $this->other_expenses,
|
||||
'focused_sectors_industries' => $this->focused_sectors_industries,
|
||||
'minimum_investment' => $this->minimum_investment,
|
||||
'company' => $this->companies
|
||||
'company' => $this->companies,
|
||||
'description' => Product::find($this->products_id) == null ? null : Product::where('id',$this->products_id)->value('description'),
|
||||
// 'isin_code' => $this->isin_code,
|
||||
'focused_funds' => $this->focused_funds,
|
||||
'return_on_investment_irr_dpi_rvpi_tvpi' => $this->return_on_investment_irr_dpi_rvpi_tvpi,
|
||||
'valuation_per_security_nav' => $this->valuation_per_security_nav,
|
||||
'trading_strategy_used' => $this->trading_strategy_used,
|
||||
'involved_in_short_selling' => $this->involved_in_short_selling,
|
||||
]; }
|
||||
}
|
||||
|
||||
@@ -72,8 +72,11 @@ class HedgeFundResource extends JsonResource
|
||||
'regions_covered' => $this->regions_covered,
|
||||
'isin_code'=>$this->isin_code,
|
||||
'focused_real_estate_sectors'=>$this->focused_real_estate_sectors,
|
||||
'rera_complied_property' =>$this->rera_complied_property,
|
||||
'return_on_investment'=>$this->return_on_investment
|
||||
'rera_complied_property' =>$this->rera_complied_property,
|
||||
'description' => Product::find($this->products_id) == null ? null : Product::where('id',$this->products_id)->value('description'),
|
||||
'return_on_investment_irr_dpi_rvpi_tvpi' => $this->return_on_investment_irr_dpi_rvpi_tvpi,
|
||||
'valuation_per_security_nav' => $this->valuation_per_security_nav,
|
||||
'trading_strategy_used' => $this->trading_strategy_used,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ class InfrastructureFundResource extends JsonResource
|
||||
'fund_name' => $this->fund_name ?? '',
|
||||
'slug' => $this->slug ?? '',
|
||||
'isin_code' => $this->isin_code ?? '',
|
||||
// 'registration_number' => $this->registration_number,
|
||||
'registration_number' => $this->registration_number,
|
||||
'fund_category' => $this->fund_category ?? '',
|
||||
'fund_structure' => $this->fund_structure ?? '',
|
||||
'fund_strategy' => $this->fund_strategy ?? '',
|
||||
@@ -65,7 +65,13 @@ class InfrastructureFundResource extends JsonResource
|
||||
'focused_sectors_industries' => $this->focused_sectors_industries ?? '',
|
||||
'regions_covered' => $this->regions_covered ?? '',
|
||||
'company' => $this->companies,
|
||||
'minimum_investment' => $this->minimum_investment
|
||||
'minimum_investment' => $this->minimum_investment,
|
||||
'description' => Product::find($this->products_id) == null ? null : Product::where('id',$this->products_id)->value('description'),
|
||||
'focused_funds' => $this->focused_funds,
|
||||
'return_on_investment_irr_dpi_rvpi_tvpi' => $this->return_on_investment_irr_dpi_rvpi_tvpi,
|
||||
'valuation_per_security_nav' => $this->valuation_per_security_nav,
|
||||
'trading_strategy_used' => $this->trading_strategy_used,
|
||||
'involved_in_short_selling' => $this->involved_in_short_selling,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ class LongOnlyEquityResource extends JsonResource
|
||||
'return_on_investment_irr_dpi_rvpi_tvpi' => $this->return_on_investment_irr_dpi_rvpi_tvpi,
|
||||
'valuation_per_security_nav' => $this->valuation_per_security_nav,
|
||||
'trading_strategy_used' => $this->trading_strategy_used,
|
||||
// 'product_images' => ProductImage::where('product_xid',$this->products_id)->get(),
|
||||
'description' => Product::find($this->products_id) == null ? null : Product::where('id',$this->products_id)->value('description'),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -65,6 +65,13 @@ class PrivateEquityFundResource extends JsonResource
|
||||
'regions_covered' => $this->regions_covered,
|
||||
'company' => $this->companies,
|
||||
'minimum_investment' => $this->minimum_investment,
|
||||
'description' => Product::find($this->products_id) == null ? null : Product::where('id',$this->products_id)->value('description'),
|
||||
'isin_code' => $this->isin_code,
|
||||
'focused_funds' => $this->focused_funds,
|
||||
'return_on_investment_irr_dpi_rvpi_tvpi' => $this->return_on_investment_irr_dpi_rvpi_tvpi,
|
||||
'valuation_per_security_nav' => $this->valuation_per_security_nav,
|
||||
'trading_strategy_used' => $this->trading_strategy_used,
|
||||
'involved_in_short_selling' => $this->involved_in_short_selling,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -67,7 +67,14 @@ class PrivateInvestmentInPublicEquityFundResource extends JsonResource
|
||||
'minimum_investment' => $this->minimum_investment,
|
||||
'target_irr'=>$this->target_irr,
|
||||
'focused_sectors_industries'=>$this->focused_sectors_industries,
|
||||
'rera_complied_property'=>$this->rera_complied_property
|
||||
'rera_complied_property'=>$this->rera_complied_property,
|
||||
'description' => Product::find($this->products_id) == null ? null : Product::where('id',$this->products_id)->value('description'),
|
||||
'isin_code' => $this->isin_code,
|
||||
'focused_funds' => $this->focused_funds,
|
||||
'return_on_investment_irr_dpi_rvpi_tvpi' => $this->return_on_investment_irr_dpi_rvpi_tvpi,
|
||||
'valuation_per_security_nav' => $this->valuation_per_security_nav,
|
||||
'trading_strategy_used' => $this->trading_strategy_used,
|
||||
'involved_in_short_selling' => $this->involved_in_short_selling,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@ class PrivateRealEstateFundResource extends JsonResource
|
||||
*/
|
||||
public function toArray($request)
|
||||
{
|
||||
// dd($this);
|
||||
$images = ProductImage::where('product_xid', $this->products_id)->get();
|
||||
$imagePaths = [];
|
||||
if (!empty($images)) {
|
||||
@@ -66,7 +67,14 @@ class PrivateRealEstateFundResource extends JsonResource
|
||||
'rera_complied_property' => $this->rera_complied_property,
|
||||
'regions_covered' => $this->regions_covered,
|
||||
'companies' => $this->companies,
|
||||
'minimum_investment' => $this->minimum_investment
|
||||
'minimum_investment' => $this->minimum_investment,
|
||||
'description' => Product::find($this->products_id) == null ? null : Product::where('id',$this->products_id)->value('description'),
|
||||
'isin_code' => $this->isin_code,
|
||||
'focused_funds' => $this->focused_funds,
|
||||
'return_on_investment_irr_dpi_rvpi_tvpi' => $this->return_on_investment_irr_dpi_rvpi_tvpi,
|
||||
'valuation_per_security_nav' => $this->valuation_per_security_nav,
|
||||
'trading_strategy_used' => $this->trading_strategy_used,
|
||||
'involved_in_short_selling' => $this->involved_in_short_selling,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -76,6 +76,9 @@ class VentureCapitalFundResource extends JsonResource
|
||||
'trading_strategy' => $this->trading_strategy,
|
||||
'trading_strategy_used' => $this->trading_strategy_used,
|
||||
'involved_in_short_selling' => $this->involved_in_short_selling,
|
||||
'description' => Product::find($this->products_id) == null ? null : Product::where('id',$this->products_id)->value('description'),
|
||||
'return_on_investment_irr_dpi_rvpi_tvpi' => $this->return_on_investment_irr_dpi_rvpi_tvpi,
|
||||
'valuation_per_security_nav' => $this->valuation_per_security_nav,
|
||||
|
||||
];
|
||||
}
|
||||
|
||||
@@ -3480,7 +3480,7 @@ input:focus {
|
||||
.card-container .card-info p {
|
||||
font-size: 16px;
|
||||
line-height: 1.3;
|
||||
text-align: left;
|
||||
text-align: left !important;
|
||||
}
|
||||
|
||||
.card-container .card-info img {
|
||||
|
||||
Reference in New Issue
Block a user