| 
					
					
						
							
						
					
					
				 | 
				@ -2,7 +2,6 @@ | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				namespace App\Models; | 
				 | 
				 | 
				namespace App\Models; | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				use App\Common\ProductStatus; | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				use Illuminate\Database\Eloquent\Factories\HasFactory; | 
				 | 
				 | 
				use Illuminate\Database\Eloquent\Factories\HasFactory; | 
			
		
		
	
		
			
				 | 
				 | 
				use Illuminate\Database\Eloquent\SoftDeletes; | 
				 | 
				 | 
				use Illuminate\Database\Eloquent\SoftDeletes; | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				
 | 
			
		
		
	
	
		
			
				| 
					
						
							
						
					
					
						
							
						
					
					
				 | 
				@ -37,6 +36,16 @@ class AgentProduct extends BaseModel | 
			
		
		
	
		
			
				 | 
				 | 
						return $this->belongsTo(Category::class); | 
				 | 
				 | 
						return $this->belongsTo(Category::class); | 
			
		
		
	
		
			
				 | 
				 | 
					} | 
				 | 
				 | 
					} | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
					public function user() | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
					{ | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
						return $this->hasOne(User::class, 'id', 'verifier'); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
					} | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
					public function item() | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
					{ | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
						return $this->hasMany(AgentProductItem::class); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
					} | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
					public function setChannelIdAttribute($value) | 
				 | 
				 | 
					public function setChannelIdAttribute($value) | 
			
		
		
	
		
			
				 | 
				 | 
					{ | 
				 | 
				 | 
					{ | 
			
		
		
	
		
			
				 | 
				 | 
						if (is_array($value)) { | 
				 | 
				 | 
						if (is_array($value)) { | 
			
		
		
	
	
		
			
				| 
					
						
							
						
					
					
					
				 | 
				
  |