Started work on SiteDetails and Setup

This commit is contained in:
Deon George
2018-07-31 14:11:00 +10:00
parent 0ce640c283
commit 1cde2a888a
24 changed files with 1373 additions and 177 deletions

View File

@@ -213,14 +213,14 @@ class User extends Authenticatable
{
// If I have agents and no parent, I am the wholesaler
if (is_null($this->parent_id) AND $this->all_agents()->count())
return 'Wholesaler';
return 'wholesaler';
// If I have agents and a parent, I am a reseller
elseif ($this->parent_id AND $this->all_agents()->count())
return 'Reseller';
return 'reseller';
// If I have no agents and a parent, I am a customer
elseif (! $this->all_agents()->count())
return 'Customer';
return 'customer';
}
}