Customer Mail, Mails, Views Lead Customer

This commit is contained in:
Kevin Adametz 2020-03-12 09:37:01 +01:00
parent f1e0900a7a
commit f53f17f9c1
46 changed files with 2217 additions and 1489 deletions

View file

@ -121,39 +121,32 @@ class Customer extends Model
'participants_remarks',
'miscellaneous_remarks',
'country_id',
];
public function travel_country()
{
return $this->belongsTo(TravelCountry::class, 'country_id');
}
public function credit_card_type()
{
return $this->belongsTo(CreditCardType::class);
}
public function salutation()
{
return $this->belongsTo(Salutation::class);
}
public function bookings()
{
return $this->hasMany(Booking::class);
}
public function coupons()
{
return $this->hasMany(Coupon::class);
}
public function leads()
{
return $this->hasMany(Lead::class);
}
public function fullName()
{
if ($this->firstname) {
@ -161,7 +154,6 @@ class Customer extends Model
}
return $this->name;
}
}