| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -34,11 +34,7 @@ class WorkorderController extends AdminController | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							$userList = $msgList = []; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							$workorder = \App\Models\Workorder::query() | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								->with(['point' => function($query) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									$query->withTrashed(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								},'publisher' => function($query) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									$query->withTrashed(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								}]) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								->with(['point','publisher']) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								->withCount(['items' => function($query) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									$query->where('is_read', 0) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										->where('point_id',Admin::user()->id) | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |