added sender ID to the clients Tab in Show view plus bug fixes
This commit is contained in:
@@ -14,10 +14,13 @@ class UserActivity extends Model
|
||||
public function userInfo(){
|
||||
return $this->hasOne('App\Models\StaffMember', 'id', 'user_id');
|
||||
}
|
||||
public function userInfoSystem(){
|
||||
return $this->hasOne('App\Models\SystemUser', 'id', 'user_id');
|
||||
}
|
||||
public function getActivityTimeAttribute(){
|
||||
$created = $this->created_at;
|
||||
$parsed_created_date = Carbon::parse($created);
|
||||
$current_date = Carbon::parse(date('Y-m-d'));
|
||||
$current_date = Carbon::parse(date('Y-m-d'));
|
||||
$days = $parsed_created_date->diffForHumans();
|
||||
return $days;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user