added rebid and auto login while creating account

This commit is contained in:
Ritikesh yadav
2024-05-13 14:00:37 +05:30
parent 12fe516f67
commit aa8575e7ce
7 changed files with 15 additions and 8 deletions

View File

@@ -14,7 +14,7 @@ class MarketplaceAlternativeInvestmentFundSeller extends Model
protected $appends = ['sold_status', 'discount', 'bid'];
protected $fillable = ['seller_forms_id', 'name_of_the_aif_fund', 'slug', 'fund_category', 'fund_structure', 'type_of_fund', 'fund_strategy', 'fund_manager_name', 'sponsor', 'credit_rating', 'total_capital_commitment', 'uncalled_capital_commitment', 'date_of_final_close', 'tenure_from_final_close', 'current_or_latest_nav', 'no_of_units_held', 'no_of_units_you_wish_to_sell', 'expected_sale_per_unit', 'latest_valuation_date', 'status', 'listing_status'];
protected $fillable = ['seller_forms_id', 'name_of_the_aif_fund', 'slug', 'fund_category', 'fund_structure', 'type_of_fund', 'fund_strategy', 'fund_manager_name', 'sponsor', 'credit_rating', 'total_capital_commitment', 'uncalled_capital_commitment', 'date_of_final_close', 'tenure_from_final_close', 'current_or_latest_nav', 'no_of_units_held', 'no_of_units_you_wish_to_sell', 'og_no_of_units_wish_to_sell', 'expected_sale_per_unit', 'latest_valuation_date', 'status', 'listing_status'];
public function seller()
{

View File

@@ -14,7 +14,7 @@ class MarketplaceFractionalRealEstateSeller extends Model
protected $appends = ['sold_status', 'category', 'discount', 'bid'];
protected $fillable = ['seller_forms_id','property_name','slug','property_address','property_grade','asset_type','annual_rental_yield_earned','rental_escalation','fractional_real_estate_platform','date_of_investment','original_amount_invested','current_market_value_of_the_property','expected_selling_price', 'latest_valuation_date','status','listing_status'];
protected $fillable = ['seller_forms_id','property_name','slug','property_address','property_grade','asset_type','annual_rental_yield_earned','rental_escalation','fractional_real_estate_platform','date_of_investment','original_amount_invested','current_market_value_of_the_property','expected_selling_price', 'og_current_market_value_of_the_property', 'og_expected_selling_price', 'latest_valuation_date','status','listing_status'];
public function seller(){
return $this->belongsTo(MarketplaceSellerForm::class,'seller_forms_id');
@@ -66,7 +66,7 @@ class MarketplaceFractionalRealEstateSeller extends Model
$bidArr[] = round(($bid->getAttributes()['total_purchase_value'] - $this->current_market_value_of_the_property)/$this->current_market_value_of_the_property * 100,3);
}
if($bidArr){
return max($bidArr);
return max((int)$bidArr);
}
return 0;
}