Update TrackingController.php
This commit is contained in:
		
							parent
							
								
									471cc0eb2a
								
							
						
					
					
						commit
						13a477e883
					
				| 
						 | 
				
			
			@ -266,11 +266,11 @@ class TrackingController extends Controller
 | 
			
		|||
            ->where('status', 'check in');
 | 
			
		||||
 | 
			
		||||
        if ($startDate && $endDate) {
 | 
			
		||||
            $trackingData->whereBetween('time_string', [$startDate, $endDate . ' 23:59:59']);
 | 
			
		||||
            $trackingData->whereBetween('created_at', [$startDate, $endDate . ' 23:59:59']);
 | 
			
		||||
        } elseif ($startDate) {
 | 
			
		||||
            $trackingData->where('time_string', '>=', $startDate);
 | 
			
		||||
            $trackingData->where('created_at', '>=', $startDate);
 | 
			
		||||
        } elseif ($endDate) {
 | 
			
		||||
            $trackingData->where('time_string', '<=', $endDate . ' 23:59:59');
 | 
			
		||||
            $trackingData->where('created_at', '<=', $endDate . ' 23:59:59');
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        $onTimeMorning = 0;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue