public function scopePendingCases($query) { return $query->where('status', '1')->orWhere('status', '2')->get(); }