Files
freeu-project/app/Models/AlternativeInvestmentFund.php

45 lines
1.9 KiB
PHP
Raw Normal View History

2024-03-28 14:52:40 +05:30
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
2024-03-28 14:52:40 +05:30
class AlternativeInvestmentFund extends Model
{
use HasFactory, SoftDeletes;
2024-03-28 14:52:40 +05:30
protected $hidden = ['created_at','updated_at'];
protected $fillable = ['products_id','fund_name','slug','registration_number','return_on_investment_irr_dpi_rvpi_tvpi','valuation_per_security_nav','trading_strategy_used','fund_category','fund_structure','fund_strategy','fund_domicile','fund_manager_name','website_of_the_fund','fund_manager_experience','sponsor','manager','trustee','auditor','valuer_tax_advisor','credit_rating','open_date','first_close_date','final_close_date','tenure_from_final_date','commitment_period','native_currency','target_corpus','investment_manager_contribution','minimum_capital_commitment','intial_drawdown','accepting_overseas_investment','target_irr','management_fees_and_carry','hurdle_rate','other_expenses','focused_sectors_industries','regions_covered','isin_code','focused_real_estate_sectors','rera_complied_property','return_on_investment','valuation_per_sector','focused_funds','trading_strategy','involved_in_short_selling','minimum_investment'];
2024-03-28 14:52:40 +05:30
public function companies(){
return $this->hasOne(Company::class,'id','companies_id');
}
2024-04-29 14:42:22 +05:30
2024-05-09 13:02:24 +05:30
public function product(){
return $this->belongsTo(Product::class,'products_id');
}
2024-04-29 14:42:22 +05:30
public function getTargetIrrAttribute($value)
{
2024-05-24 19:33:10 +05:30
// dd($);
2024-06-05 15:32:45 +05:30
return $value == null ? '--' : $value.' %';
// return $value;
2024-04-29 14:42:22 +05:30
}
public function getTenureFromFinalDateAttribute($value)
{
// dd($value);
return $value == null ? '--' : $value;
}
2024-06-05 18:57:53 +05:30
public function getIntialDrawdownAttribute($value)
{
// dd($);
return $value == null ? '--' : $value.' %';
// return $value;
}
2024-03-28 14:52:40 +05:30
}