Homeparty online, Cron SEPA

This commit is contained in:
Kevin Adametz 2021-04-23 14:54:09 +02:00
parent 13fb2cfe98
commit 36872100c6
41 changed files with 1140 additions and 189 deletions

View file

@ -342,6 +342,17 @@ class User extends Authenticatable
return Carbon::now()->diffForHumans(Carbon::parse($this->payment_shop));
}
public function isAcountAboPayDate(){
if($this->isAboOption()){
$pay_days = Carbon::parse($this->payment_account)->modify('- '.config('mivita.abo_booking_days').' days');
$diff_days = Carbon::now()->diffInDays($pay_days, false);
if($diff_days <= 0){
return true;
}
}
return false;
}
/**
* @return string
*/