checkout, register, payment,

checkout correction,
register wizard,
payment packege,
This commit is contained in:
Kevin Adametz 2019-03-02 00:08:11 +01:00
parent 6e3adac4d7
commit 446bc4561b
48 changed files with 2580 additions and 1493 deletions

View file

@ -150,6 +150,20 @@ class User extends Authenticatable
return false;
}
/**
* @return bool
*/
public function showSideNav()
{
if($this->active == 1 && $this->blocked == 0 && $this->wizard >= 10){
return true;
}
return false;
}
/**
* @return string
*/
@ -174,6 +188,18 @@ class User extends Authenticatable
return Carbon::parse($this->attributes['agreement'])->format(\Util::formatDateTimeDB());
}
public function getPaymentAccountDateFormat(){
if(!$this->attributes['payment_account']){ return ""; }
return Carbon::parse($this->attributes['payment_account'])->format(\Util::formatDateTimeDB());
}
public function getPaymentShopDateFormat(){
if(!$this->attributes['payment_shop']){ return ""; }
return Carbon::parse($this->attributes['payment_shop'])->format(\Util::formatDateTimeDB());
}
/**
* @return string
*/